/* Generated by Cython 0.29.2 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "/home/bpeng1/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h",
            "/home/bpeng1/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ufuncobject.h"
        ],
        "include_dirs": [
            "/home/bpeng1/anaconda3/lib/python3.7/site-packages/numpy/core/include"
        ],
        "library_dirs": [
            "build"
        ],
        "name": "variant_tools.io_vcf_read",
        "sources": [
            "src/variant_tools/io_vcf_read.pyx"
        ]
    },
    "module_name": "variant_tools.io_vcf_read"
}
END: Cython Metadata */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_2"
#define CYTHON_HEX_VERSION 0x001D02F0
#define CYTHON_FUTURE_DIVISION 1
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 0
  #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
  #ifndef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
           typedef unsigned char     uint8_t;
           typedef unsigned int      uint32_t;
        #else
           typedef unsigned __int8   uint8_t;
           typedef unsigned __int32  uint32_t;
        #endif
    #endif
#else
   #include <stdint.h>
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus) && __cplusplus >= 201103L
    #if __has_cpp_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH [[fallthrough]]
    #elif __has_cpp_attribute(clang::fallthrough)
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
    #elif __has_cpp_attribute(gnu::fallthrough)
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__ ) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif

#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if CYTHON_USE_DICT_VERSIONS
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
        static PY_UINT64_T __pyx_dict_version = 0;\
        static PyObject *__pyx_dict_cached_value = NULL;\
        if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
            (VAR) = __pyx_dict_cached_value;\
        } else {\
            (VAR) = __pyx_dict_cached_value = (LOOKUP);\
            __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
        }\
    }
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
  #define PyMem_RawMalloc(n)           PyMem_Malloc(n)
  #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
  #define PyMem_RawFree(p)             PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0; // PyThread_create_key reports success always
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif // TSS (Thread Specific Storage) API
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
  #define PyObject_Unicode             PyObject_Str
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
#else
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif


#define __PYX_ERR(f_index, lineno, Ln_error) \
{ \
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
}

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__variant_tools__io_vcf_read
#define __PYX_HAVE_API__variant_tools__io_vcf_read
/* Early includes */
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
#include "pythread.h"
#include "pystate.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;

/* Header.proto */
#if !defined(CYTHON_CCOMPLEX)
  #if defined(__cplusplus)
    #define CYTHON_CCOMPLEX 1
  #elif defined(_Complex_I)
    #define CYTHON_CCOMPLEX 1
  #else
    #define CYTHON_CCOMPLEX 0
  #endif
#endif
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #include <complex>
  #else
    #include <complex.h>
  #endif
#endif
#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
  #undef _Complex_I
  #define _Complex_I 1.0fj
#endif


static const char *__pyx_f[] = {
  "src/variant_tools/io_vcf_read.pyx",
  "stringsource",
  "__init__.pxd",
  "type.pxd",
};
/* MemviewSliceStruct.proto */
struct __pyx_memoryview_obj;
typedef struct {
  struct __pyx_memoryview_obj *memview;
  char *data;
  Py_ssize_t shape[8];
  Py_ssize_t strides[8];
  Py_ssize_t suboffsets[8];
} __Pyx_memviewslice;
#define __Pyx_MemoryView_Len(m)  (m.shape[0])

/* Atomics.proto */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __pyx_atomic_int_type int
#if CYTHON_ATOMICS && __GNUC__ >= 4 && (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL >= 2)) &&\
                    !defined(__i386__)
    #define __pyx_atomic_incr_aligned(value, lock) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_aligned(value, lock) __sync_fetch_and_sub(value, 1)
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER) && 0
    #include <Windows.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type LONG
    #define __pyx_atomic_incr_aligned(value, lock) InterlockedIncrement(value)
    #define __pyx_atomic_decr_aligned(value, lock) InterlockedDecrement(value)
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#elif CYTHON_ATOMICS && (defined(__ICC) || defined(__INTEL_COMPILER)) && 0
    #define __pyx_atomic_incr_aligned(value, lock) _InterlockedIncrement(value)
    #define __pyx_atomic_decr_aligned(value, lock) _InterlockedDecrement(value)
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using Intel atomics"
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif
typedef volatile __pyx_atomic_int_type __pyx_atomic_int;
#if CYTHON_ATOMICS
    #define __pyx_add_acquisition_count(memview)\
             __pyx_atomic_incr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
    #define __pyx_sub_acquisition_count(memview)\
            __pyx_atomic_decr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
#else
    #define __pyx_add_acquisition_count(memview)\
            __pyx_add_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
    #define __pyx_sub_acquisition_count(memview)\
            __pyx_sub_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
#endif

/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* BufferFormatStructs.proto */
#define IS_UNSIGNED(type) (((type) -1) > 0)
struct __Pyx_StructField_;
#define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
typedef struct {
  const char* name;
  struct __Pyx_StructField_* fields;
  size_t size;
  size_t arraysize[8];
  int ndim;
  char typegroup;
  char is_unsigned;
  int flags;
} __Pyx_TypeInfo;
typedef struct __Pyx_StructField_ {
  __Pyx_TypeInfo* type;
  const char* name;
  size_t offset;
} __Pyx_StructField;
typedef struct {
  __Pyx_StructField* field;
  size_t parent_offset;
} __Pyx_BufFmt_StackElem;
typedef struct {
  __Pyx_StructField root;
  __Pyx_BufFmt_StackElem* head;
  size_t fmt_offset;
  size_t new_count, enc_count;
  size_t struct_alignment;
  int is_complex;
  char enc_type;
  char new_packmode;
  char enc_packmode;
  char is_valid_array;
} __Pyx_BufFmt_Context;


/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":776
 * # in Cython to enable them only on the right systems.
 * 
 * ctypedef npy_int8       int8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 */
typedef npy_int8 __pyx_t_5numpy_int8_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":777
 * 
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t
 */
typedef npy_int16 __pyx_t_5numpy_int16_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int64      int64_t
 * #ctypedef npy_int96      int96_t
 */
typedef npy_int32 __pyx_t_5numpy_int32_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":779
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_int96      int96_t
 * #ctypedef npy_int128     int128_t
 */
typedef npy_int64 __pyx_t_5numpy_int64_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":783
 * #ctypedef npy_int128     int128_t
 * 
 * ctypedef npy_uint8      uint8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 */
typedef npy_uint8 __pyx_t_5numpy_uint8_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784
 * 
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t
 */
typedef npy_uint16 __pyx_t_5numpy_uint16_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":785
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint64     uint64_t
 * #ctypedef npy_uint96     uint96_t
 */
typedef npy_uint32 __pyx_t_5numpy_uint32_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":786
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_uint96     uint96_t
 * #ctypedef npy_uint128    uint128_t
 */
typedef npy_uint64 __pyx_t_5numpy_uint64_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790
 * #ctypedef npy_uint128    uint128_t
 * 
 * ctypedef npy_float32    float32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_float64    float64_t
 * #ctypedef npy_float80    float80_t
 */
typedef npy_float32 __pyx_t_5numpy_float32_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791
 * 
 * ctypedef npy_float32    float32_t
 * ctypedef npy_float64    float64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_float80    float80_t
 * #ctypedef npy_float128   float128_t
 */
typedef npy_float64 __pyx_t_5numpy_float64_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":800
 * # The int types are mapped a bit surprising --
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
 * ctypedef npy_long       int_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longlong   long_t
 * ctypedef npy_longlong   longlong_t
 */
typedef npy_long __pyx_t_5numpy_int_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":801
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
 * ctypedef npy_long       int_t
 * ctypedef npy_longlong   long_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longlong   longlong_t
 * 
 */
typedef npy_longlong __pyx_t_5numpy_long_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":802
 * ctypedef npy_long       int_t
 * ctypedef npy_longlong   long_t
 * ctypedef npy_longlong   longlong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_ulong      uint_t
 */
typedef npy_longlong __pyx_t_5numpy_longlong_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":804
 * ctypedef npy_longlong   longlong_t
 * 
 * ctypedef npy_ulong      uint_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulong_t
 * ctypedef npy_ulonglong  ulonglong_t
 */
typedef npy_ulong __pyx_t_5numpy_uint_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805
 * 
 * ctypedef npy_ulong      uint_t
 * ctypedef npy_ulonglong  ulong_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 */
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":806
 * ctypedef npy_ulong      uint_t
 * ctypedef npy_ulonglong  ulong_t
 * ctypedef npy_ulonglong  ulonglong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_intp       intp_t
 */
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":808
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 * ctypedef npy_intp       intp_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uintp      uintp_t
 * 
 */
typedef npy_intp __pyx_t_5numpy_intp_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809
 * 
 * ctypedef npy_intp       intp_t
 * ctypedef npy_uintp      uintp_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_double     float_t
 */
typedef npy_uintp __pyx_t_5numpy_uintp_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":811
 * ctypedef npy_uintp      uintp_t
 * 
 * ctypedef npy_double     float_t             # <<<<<<<<<<<<<<
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t
 */
typedef npy_double __pyx_t_5numpy_float_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812
 * 
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longdouble longdouble_t
 * 
 */
typedef npy_double __pyx_t_5numpy_double_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":813
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_cfloat      cfloat_t
 */
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
/* Declarations.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    typedef ::std::complex< float > __pyx_t_float_complex;
  #else
    typedef float _Complex __pyx_t_float_complex;
  #endif
#else
    typedef struct { float real, imag; } __pyx_t_float_complex;
#endif
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);

/* Declarations.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    typedef ::std::complex< double > __pyx_t_double_complex;
  #else
    typedef double _Complex __pyx_t_double_complex;
  #endif
#else
    typedef struct { double real, imag; } __pyx_t_double_complex;
#endif
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);


/*--- Type declarations ---*/
struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase;
struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream;
struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser;
struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer;
struct __pyx_array_obj;
struct __pyx_MemviewEnum_obj;
struct __pyx_memoryview_obj;
struct __pyx_memoryviewslice_obj;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":815
 * ctypedef npy_longdouble longdouble_t
 * 
 * ctypedef npy_cfloat      cfloat_t             # <<<<<<<<<<<<<<
 * ctypedef npy_cdouble     cdouble_t
 * ctypedef npy_clongdouble clongdouble_t
 */
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":816
 * 
 * ctypedef npy_cfloat      cfloat_t
 * ctypedef npy_cdouble     cdouble_t             # <<<<<<<<<<<<<<
 * ctypedef npy_clongdouble clongdouble_t
 * 
 */
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":817
 * ctypedef npy_cfloat      cfloat_t
 * ctypedef npy_cdouble     cdouble_t
 * ctypedef npy_clongdouble clongdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_cdouble     complex_t
 */
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":819
 * ctypedef npy_clongdouble clongdouble_t
 * 
 * ctypedef npy_cdouble     complex_t             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 */
typedef npy_cdouble __pyx_t_5numpy_complex_t;
struct __pyx_t_13variant_tools_11io_vcf_read_CharVector;
struct __pyx_t_13variant_tools_11io_vcf_read_IntVector;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk;
struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk;

/* "variant_tools/io_vcf_read.pyx":347
 * 
 * 
 * cdef enum VCFState:             # <<<<<<<<<<<<<<
 *     CHROM = 0,
 *     POS = 1,
 */
enum __pyx_t_13variant_tools_11io_vcf_read_VCFState {
  __pyx_e_13variant_tools_11io_vcf_read_CHROM = 0,
  __pyx_e_13variant_tools_11io_vcf_read_POS = 1,
  __pyx_e_13variant_tools_11io_vcf_read_ID = 2,
  __pyx_e_13variant_tools_11io_vcf_read_REF = 3,
  __pyx_e_13variant_tools_11io_vcf_read_ALT = 4,
  __pyx_e_13variant_tools_11io_vcf_read_QUAL = 5,
  __pyx_e_13variant_tools_11io_vcf_read_FILTER = 6,
  __pyx_e_13variant_tools_11io_vcf_read_INFO = 7,
  __pyx_e_13variant_tools_11io_vcf_read_FORMAT = 8,
  __pyx_e_13variant_tools_11io_vcf_read_CALLDATA = 9,
  __pyx_e_13variant_tools_11io_vcf_read_EOL = 10,
  __pyx_e_13variant_tools_11io_vcf_read_EOF = 11
};

/* "variant_tools/io_vcf_read.pyx":4029
 * 
 * # ANN field indices
 * cdef enum ANNFidx:             # <<<<<<<<<<<<<<
 *     ALLELE = 0,
 *     ANNOTATION = 1,
 */
enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx {
  __pyx_e_13variant_tools_11io_vcf_read_ALLELE = 0,
  __pyx_e_13variant_tools_11io_vcf_read_ANNOTATION = 1,
  __pyx_e_13variant_tools_11io_vcf_read_ANNOTATION_IMPACT = 2,
  __pyx_e_13variant_tools_11io_vcf_read_GENE_NAME = 3,
  __pyx_e_13variant_tools_11io_vcf_read_GENE_ID = 4,
  __pyx_e_13variant_tools_11io_vcf_read_FEATURE_TYPE = 5,
  __pyx_e_13variant_tools_11io_vcf_read_FEATURE_ID = 6,
  __pyx_e_13variant_tools_11io_vcf_read_TRANSCRIPT_BIOTYPE = 7,
  __pyx_e_13variant_tools_11io_vcf_read_RANK = 8,
  __pyx_e_13variant_tools_11io_vcf_read_HGVS_C = 9,
  __pyx_e_13variant_tools_11io_vcf_read_HGVS_P = 10,
  __pyx_e_13variant_tools_11io_vcf_read_CDNA = 11,
  __pyx_e_13variant_tools_11io_vcf_read_CDS = 12,
  __pyx_e_13variant_tools_11io_vcf_read_AA = 13,
  __pyx_e_13variant_tools_11io_vcf_read_DISTANCE = 14
};

/* "variant_tools/io_vcf_read.pyx":102
 * 
 * 
 * cdef struct CharVector:             # <<<<<<<<<<<<<<
 *     Py_ssize_t size
 *     Py_ssize_t capacity
 */
struct __pyx_t_13variant_tools_11io_vcf_read_CharVector {
  Py_ssize_t size;
  Py_ssize_t capacity;
  char *data;
};

/* "variant_tools/io_vcf_read.pyx":153
 * 
 * 
 * cdef struct IntVector:             # <<<<<<<<<<<<<<
 *     Py_ssize_t size
 *     Py_ssize_t capacity
 */
struct __pyx_t_13variant_tools_11io_vcf_read_IntVector {
  Py_ssize_t size;
  Py_ssize_t capacity;
  int *data;
};

/* "variant_tools/io_vcf_read.pyx":875
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'variants/' + self.key
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":915
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1123
 *             self.pos_memory = self.pos_values
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_chrom:
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1254
 *             self.memory = self.values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1287
 *             self.values.fill('')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1422
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             if PY2:
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1577
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             if PY2:
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1729
 *         self.memory = self.values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         for i, f in enumerate(self.filter_keys):
 *             if not PY2:
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1935
 *             parser.malloc_chunk()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":1968
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'variants/' + self.key
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":2191
 *             stream.advance()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         # override to view as bool array
 *         if PY2:
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":2322
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":2519
 *         vcf_skip_variant(stream, context)
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":2734
 *             parser.malloc_chunk()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":2770
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":2799
 *             stream.advance()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":3649
 *         self.memory = self.values.reshape(-1).view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":3710
 *         self.values.fill('')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */
struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk {
  int __pyx_n;
  PyObject *limit;
};

/* "variant_tools/io_vcf_read.pyx":204
 * 
 * 
 * cdef class InputStreamBase:             # <<<<<<<<<<<<<<
 *     """Abstract base class defining an input stream over C chars."""
 * 
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase {
  PyObject_HEAD
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_vtab;
  char c;
};


/* "variant_tools/io_vcf_read.pyx":216
 * 
 * 
 * cdef class FileInputStream(InputStreamBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream {
  struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase __pyx_base;
  PyObject *fileobj;
  Py_ssize_t buffer_size;
  PyObject *buffer;
  char *buffer_start;
  char *buffer_end;
  char *stream;
  int close;
};


/* "variant_tools/io_vcf_read.pyx":318
 * 
 * 
 * cdef class CharVectorInputStream(InputStreamBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream {
  struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase __pyx_base;
  struct __pyx_t_13variant_tools_11io_vcf_read_CharVector vector;
  Py_ssize_t stream_index;
};


/* "variant_tools/io_vcf_read.pyx":362
 * 
 * 
 * cdef class VCFContext:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext {
  PyObject_HEAD
  PyObject *headers;
  PyObject *fields;
  PyObject *formats;
  int state;
  Py_ssize_t variant_index;
  Py_ssize_t chunk_variant_index;
  Py_ssize_t sample_index;
  Py_ssize_t sample_output_index;
  Py_ssize_t sample_field_index;
  struct __pyx_t_13variant_tools_11io_vcf_read_IntVector variant_format_indices;
  struct __pyx_t_13variant_tools_11io_vcf_read_CharVector temp;
  struct __pyx_t_13variant_tools_11io_vcf_read_CharVector info_key;
  struct __pyx_t_13variant_tools_11io_vcf_read_CharVector info_val;
  struct __pyx_t_13variant_tools_11io_vcf_read_CharVector chrom;
  long pos;
  Py_ssize_t ref_len;
};


/* "variant_tools/io_vcf_read.pyx":438
 * 
 * 
 * cdef class VCFChunkIterator:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator {
  PyObject_HEAD
  struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *stream;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *context;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *parser;
};


/* "variant_tools/io_vcf_read.pyx":499
 * 
 * 
 * cdef class VCFParser:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser {
  PyObject_HEAD
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser *__pyx_vtab;
  Py_ssize_t chunk_length;
  __Pyx_memviewslice loc_samples;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *chrom_pos_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *id_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *ref_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *alt_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *qual_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *filter_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *info_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *format_parser;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *calldata_parser;
  PyObject *region_chrom;
  Py_ssize_t region_begin;
  Py_ssize_t region_end;
};


/* "variant_tools/io_vcf_read.pyx":845
 * 
 * 
 * cdef class VCFFieldParserBase:             # <<<<<<<<<<<<<<
 *     """Abstract base class for top-level field parsers."""
 * 
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase {
  PyObject_HEAD
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_vtab;
  PyObject *key;
  PyArray_Descr *dtype;
  Py_ssize_t itemsize;
  Py_ssize_t number;
  PyObject *fill;
  Py_ssize_t chunk_length;
  PyArrayObject *values;
};


/* "variant_tools/io_vcf_read.pyx":886
 * 
 * 
 * cdef class VCFSkipFieldParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 *     """Parser to skip a tab-delimited field."""
 * 
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};


/* "variant_tools/io_vcf_read.pyx":991
 * 
 * 
 * cdef class VCFChromPosParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice chrom_memory;
  __Pyx_memviewslice pos_memory;
  int store_chrom;
  int store_pos;
  char *region_chrom;
  Py_ssize_t region_begin;
  Py_ssize_t region_end;
  PyArrayObject *chrom_values;
  PyArrayObject *pos_values;
};


/* "variant_tools/io_vcf_read.pyx":1130
 * 
 * 
 * cdef class VCFIDStringParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":1177
 * 
 * 
 * cdef class VCFIDObjectParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, chunk_length):
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};


/* "variant_tools/io_vcf_read.pyx":1199
 * 
 * 
 * cdef class VCFRefStringParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice memory;
  int store;
};


/* "variant_tools/io_vcf_read.pyx":1259
 * 
 * 
 * cdef class VCFRefObjectParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  int store;
};


/* "variant_tools/io_vcf_read.pyx":1292
 * 
 * 
 * cdef class VCFAltStringParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice memory;
  __Pyx_memviewslice numalt_memory;
  __Pyx_memviewslice svlen_memory;
  __Pyx_memviewslice is_snp_memory;
  PyArrayObject *numalt_values;
  PyArrayObject *svlen_values;
  PyArrayObject *is_snp_values;
  int store_alt;
  int store_numalt;
  int store_svlen;
  int store_is_snp;
};


/* "variant_tools/io_vcf_read.pyx":1448
 * 
 * 
 * cdef class VCFAltObjectParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice numalt_memory;
  __Pyx_memviewslice svlen_memory;
  __Pyx_memviewslice is_snp_memory;
  PyArrayObject *numalt_values;
  PyArrayObject *svlen_values;
  PyArrayObject *is_snp_values;
  int store_alt;
  int store_numalt;
  int store_svlen;
  int store_is_snp;
};


/* "variant_tools/io_vcf_read.pyx":1603
 * 
 * 
 * cdef class VCFQualParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float32_t[:] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":1635
 * 
 * 
 * cdef class VCFFilterParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  __Pyx_memviewslice memory;
  PyObject *filter_keys;
  Py_ssize_t n_filters;
  char **filter_keys_cstr;
};


/* "variant_tools/io_vcf_read.pyx":1741
 * 
 * 
 * cdef class VCFInfoParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  PyObject *info_keys;
  Py_ssize_t n_infos;
  char **info_keys_cstr;
  PyObject *info_parsers;
  PyObject **info_parsers_cptr;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *skip_parser;
  PyObject *fills;
};


/* "variant_tools/io_vcf_read.pyx":1941
 * 
 * 
 * cdef class VCFInfoParserBase:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase {
  PyObject_HEAD
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_vtab;
  PyObject *key;
  PyArray_Descr *dtype;
  Py_ssize_t itemsize;
  Py_ssize_t number;
  PyObject *fill;
  PyArrayObject *values;
  Py_ssize_t chunk_length;
};


/* "variant_tools/io_vcf_read.pyx":1982
 * 
 * 
 * cdef class VCFInfoInt8Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int8_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2001
 * 
 * 
 * cdef class VCFInfoInt16Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int16_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2020
 * 
 * 
 * cdef class VCFInfoInt32Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int32_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2039
 * 
 * 
 * cdef class VCFInfoInt64Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int64_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2058
 * 
 * 
 * cdef class VCFInfoUInt8Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2077
 * 
 * 
 * cdef class VCFInfoUInt16Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint16_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2096
 * 
 * 
 * cdef class VCFInfoUInt32Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint32_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2115
 * 
 * 
 * cdef class VCFInfoUInt64Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint64_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2134
 * 
 * 
 * cdef class VCFInfoFloat32Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float32_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2153
 * 
 * 
 * cdef class VCFInfoFloat64Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float64_t[:, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2172
 * 
 * 
 * cdef class VCFInfoFlagParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2205
 * 
 * 
 * cdef class VCFInfoStringParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2259
 * 
 * 
 * cdef class VCFInfoObjectParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args, **kwargs):
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};


/* "variant_tools/io_vcf_read.pyx":2305
 * 
 * 
 * cdef class VCFInfoSkipParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args, **kwargs):
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};


/* "variant_tools/io_vcf_read.pyx":2428
 * 
 * 
 * cdef class VCFFormatParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  PyObject *format_keys;
  Py_ssize_t n_formats;
  char **format_keys_cstr;
};


/* "variant_tools/io_vcf_read.pyx":2513
 * 
 * 
 * cdef class VCFSkipAllCallDataParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 *     """Skip a field."""
 * 
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};


/* "variant_tools/io_vcf_read.pyx":2523
 * 
 * 
 * cdef class VCFCallDataParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  PyObject *format_keys;
  Py_ssize_t n_formats;
  PyObject *parsers;
  PyObject **parsers_cptr;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *skip_parser;
  __Pyx_memviewslice loc_samples;
  Py_ssize_t n_samples;
  Py_ssize_t n_samples_out;
};


/* "variant_tools/io_vcf_read.pyx":2740
 * 
 * 
 * cdef class VCFCallDataParserBase:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase {
  PyObject_HEAD
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_vtab;
  PyObject *key;
  PyArray_Descr *dtype;
  Py_ssize_t itemsize;
  Py_ssize_t number;
  PyObject *fill;
  PyArrayObject *values;
  Py_ssize_t chunk_length;
  Py_ssize_t n_samples_out;
};


/* "variant_tools/io_vcf_read.pyx":2786
 * 
 * 
 * cdef class VCFCallDataSkipParser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, key, *args, **kwargs):
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};


/* "variant_tools/io_vcf_read.pyx":2803
 * 
 * 
 * cdef class VCFGenotypeInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2823
 * 
 * 
 * cdef class VCFGenotypeInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2843
 * 
 * 
 * cdef class VCFGenotypeInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2863
 * 
 * 
 * cdef class VCFGenotypeInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2883
 * 
 * 
 * cdef class VCFGenotypeUInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2903
 * 
 * 
 * cdef class VCFGenotypeUInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2923
 * 
 * 
 * cdef class VCFGenotypeUInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":2943
 * 
 * 
 * cdef class VCFGenotypeUInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3099
 * 
 * 
 * cdef class VCFGenotypeACInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3119
 * 
 * 
 * cdef class VCFGenotypeACInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3139
 * 
 * 
 * cdef class VCFGenotypeACInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3159
 * 
 * 
 * cdef class VCFGenotypeACInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3179
 * 
 * 
 * cdef class VCFGenotypeACUInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3199
 * 
 * 
 * cdef class VCFGenotypeACUInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3219
 * 
 * 
 * cdef class VCFGenotypeACUInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3239
 * 
 * 
 * cdef class VCFGenotypeACUInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3299
 * 
 * 
 * cdef class VCFCallDataInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int8_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3318
 * 
 * 
 * cdef class VCFCallDataInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int16_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3337
 * 
 * 
 * cdef class VCFCallDataInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int32_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3356
 * 
 * 
 * cdef class VCFCallDataInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int64_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3375
 * 
 * 
 * cdef class VCFCallDataUInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3394
 * 
 * 
 * cdef class VCFCallDataUInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint16_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3413
 * 
 * 
 * cdef class VCFCallDataUInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint32_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3432
 * 
 * 
 * cdef class VCFCallDataUInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint64_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3451
 * 
 * 
 * cdef class VCFCallDataFloat32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float32_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3470
 * 
 * 
 * cdef class VCFCallDataFloat64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float64_t[:, :, :] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3587
 * 
 * 
 * cdef class VCFCallDataStringParser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":3660
 * 
 * 
 * cdef class VCFCallDataObjectParser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
  __Pyx_memviewslice memory;
};


/* "variant_tools/io_vcf_read.pyx":4174
 * 
 * 
 * cdef class ANNTransformer:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer {
  PyObject_HEAD
  PyObject *fields;
  PyObject *types;
  int keep_original;
};


/* "View.MemoryView":105
 * 
 * @cname("__pyx_array")
 * cdef class array:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */
struct __pyx_array_obj {
  PyObject_HEAD
  struct __pyx_vtabstruct_array *__pyx_vtab;
  char *data;
  Py_ssize_t len;
  char *format;
  int ndim;
  Py_ssize_t *_shape;
  Py_ssize_t *_strides;
  Py_ssize_t itemsize;
  PyObject *mode;
  PyObject *_format;
  void (*callback_free_data)(void *);
  int free_data;
  int dtype_is_object;
};


/* "View.MemoryView":279
 * 
 * @cname('__pyx_MemviewEnum')
 * cdef class Enum(object):             # <<<<<<<<<<<<<<
 *     cdef object name
 *     def __init__(self, name):
 */
struct __pyx_MemviewEnum_obj {
  PyObject_HEAD
  PyObject *name;
};


/* "View.MemoryView":330
 * 
 * @cname('__pyx_memoryview')
 * cdef class memoryview(object):             # <<<<<<<<<<<<<<
 * 
 *     cdef object obj
 */
struct __pyx_memoryview_obj {
  PyObject_HEAD
  struct __pyx_vtabstruct_memoryview *__pyx_vtab;
  PyObject *obj;
  PyObject *_size;
  PyObject *_array_interface;
  PyThread_type_lock lock;
  __pyx_atomic_int acquisition_count[2];
  __pyx_atomic_int *acquisition_count_aligned_p;
  Py_buffer view;
  int flags;
  int dtype_is_object;
  __Pyx_TypeInfo *typeinfo;
};


/* "View.MemoryView":961
 * 
 * @cname('__pyx_memoryviewslice')
 * cdef class _memoryviewslice(memoryview):             # <<<<<<<<<<<<<<
 *     "Internal class for passing memoryview slices to Python"
 * 
 */
struct __pyx_memoryviewslice_obj {
  struct __pyx_memoryview_obj __pyx_base;
  __Pyx_memviewslice from_slice;
  PyObject *from_object;
  PyObject *(*to_object_func)(char *);
  int (*to_dtype_func)(char *, PyObject *);
};



/* "variant_tools/io_vcf_read.pyx":204
 * 
 * 
 * cdef class InputStreamBase:             # <<<<<<<<<<<<<<
 *     """Abstract base class defining an input stream over C chars."""
 * 
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase {
  int (*advance)(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_vtabptr_13variant_tools_11io_vcf_read_InputStreamBase;


/* "variant_tools/io_vcf_read.pyx":216
 * 
 * 
 * cdef class FileInputStream(InputStreamBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase __pyx_base;
  int (*_bufferup)(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *);
  int (*read_line_into)(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *);
  int (*read_lines_into)(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, Py_ssize_t);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *__pyx_vtabptr_13variant_tools_11io_vcf_read_FileInputStream;


/* "variant_tools/io_vcf_read.pyx":318
 * 
 * 
 * cdef class CharVectorInputStream(InputStreamBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_CharVectorInputStream {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase __pyx_base;
  void (*clear)(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_vtabptr_13variant_tools_11io_vcf_read_CharVectorInputStream;


/* "variant_tools/io_vcf_read.pyx":499
 * 
 * 
 * cdef class VCFParser:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser {
  int (*parse)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
  int (*malloc_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *);
  PyObject *(*make_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *, PyObject *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFParser;


/* "variant_tools/io_vcf_read.pyx":845
 * 
 * 
 * cdef class VCFFieldParserBase:             # <<<<<<<<<<<<<<
 *     """Abstract base class for top-level field parsers."""
 * 
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase {
  int (*parse)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
  int (*malloc_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *);
  int (*make_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;


/* "variant_tools/io_vcf_read.pyx":886
 * 
 * 
 * cdef class VCFSkipFieldParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 *     """Parser to skip a tab-delimited field."""
 * 
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFSkipFieldParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipFieldParser;


/* "variant_tools/io_vcf_read.pyx":991
 * 
 * 
 * cdef class VCFChromPosParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFChromPosParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFChromPosParser;


/* "variant_tools/io_vcf_read.pyx":1130
 * 
 * 
 * cdef class VCFIDStringParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFIDStringParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDStringParser;


/* "variant_tools/io_vcf_read.pyx":1177
 * 
 * 
 * cdef class VCFIDObjectParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, chunk_length):
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFIDObjectParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDObjectParser;


/* "variant_tools/io_vcf_read.pyx":1199
 * 
 * 
 * cdef class VCFRefStringParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFRefStringParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefStringParser;


/* "variant_tools/io_vcf_read.pyx":1259
 * 
 * 
 * cdef class VCFRefObjectParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFRefObjectParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefObjectParser;


/* "variant_tools/io_vcf_read.pyx":1292
 * 
 * 
 * cdef class VCFAltStringParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFAltStringParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltStringParser;


/* "variant_tools/io_vcf_read.pyx":1448
 * 
 * 
 * cdef class VCFAltObjectParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFAltObjectParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltObjectParser;


/* "variant_tools/io_vcf_read.pyx":1603
 * 
 * 
 * cdef class VCFQualParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float32_t[:] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFQualParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFQualParser;


/* "variant_tools/io_vcf_read.pyx":1635
 * 
 * 
 * cdef class VCFFilterParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  int (*parse_filter)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFilterParser;


/* "variant_tools/io_vcf_read.pyx":1741
 * 
 * 
 * cdef class VCFInfoParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  int (*parse_info)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParser;


/* "variant_tools/io_vcf_read.pyx":1941
 * 
 * 
 * cdef class VCFInfoParserBase:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase {
  int (*parse)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
  int (*make_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk *__pyx_optional_args);
  int (*malloc_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;


/* "variant_tools/io_vcf_read.pyx":1982
 * 
 * 
 * cdef class VCFInfoInt8Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int8_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt8Parser;


/* "variant_tools/io_vcf_read.pyx":2001
 * 
 * 
 * cdef class VCFInfoInt16Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int16_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt16Parser;


/* "variant_tools/io_vcf_read.pyx":2020
 * 
 * 
 * cdef class VCFInfoInt32Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int32_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt32Parser;


/* "variant_tools/io_vcf_read.pyx":2039
 * 
 * 
 * cdef class VCFInfoInt64Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int64_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt64Parser;


/* "variant_tools/io_vcf_read.pyx":2058
 * 
 * 
 * cdef class VCFInfoUInt8Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser;


/* "variant_tools/io_vcf_read.pyx":2077
 * 
 * 
 * cdef class VCFInfoUInt16Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint16_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser;


/* "variant_tools/io_vcf_read.pyx":2096
 * 
 * 
 * cdef class VCFInfoUInt32Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint32_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser;


/* "variant_tools/io_vcf_read.pyx":2115
 * 
 * 
 * cdef class VCFInfoUInt64Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint64_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser;


/* "variant_tools/io_vcf_read.pyx":2134
 * 
 * 
 * cdef class VCFInfoFloat32Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float32_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser;


/* "variant_tools/io_vcf_read.pyx":2153
 * 
 * 
 * cdef class VCFInfoFloat64Parser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float64_t[:, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser;


/* "variant_tools/io_vcf_read.pyx":2172
 * 
 * 
 * cdef class VCFInfoFlagParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFlagParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFlagParser;


/* "variant_tools/io_vcf_read.pyx":2205
 * 
 * 
 * cdef class VCFInfoStringParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoStringParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoStringParser;


/* "variant_tools/io_vcf_read.pyx":2259
 * 
 * 
 * cdef class VCFInfoObjectParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args, **kwargs):
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoObjectParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoObjectParser;


/* "variant_tools/io_vcf_read.pyx":2305
 * 
 * 
 * cdef class VCFInfoSkipParser(VCFInfoParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *args, **kwargs):
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoSkipParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoSkipParser;


/* "variant_tools/io_vcf_read.pyx":2428
 * 
 * 
 * cdef class VCFFormatParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFormatParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
  int (*store_format)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFormatParser;


/* "variant_tools/io_vcf_read.pyx":2513
 * 
 * 
 * cdef class VCFSkipAllCallDataParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 *     """Skip a field."""
 * 
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser;


/* "variant_tools/io_vcf_read.pyx":2523
 * 
 * 
 * cdef class VCFCallDataParser(VCFFieldParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParser;


/* "variant_tools/io_vcf_read.pyx":2740
 * 
 * 
 * cdef class VCFCallDataParserBase:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase {
  int (*malloc_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *);
  int (*make_chunk)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args);
  int (*parse)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *);
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;


/* "variant_tools/io_vcf_read.pyx":2786
 * 
 * 
 * cdef class VCFCallDataSkipParser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, key, *args, **kwargs):
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataSkipParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataSkipParser;


/* "variant_tools/io_vcf_read.pyx":2803
 * 
 * 
 * cdef class VCFGenotypeInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser;


/* "variant_tools/io_vcf_read.pyx":2823
 * 
 * 
 * cdef class VCFGenotypeInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser;


/* "variant_tools/io_vcf_read.pyx":2843
 * 
 * 
 * cdef class VCFGenotypeInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser;


/* "variant_tools/io_vcf_read.pyx":2863
 * 
 * 
 * cdef class VCFGenotypeInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser;


/* "variant_tools/io_vcf_read.pyx":2883
 * 
 * 
 * cdef class VCFGenotypeUInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser;


/* "variant_tools/io_vcf_read.pyx":2903
 * 
 * 
 * cdef class VCFGenotypeUInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser;


/* "variant_tools/io_vcf_read.pyx":2923
 * 
 * 
 * cdef class VCFGenotypeUInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser;


/* "variant_tools/io_vcf_read.pyx":2943
 * 
 * 
 * cdef class VCFGenotypeUInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser;


/* "variant_tools/io_vcf_read.pyx":3099
 * 
 * 
 * cdef class VCFGenotypeACInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser;


/* "variant_tools/io_vcf_read.pyx":3119
 * 
 * 
 * cdef class VCFGenotypeACInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser;


/* "variant_tools/io_vcf_read.pyx":3139
 * 
 * 
 * cdef class VCFGenotypeACInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser;


/* "variant_tools/io_vcf_read.pyx":3159
 * 
 * 
 * cdef class VCFGenotypeACInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser;


/* "variant_tools/io_vcf_read.pyx":3179
 * 
 * 
 * cdef class VCFGenotypeACUInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser;


/* "variant_tools/io_vcf_read.pyx":3199
 * 
 * 
 * cdef class VCFGenotypeACUInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser;


/* "variant_tools/io_vcf_read.pyx":3219
 * 
 * 
 * cdef class VCFGenotypeACUInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser;


/* "variant_tools/io_vcf_read.pyx":3239
 * 
 * 
 * cdef class VCFGenotypeACUInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser;


/* "variant_tools/io_vcf_read.pyx":3299
 * 
 * 
 * cdef class VCFCallDataInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int8_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser;


/* "variant_tools/io_vcf_read.pyx":3318
 * 
 * 
 * cdef class VCFCallDataInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int16_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser;


/* "variant_tools/io_vcf_read.pyx":3337
 * 
 * 
 * cdef class VCFCallDataInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int32_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser;


/* "variant_tools/io_vcf_read.pyx":3356
 * 
 * 
 * cdef class VCFCallDataInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.int64_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser;


/* "variant_tools/io_vcf_read.pyx":3375
 * 
 * 
 * cdef class VCFCallDataUInt8Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser;


/* "variant_tools/io_vcf_read.pyx":3394
 * 
 * 
 * cdef class VCFCallDataUInt16Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint16_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser;


/* "variant_tools/io_vcf_read.pyx":3413
 * 
 * 
 * cdef class VCFCallDataUInt32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint32_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser;


/* "variant_tools/io_vcf_read.pyx":3432
 * 
 * 
 * cdef class VCFCallDataUInt64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint64_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser;


/* "variant_tools/io_vcf_read.pyx":3451
 * 
 * 
 * cdef class VCFCallDataFloat32Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float32_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser;


/* "variant_tools/io_vcf_read.pyx":3470
 * 
 * 
 * cdef class VCFCallDataFloat64Parser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.float64_t[:, :, :] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser;


/* "variant_tools/io_vcf_read.pyx":3587
 * 
 * 
 * cdef class VCFCallDataStringParser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataStringParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataStringParser;


/* "variant_tools/io_vcf_read.pyx":3660
 * 
 * 
 * cdef class VCFCallDataObjectParser(VCFCallDataParserBase):             # <<<<<<<<<<<<<<
 * 
 *     cdef np.uint8_t[:] memory
 */

struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataObjectParser {
  struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_base;
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataObjectParser;


/* "View.MemoryView":105
 * 
 * @cname("__pyx_array")
 * cdef class array:             # <<<<<<<<<<<<<<
 * 
 *     cdef:
 */

struct __pyx_vtabstruct_array {
  PyObject *(*get_memview)(struct __pyx_array_obj *);
};
static struct __pyx_vtabstruct_array *__pyx_vtabptr_array;


/* "View.MemoryView":330
 * 
 * @cname('__pyx_memoryview')
 * cdef class memoryview(object):             # <<<<<<<<<<<<<<
 * 
 *     cdef object obj
 */

struct __pyx_vtabstruct_memoryview {
  char *(*get_item_pointer)(struct __pyx_memoryview_obj *, PyObject *);
  PyObject *(*is_slice)(struct __pyx_memoryview_obj *, PyObject *);
  PyObject *(*setitem_slice_assignment)(struct __pyx_memoryview_obj *, PyObject *, PyObject *);
  PyObject *(*setitem_slice_assign_scalar)(struct __pyx_memoryview_obj *, struct __pyx_memoryview_obj *, PyObject *);
  PyObject *(*setitem_indexed)(struct __pyx_memoryview_obj *, PyObject *, PyObject *);
  PyObject *(*convert_item_to_object)(struct __pyx_memoryview_obj *, char *);
  PyObject *(*assign_item_from_object)(struct __pyx_memoryview_obj *, char *, PyObject *);
};
static struct __pyx_vtabstruct_memoryview *__pyx_vtabptr_memoryview;


/* "View.MemoryView":961
 * 
 * @cname('__pyx_memoryviewslice')
 * cdef class _memoryviewslice(memoryview):             # <<<<<<<<<<<<<<
 *     "Internal class for passing memoryview slices to Python"
 * 
 */

struct __pyx_vtabstruct__memoryviewslice {
  struct __pyx_vtabstruct_memoryview __pyx_base;
};
static struct __pyx_vtabstruct__memoryviewslice *__pyx_vtabptr__memoryviewslice;

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
#define __Pyx_GetModuleGlobalNameUncached(var, name)  {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* PyObjectCall2Args.proto */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* IncludeStringH.proto */
#include <string.h>

/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* StrEquals.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
#else
#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
#endif

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* MemviewSliceInit.proto */
#define __Pyx_BUF_MAX_NDIMS %(BUF_MAX_NDIMS)d
#define __Pyx_MEMVIEW_DIRECT   1
#define __Pyx_MEMVIEW_PTR      2
#define __Pyx_MEMVIEW_FULL     4
#define __Pyx_MEMVIEW_CONTIG   8
#define __Pyx_MEMVIEW_STRIDED  16
#define __Pyx_MEMVIEW_FOLLOW   32
#define __Pyx_IS_C_CONTIG 1
#define __Pyx_IS_F_CONTIG 2
static int __Pyx_init_memviewslice(
                struct __pyx_memoryview_obj *memview,
                int ndim,
                __Pyx_memviewslice *memviewslice,
                int memview_is_new_reference);
static CYTHON_INLINE int __pyx_add_acquisition_count_locked(
    __pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
static CYTHON_INLINE int __pyx_sub_acquisition_count_locked(
    __pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
#define __pyx_get_slice_count_pointer(memview) (memview->acquisition_count_aligned_p)
#define __pyx_get_slice_count(memview) (*__pyx_get_slice_count_pointer(memview))
#define __PYX_INC_MEMVIEW(slice, have_gil) __Pyx_INC_MEMVIEW(slice, have_gil, __LINE__)
#define __PYX_XDEC_MEMVIEW(slice, have_gil) __Pyx_XDEC_MEMVIEW(slice, have_gil, __LINE__)
static CYTHON_INLINE void __Pyx_INC_MEMVIEW(__Pyx_memviewslice *, int, int);
static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *, int, int);

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
        PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* SetItemInt.proto */
#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\
               __Pyx_SetItemInt_Generic(o, to_py_func(i), v)))
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v);
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
                                               int is_list, int wraparound, int boundscheck);

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
#else
#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* PyIntCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

/* dict_setdefault.proto */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value, int is_safe_type);

/* UnpackUnboundCMethod.proto */
typedef struct {
    PyObject *type;
    PyObject **method_name;
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;

/* CallUnboundCMethod2.proto */
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030600B1
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* dict_getitem_default.proto */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value);

/* CallUnboundCMethod1.proto */
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* PyObjectGetMethod.proto */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);

/* PyObjectCallMethod0.proto */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto */
#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\
    (likely(is_tuple || PyTuple_Check(tuple)) ?\
        (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\
            __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\
            (__Pyx_UnpackTupleError(tuple, 2), -1)) :\
        __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple))
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* MergeKeywords.proto */
static int __Pyx_MergeKeywords(PyObject *kwdict, PyObject *source_mapping);

/* ListExtend.proto */
static CYTHON_INLINE int __Pyx_PyList_Extend(PyObject* L, PyObject* v) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject* none = _PyList_Extend((PyListObject*)L, v);
    if (unlikely(!none))
        return -1;
    Py_DECREF(none);
    return 0;
#else
    return PyList_SetSlice(L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, v);
#endif
}

/* py_dict_keys.proto */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d);

/* CallUnboundCMethod0.proto */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CallUnboundCMethod0(cfunc, self)\
    (likely((cfunc)->func) ?\
        (likely((cfunc)->flag == METH_NOARGS) ?  (*((cfunc)->func))(self, NULL) :\
         (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\
            (PY_VERSION_HEX >= 0x030700A0 ?\
                (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\
                (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\
          (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\
            (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\
            (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ?  ((*(PyCFunctionWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\
               ((cfunc)->flag == METH_VARARGS ?  (*((cfunc)->func))(self, __pyx_empty_tuple) :\
               __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\
        __Pyx__CallUnboundCMethod0(cfunc, self))
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* HasAttr.proto */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* None.proto */
static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t);

/* UnaryNegOverflows.proto */
#define UNARY_NEG_WOULD_OVERFLOW(x)\
        (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))

static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *); /*proto*/
/* decode_c_string_utf16.proto */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* None.proto */
static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname);

/* None.proto */
static CYTHON_INLINE long __Pyx_div_long(long, long);

/* CallNextTpTraverse.proto */
static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse);

/* CallNextTpClear.proto */
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_dealloc);

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto
#define __PYX_HAVE_RT_ImportType_proto
enum __Pyx_ImportType_CheckSize {
   __Pyx_ImportType_CheckSize_Error = 0,
   __Pyx_ImportType_CheckSize_Warn = 1,
   __Pyx_ImportType_CheckSize_Ignore = 2
};
static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
#endif

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

#if PY_MAJOR_VERSION < 3
    static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags);
    static void __Pyx_ReleaseBuffer(Py_buffer *view);
#else
    #define __Pyx_GetBuffer PyObject_GetBuffer
    #define __Pyx_ReleaseBuffer PyBuffer_Release
#endif


/* BufferStructDeclare.proto */
typedef struct {
  Py_ssize_t shape, strides, suboffsets;
} __Pyx_Buf_DimInfo;
typedef struct {
  size_t refcount;
  Py_buffer pybuffer;
} __Pyx_Buffer;
typedef struct {
  __Pyx_Buffer *rcbuffer;
  char *data;
  __Pyx_Buf_DimInfo diminfo[8];
} __Pyx_LocalBuf_ND;

/* MemviewSliceIsContig.proto */
static int __pyx_memviewslice_is_contig(const __Pyx_memviewslice mvs, char order, int ndim);

/* OverlappingSlices.proto */
static int __pyx_slices_overlap(__Pyx_memviewslice *slice1,
                                __Pyx_memviewslice *slice2,
                                int ndim, size_t itemsize);

/* Capsule.proto */
static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_char(char value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint8(npy_uint8 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint8_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint8_t(const char *itemp, PyObject *obj);

/* IsLittleEndian.proto */
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void);

/* BufferFormatCheck.proto */
static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts);
static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
                              __Pyx_BufFmt_StackElem* stack,
                              __Pyx_TypeInfo* type);

/* TypeInfoCompare.proto */
static int __pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b);

/* MemviewSliceValidateAndInit.proto */
static int __Pyx_ValidateAndInit_memviewslice(
                int *axes_specs,
                int c_or_f_flag,
                int buf_flags,
                int ndim,
                __Pyx_TypeInfo *dtype,
                __Pyx_BufFmt_StackElem stack[],
                __Pyx_memviewslice *memviewslice,
                PyObject *original_obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int32(npy_int32 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int32_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int32_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(PyObject *, int writable_flag);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_float32_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_float32_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_float32_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int8(npy_int8 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int8_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int8_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int8_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int16(npy_int16 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int16_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int16_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int16_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int64(npy_int64 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int64_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int64_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int64_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint8_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint16(npy_uint16 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint16_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint16_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint16_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint32(npy_uint32 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint32_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint32_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint32_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint64(npy_uint64 value);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint64_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint64_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint64_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float32_t(PyObject *, int writable_flag);

/* MemviewDtypeToObject.proto */
static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_float64_t(const char *itemp);
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_float64_t(const char *itemp, PyObject *obj);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float64_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float32_t(PyObject *, int writable_flag);

/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float64_t(PyObject *, int writable_flag);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx value);

/* RealImag.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #define __Pyx_CREAL(z) ((z).real())
    #define __Pyx_CIMAG(z) ((z).imag())
  #else
    #define __Pyx_CREAL(z) (__real__(z))
    #define __Pyx_CIMAG(z) (__imag__(z))
  #endif
#else
    #define __Pyx_CREAL(z) ((z).real)
    #define __Pyx_CIMAG(z) ((z).imag)
#endif
#if defined(__cplusplus) && CYTHON_CCOMPLEX\
        && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
    #define __Pyx_SET_CREAL(z,x) ((z).real(x))
    #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
    #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
    #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX
    #define __Pyx_c_eq_float(a, b)   ((a)==(b))
    #define __Pyx_c_sum_float(a, b)  ((a)+(b))
    #define __Pyx_c_diff_float(a, b) ((a)-(b))
    #define __Pyx_c_prod_float(a, b) ((a)*(b))
    #define __Pyx_c_quot_float(a, b) ((a)/(b))
    #define __Pyx_c_neg_float(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
    #define __Pyx_c_conj_float(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_float(z)     (::std::abs(z))
        #define __Pyx_c_pow_float(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_float(z) ((z)==0)
    #define __Pyx_c_conj_float(z)    (conjf(z))
    #if 1
        #define __Pyx_c_abs_float(z)     (cabsf(z))
        #define __Pyx_c_pow_float(a, b)  (cpowf(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
    #if 1
        static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex);
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
    #endif
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX
    #define __Pyx_c_eq_double(a, b)   ((a)==(b))
    #define __Pyx_c_sum_double(a, b)  ((a)+(b))
    #define __Pyx_c_diff_double(a, b) ((a)-(b))
    #define __Pyx_c_prod_double(a, b) ((a)*(b))
    #define __Pyx_c_quot_double(a, b) ((a)/(b))
    #define __Pyx_c_neg_double(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
    #define __Pyx_c_conj_double(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (::std::abs(z))
        #define __Pyx_c_pow_double(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_double(z) ((z)==0)
    #define __Pyx_c_conj_double(z)    (conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (cabs(z))
        #define __Pyx_c_pow_double(a, b)  (cpow(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex);
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
    #endif
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value);

/* MemviewSliceCopyTemplate.proto */
static __Pyx_memviewslice
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
                                 const char *mode, int ndim,
                                 size_t sizeof_dtype, int contig_flag,
                                 int dtype_is_object);

/* CIntFromPy.proto */
static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_uint8 __Pyx_PyInt_As_npy_uint8(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_int32 __Pyx_PyInt_As_npy_int32(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_int8 __Pyx_PyInt_As_npy_int8(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_int16 __Pyx_PyInt_As_npy_int16(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_int64 __Pyx_PyInt_As_npy_int64(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_uint16 __Pyx_PyInt_As_npy_uint16(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_uint32 __Pyx_PyInt_As_npy_uint32(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE npy_uint64 __Pyx_PyInt_As_npy_uint64(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);

static int __pyx_f_13variant_tools_11io_vcf_read_15InputStreamBase_advance(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream__bufferup(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_advance(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_read_line_into(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_dest); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_read_lines_into(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_dest, Py_ssize_t __pyx_v_n); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21CharVectorInputStream_advance(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self); /* proto*/
static void __pyx_f_13variant_tools_11io_vcf_read_21CharVectorInputStream_clear(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_9VCFParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_9VCFParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read_9VCFParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_chunk_length); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_13VCFQualParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_13VCFQualParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_parse_filter(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_parse_info(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFormatParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFormatParser_store_format(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk *__pyx_optional_args); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self); /* proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk *__pyx_optional_args); /* proto*/
static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self); /* proto*/
static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index); /* proto*/
static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj); /* proto*/
static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src); /* proto*/
static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memoryview_obj *__pyx_v_self, struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/

/* Module declarations from 'libc.string' */

/* Module declarations from 'libc.stdio' */

/* Module declarations from '__builtin__' */

/* Module declarations from 'cpython.type' */
static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;

/* Module declarations from 'cpython.buffer' */

/* Module declarations from 'cpython' */

/* Module declarations from 'cpython.object' */

/* Module declarations from 'cpython.bytes' */

/* Module declarations from 'libc.stdlib' */

/* Module declarations from 'cpython.ref' */

/* Module declarations from 'cpython.mem' */

/* Module declarations from 'numpy' */

/* Module declarations from 'numpy' */
static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/

/* Module declarations from 'variant_tools.io_vcf_read' */
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_FileInputStream = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_CharVectorInputStream = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFContext = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFChunkIterator = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFFilterParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFFormatParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser = 0;
static PyTypeObject *__pyx_ptype_13variant_tools_11io_vcf_read_ANNTransformer = 0;
static PyTypeObject *__pyx_array_type = 0;
static PyTypeObject *__pyx_MemviewEnum_type = 0;
static PyTypeObject *__pyx_memoryview_type = 0;
static PyTypeObject *__pyx_memoryviewslice_type = 0;
static double __pyx_v_13variant_tools_11io_vcf_read_NAN;
static char __pyx_v_13variant_tools_11io_vcf_read_TAB;
static char __pyx_v_13variant_tools_11io_vcf_read_LF;
static char __pyx_v_13variant_tools_11io_vcf_read_CR;
static char __pyx_v_13variant_tools_11io_vcf_read_HASH;
static char __pyx_v_13variant_tools_11io_vcf_read_COLON;
static char __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON;
static char __pyx_v_13variant_tools_11io_vcf_read_PERIOD;
static char __pyx_v_13variant_tools_11io_vcf_read_COMMA;
static char __pyx_v_13variant_tools_11io_vcf_read_SLASH;
static char __pyx_v_13variant_tools_11io_vcf_read_PIPE;
static char __pyx_v_13variant_tools_11io_vcf_read_EQUALS;
static char __pyx_v_13variant_tools_11io_vcf_read_ASTERISK;
static PyObject *generic = 0;
static PyObject *strided = 0;
static PyObject *indirect = 0;
static PyObject *contiguous = 0;
static PyObject *indirect_contiguous = 0;
static int __pyx_memoryview_thread_locks_used;
static PyThread_type_lock __pyx_memoryview_thread_locks[8];
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_init(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, Py_ssize_t); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_free(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, char); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pybytes(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr_sized(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, Py_ssize_t); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_init(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *, Py_ssize_t); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_free(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_append(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *, int); /*proto*/
static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_clear(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *); /*proto*/
static CYTHON_INLINE Py_ssize_t __pyx_f_13variant_tools_11io_vcf_read_search_sorted_cstr(char *, char **, Py_ssize_t); /*proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *); /*proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_vcf_parse_missing(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *); /*proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_vcf_skip_variant(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *); /*proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t); /*proto*/
static Py_ssize_t __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, long *); /*proto*/
static Py_ssize_t __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, double *); /*proto*/
static int __pyx_f_13variant_tools_11io_vcf_read_warn(PyObject *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_InputStreamBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_FileInputStream__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChunkIterator__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFFieldParserBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipFieldParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChromPosParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFQualParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoParserBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFlagParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoSkipParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *, PyObject *); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipAllCallDataParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataParserBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataSkipParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *, PyObject *); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *, PyObject *); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *, PyObject *); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *, Py_ssize_t, __Pyx_memviewslice); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *, PyObject *); /*proto*/
static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_ANNTransformer__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *, PyObject *); /*proto*/
static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t, char *, char *, char *); /*proto*/
static void *__pyx_align_pointer(void *, size_t); /*proto*/
static PyObject *__pyx_memoryview_new(PyObject *, int, int, __Pyx_TypeInfo *); /*proto*/
static CYTHON_INLINE int __pyx_memoryview_check(PyObject *); /*proto*/
static PyObject *_unellipsify(PyObject *, int); /*proto*/
static PyObject *assert_direct_dimensions(Py_ssize_t *, int); /*proto*/
static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_obj *, PyObject *); /*proto*/
static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *, Py_ssize_t, Py_ssize_t, Py_ssize_t, int, int, int *, Py_ssize_t, Py_ssize_t, Py_ssize_t, int, int, int, int); /*proto*/
static char *__pyx_pybuffer_index(Py_buffer *, char *, Py_ssize_t, Py_ssize_t); /*proto*/
static int __pyx_memslice_transpose(__Pyx_memviewslice *); /*proto*/
static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice, int, PyObject *(*)(char *), int (*)(char *, PyObject *), int); /*proto*/
static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/
static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/
static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *); /*proto*/
static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/
static Py_ssize_t abs_py_ssize_t(Py_ssize_t); /*proto*/
static char __pyx_get_best_slice_order(__Pyx_memviewslice *, int); /*proto*/
static void _copy_strided_to_strided(char *, Py_ssize_t *, char *, Py_ssize_t *, Py_ssize_t *, Py_ssize_t *, int, size_t); /*proto*/
static void copy_strided_to_strided(__Pyx_memviewslice *, __Pyx_memviewslice *, int, size_t); /*proto*/
static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *, int); /*proto*/
static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *, Py_ssize_t *, Py_ssize_t, int, char); /*proto*/
static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *, __Pyx_memviewslice *, char, int); /*proto*/
static int __pyx_memoryview_err_extents(int, Py_ssize_t, Py_ssize_t); /*proto*/
static int __pyx_memoryview_err_dim(PyObject *, char *, int); /*proto*/
static int __pyx_memoryview_err(PyObject *, char *); /*proto*/
static int __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice, int, int, int); /*proto*/
static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *, int, int); /*proto*/
static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *, int, int, int); /*proto*/
static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *, Py_ssize_t *, Py_ssize_t *, int, int); /*proto*/
static void __pyx_memoryview_refcount_objects_in_slice(char *, Py_ssize_t *, Py_ssize_t *, int, int); /*proto*/
static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *, int, size_t, void *, int); /*proto*/
static void __pyx_memoryview__slice_assign_scalar(char *, Py_ssize_t *, Py_ssize_t *, int, size_t, void *); /*proto*/
static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *, PyObject *); /*proto*/
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_uint8_t = { "uint8_t", NULL, sizeof(__pyx_t_5numpy_uint8_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_uint8_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_uint8_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int32_t = { "int32_t", NULL, sizeof(__pyx_t_5numpy_int32_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int32_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int32_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t = { "float32_t", NULL, sizeof(__pyx_t_5numpy_float32_t), { 0 }, 0, 'R', 0, 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int8_t = { "int8_t", NULL, sizeof(__pyx_t_5numpy_int8_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int8_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int8_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int16_t = { "int16_t", NULL, sizeof(__pyx_t_5numpy_int16_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int16_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int16_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t = { "int64_t", NULL, sizeof(__pyx_t_5numpy_int64_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int64_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int64_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_uint16_t = { "uint16_t", NULL, sizeof(__pyx_t_5numpy_uint16_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_uint16_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_uint16_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_uint32_t = { "uint32_t", NULL, sizeof(__pyx_t_5numpy_uint32_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_uint32_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_uint32_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_uint64_t = { "uint64_t", NULL, sizeof(__pyx_t_5numpy_uint64_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_uint64_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_uint64_t), 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t = { "float64_t", NULL, sizeof(__pyx_t_5numpy_float64_t), { 0 }, 0, 'R', 0, 0 };
#define __Pyx_MODULE_NAME "variant_tools.io_vcf_read"
extern int __pyx_module_is_main_variant_tools__io_vcf_read;
int __pyx_module_is_main_variant_tools__io_vcf_read = 0;

/* Implementation of 'variant_tools.io_vcf_read' */
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_StopIteration;
static PyObject *__pyx_builtin_RuntimeError;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_super;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_ImportError;
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_Ellipsis;
static PyObject *__pyx_builtin_id;
static PyObject *__pyx_builtin_IndexError;
static const char __pyx_k_C[] = "C";
static const char __pyx_k_O[] = "O";
static const char __pyx_k_S[] = "S";
static const char __pyx_k_c[] = "c";
static const char __pyx_k_f[] = "f";
static const char __pyx_k_i[] = "i";
static const char __pyx_k_t[] = "t";
static const char __pyx_k_GT[] = "GT";
static const char __pyx_k_ID[] = "ID";
static const char __pyx_k__3[] = "/";
static const char __pyx_k__6[] = "";
static const char __pyx_k__7[] = ":";
static const char __pyx_k__8[] = "-";
static const char __pyx_k_ff[] = "ff";
static const char __pyx_k_id[] = "id";
static const char __pyx_k_np[] = "np";
static const char __pyx_k_u1[] = "u1";
static const char __pyx_k_ALT[] = "ALT";
static const char __pyx_k_ANN[] = "ANN_";
static const char __pyx_k_EOF[] = "EOF";
static const char __pyx_k_EOL[] = "EOL";
static const char __pyx_k_II8[] = "II8";
static const char __pyx_k_IU8[] = "IU8";
static const char __pyx_k_POS[] = "POS";
static const char __pyx_k_PY2[] = "PY2";
static const char __pyx_k_REF[] = "REF";
static const char __pyx_k__13[] = ".";
static const char __pyx_k__32[] = "|";
static const char __pyx_k_get[] = "get";
static const char __pyx_k_key[] = "key";
static const char __pyx_k_max[] = "max";
static const char __pyx_k_nan[] = "nan";
static const char __pyx_k_new[] = "__new__";
static const char __pyx_k_obj[] = "obj";
static const char __pyx_k_s_s[] = " (%s:%s)";
static const char __pyx_k_sys[] = "sys";
static const char __pyx_k_II16[] = "II16";
static const char __pyx_k_II32[] = "II32";
static const char __pyx_k_II64[] = "II64";
static const char __pyx_k_INFO[] = "INFO";
static const char __pyx_k_IU16[] = "IU16";
static const char __pyx_k_IU32[] = "IU32";
static const char __pyx_k_IU64[] = "IU64";
static const char __pyx_k_QUAL[] = "QUAL";
static const char __pyx_k_axis[] = "axis";
static const char __pyx_k_base[] = "base";
static const char __pyx_k_bool[] = "bool";
static const char __pyx_k_dict[] = "__dict__";
static const char __pyx_k_fill[] = "fill";
static const char __pyx_k_init[] = "__init__";
static const char __pyx_k_int8[] = "int8";
static const char __pyx_k_keys[] = "keys";
static const char __pyx_k_kind[] = "kind";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_mode[] = "mode";
static const char __pyx_k_name[] = "name";
static const char __pyx_k_ndim[] = "ndim";
static const char __pyx_k_ones[] = "ones";
static const char __pyx_k_pack[] = "pack";
static const char __pyx_k_size[] = "size";
static const char __pyx_k_step[] = "step";
static const char __pyx_k_stop[] = "stop";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_view[] = "view";
static const char __pyx_k_warn[] = "warn";
static const char __pyx_k_ASCII[] = "ASCII";
static const char __pyx_k_CHROM[] = "CHROM";
static const char __pyx_k_ascii[] = "ascii";
static const char __pyx_k_class[] = "__class__";
static const char __pyx_k_close[] = "close";
static const char __pyx_k_dtype[] = "dtype";
static const char __pyx_k_empty[] = "empty";
static const char __pyx_k_error[] = "error";
static const char __pyx_k_field[] = "field";
static const char __pyx_k_fills[] = "fills";
static const char __pyx_k_flags[] = "flags";
static const char __pyx_k_iinfo[] = "iinfo";
static const char __pyx_k_int16[] = "int16";
static const char __pyx_k_int32[] = "int32";
static const char __pyx_k_int64[] = "int64";
static const char __pyx_k_items[] = "items";
static const char __pyx_k_numpy[] = "numpy";
static const char __pyx_k_order[] = "order";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_shape[] = "shape";
static const char __pyx_k_split[] = "split";
static const char __pyx_k_start[] = "start";
static const char __pyx_k_store[] = "store";
static const char __pyx_k_super[] = "super";
static const char __pyx_k_types[] = "types";
static const char __pyx_k_uint8[] = "uint8";
static const char __pyx_k_zeros[] = "zeros";
static const char __pyx_k_FILTER[] = "FILTER";
static const char __pyx_k_FORMAT[] = "FORMAT";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_fields[] = "fields";
static const char __pyx_k_format[] = "format";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_name_2[] = "__name__";
static const char __pyx_k_number[] = "number";
static const char __pyx_k_object[] = "object";
static const char __pyx_k_pickle[] = "pickle";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_region[] = "region";
static const char __pyx_k_remove[] = "remove";
static const char __pyx_k_stream[] = "stream";
static const char __pyx_k_struct[] = "struct";
static const char __pyx_k_uint16[] = "uint16";
static const char __pyx_k_uint32[] = "uint32";
static const char __pyx_k_uint64[] = "uint64";
static const char __pyx_k_unpack[] = "unpack";
static const char __pyx_k_update[] = "update";
static const char __pyx_k_field_s[] = "; field: %s";
static const char __pyx_k_fileobj[] = "fileobj";
static const char __pyx_k_float32[] = "float32";
static const char __pyx_k_float64[] = "float64";
static const char __pyx_k_fortran[] = "fortran";
static const char __pyx_k_headers[] = "headers";
static const char __pyx_k_init_id[] = "_init_id";
static const char __pyx_k_memview[] = "memview";
static const char __pyx_k_newaxis[] = "newaxis";
static const char __pyx_k_numbers[] = "numbers";
static const char __pyx_k_reshape[] = "reshape";
static const char __pyx_k_samples[] = "samples";
static const char __pyx_k_squeeze[] = "squeeze";
static const char __pyx_k_unknown[] = "unknown";
static const char __pyx_k_CALLDATA[] = "CALLDATA";
static const char __pyx_k_Ellipsis[] = "Ellipsis";
static const char __pyx_k_ID_FIELD[] = "ID_FIELD";
static const char __pyx_k_calldata[] = "calldata";
static const char __pyx_k_capacity[] = "capacity";
static const char __pyx_k_genotype[] = "genotype/";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_init_alt[] = "_init_alt";
static const char __pyx_k_init_ref[] = "_init_ref";
static const char __pyx_k_itemsize[] = "itemsize";
static const char __pyx_k_pyx_type[] = "__pyx_type";
static const char __pyx_k_readinto[] = "readinto";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_variants[] = "variants";
static const char __pyx_k_warnings[] = "warnings";
static const char __pyx_k_ALT_FIELD[] = "ALT_FIELD";
static const char __pyx_k_ANN_FIELD[] = "ANN_FIELD";
static const char __pyx_k_POS_FIELD[] = "POS_FIELD";
static const char __pyx_k_REF_FIELD[] = "REF_FIELD";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_VCFParser[] = "VCFParser";
static const char __pyx_k_empty_POS[] = "empty POS";
static const char __pyx_k_enumerate[] = "enumerate";
static const char __pyx_k_info_keys[] = "info_keys";
static const char __pyx_k_init_info[] = "_init_info";
static const char __pyx_k_init_qual[] = "_init_qual";
static const char __pyx_k_n_samples[] = "n_samples";
static const char __pyx_k_pyx_state[] = "__pyx_state";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_store_alt[] = "store_alt";
static const char __pyx_k_store_pos[] = "store_pos";
static const char __pyx_k_variant_s[] = "; variant: %s";
static const char __pyx_k_ANN_FIELDS[] = "ANN_FIELDS";
static const char __pyx_k_IndexError[] = "IndexError";
static const char __pyx_k_QUAL_FIELD[] = "QUAL_FIELD";
static const char __pyx_k_VCFContext[] = "VCFContext";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_calldata_2[] = "calldata/";
static const char __pyx_k_pyx_result[] = "__pyx_result";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_region_end[] = "region_end";
static const char __pyx_k_setdefault[] = "setdefault";
static const char __pyx_k_startswith[] = "startswith";
static const char __pyx_k_variants_2[] = "variants/";
static const char __pyx_k_CHROM_FIELD[] = "CHROM_FIELD";
static const char __pyx_k_ImportError[] = "ImportError";
static const char __pyx_k_MemoryError[] = "MemoryError";
static const char __pyx_k_PickleError[] = "PickleError";
static const char __pyx_k_buffer_size[] = "buffer_size";
static const char __pyx_k_empty_CHROM[] = "empty CHROM";
static const char __pyx_k_filter_keys[] = "filter_keys";
static const char __pyx_k_format_keys[] = "format_keys";
static const char __pyx_k_genotype_ac[] = "genotype_ac/";
static const char __pyx_k_init_filter[] = "_init_filter";
static const char __pyx_k_init_region[] = "_init_region";
static const char __pyx_k_loc_samples[] = "loc_samples";
static const char __pyx_k_store_chrom[] = "store_chrom";
static const char __pyx_k_store_svlen[] = "store_svlen";
static const char __pyx_k_variants_ID[] = "variants/ID";
static const char __pyx_k_ANN_AA_FIELD[] = "ANN_AA_FIELD";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_chunk_length[] = "chunk_length";
static const char __pyx_k_normed_types[] = "normed_types";
static const char __pyx_k_pyx_checksum[] = "__pyx_checksum";
static const char __pyx_k_region_begin[] = "region_begin";
static const char __pyx_k_region_chrom[] = "region_chrom";
static const char __pyx_k_store_is_snp[] = "store_is_snp";
static const char __pyx_k_store_numalt[] = "store_numalt";
static const char __pyx_k_stringsource[] = "stringsource";
static const char __pyx_k_variants_ALT[] = "variants/ALT";
static const char __pyx_k_variants_ANN[] = "variants/ANN_";
static const char __pyx_k_variants_POS[] = "variants/POS";
static const char __pyx_k_variants_REF[] = "variants/REF";
static const char __pyx_k_version_info[] = "version_info";
static const char __pyx_k_ANN_CDS_FIELD[] = "ANN_CDS_FIELD";
static const char __pyx_k_StopIteration[] = "StopIteration";
static const char __pyx_k_VCFInfoParser[] = "VCFInfoParser";
static const char __pyx_k_VCFQualParser[] = "VCFQualParser";
static const char __pyx_k_check_samples[] = "check_samples";
static const char __pyx_k_count_nonzero[] = "count_nonzero";
static const char __pyx_k_keep_original[] = "keep_original";
static const char __pyx_k_n_samples_out[] = "n_samples_out";
static const char __pyx_k_normed_fields[] = "normed_fields";
static const char __pyx_k_pyx_getbuffer[] = "__pyx_getbuffer";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_variants_QUAL[] = "variants/QUAL";
static const char __pyx_k_ANNTransformer[] = "ANNTransformer";
static const char __pyx_k_ANN_CDNA_FIELD[] = "ANN_CDNA_FIELD";
static const char __pyx_k_ANN_RANK_FIELD[] = "ANN_RANK_FIELD";
static const char __pyx_k_init_chrom_pos[] = "_init_chrom_pos";
static const char __pyx_k_sample_s_s_s_s[] = "; sample: %s:%s (%s:%s)";
static const char __pyx_k_variants_ANN_2[] = "variants/ANN";
static const char __pyx_k_variants_CHROM[] = "variants/CHROM";
static const char __pyx_k_variants_svlen[] = "variants/svlen";
static const char __pyx_k_FileInputStream[] = "FileInputStream";
static const char __pyx_k_InputStreamBase[] = "InputStreamBase";
static const char __pyx_k_VCFFilterParser[] = "VCFFilterParser";
static const char __pyx_k_VCFFormatParser[] = "VCFFormatParser";
static const char __pyx_k_View_MemoryView[] = "View.MemoryView";
static const char __pyx_k_allocate_buffer[] = "allocate_buffer";
static const char __pyx_k_dtype_is_object[] = "dtype_is_object";
static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_variants_ANN_AA[] = "variants/ANN_AA";
static const char __pyx_k_variants_FILTER[] = "variants/FILTER_";
static const char __pyx_k_variants_is_snp[] = "variants/is_snp";
static const char __pyx_k_variants_numalt[] = "variants/numalt";
static const char __pyx_k_ANN_AA_POS_FIELD[] = "ANN_AA_POS_FIELD";
static const char __pyx_k_ANN_ALLELE_FIELD[] = "ANN_ALLELE_FIELD";
static const char __pyx_k_ANN_HGVS_C_FIELD[] = "ANN_HGVS_C_FIELD";
static const char __pyx_k_ANN_HGVS_P_FIELD[] = "ANN_HGVS_P_FIELD";
static const char __pyx_k_VCFChunkIterator[] = "VCFChunkIterator";
static const char __pyx_k_missing_INFO_key[] = "missing INFO key";
static const char __pyx_k_variants_ANN_CDS[] = "variants/ANN_CDS";
static const char __pyx_k_vcf_state_labels[] = "vcf_state_labels";
static const char __pyx_k_ANN_CDS_POS_FIELD[] = "ANN_CDS_POS_FIELD";
static const char __pyx_k_ANN_GENE_ID_FIELD[] = "ANN_GENE_ID_FIELD";
static const char __pyx_k_VCFCallDataParser[] = "VCFCallDataParser";
static const char __pyx_k_VCFChromPosParser[] = "VCFChromPosParser";
static const char __pyx_k_VCFIDObjectParser[] = "VCFIDObjectParser";
static const char __pyx_k_VCFIDStringParser[] = "VCFIDStringParser";
static const char __pyx_k_VCFInfoFlagParser[] = "VCFInfoFlagParser";
static const char __pyx_k_VCFInfoInt8Parser[] = "VCFInfoInt8Parser";
static const char __pyx_k_VCFInfoParserBase[] = "VCFInfoParserBase";
static const char __pyx_k_VCFInfoSkipParser[] = "VCFInfoSkipParser";
static const char __pyx_k_default_ann_types[] = "default_ann_types";
static const char __pyx_k_pyx_unpickle_Enum[] = "__pyx_unpickle_Enum";
static const char __pyx_k_variants_ANN_Rank[] = "variants/ANN_Rank";
static const char __pyx_k_variants_ANN_cDNA[] = "variants/ANN_cDNA";
static const char __pyx_k_ANN_CDNA_POS_FIELD[] = "ANN_CDNA_POS_FIELD";
static const char __pyx_k_ANN_DISTANCE_FIELD[] = "ANN_DISTANCE_FIELD";
static const char __pyx_k_VCFAltObjectParser[] = "VCFAltObjectParser";
static const char __pyx_k_VCFAltStringParser[] = "VCFAltStringParser";
static const char __pyx_k_VCFFieldParserBase[] = "VCFFieldParserBase";
static const char __pyx_k_VCFInfoInt16Parser[] = "VCFInfoInt16Parser";
static const char __pyx_k_VCFInfoInt32Parser[] = "VCFInfoInt32Parser";
static const char __pyx_k_VCFInfoInt64Parser[] = "VCFInfoInt64Parser";
static const char __pyx_k_VCFInfoUInt8Parser[] = "VCFInfoUInt8Parser";
static const char __pyx_k_VCFRefObjectParser[] = "VCFRefObjectParser";
static const char __pyx_k_VCFRefStringParser[] = "VCFRefStringParser";
static const char __pyx_k_VCFSkipFieldParser[] = "VCFSkipFieldParser";
static const char __pyx_k_check_string_dtype[] = "check_string_dtype";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_strided_and_direct[] = "<strided and direct>";
static const char __pyx_k_ANN_AA_LENGTH_FIELD[] = "ANN_AA_LENGTH_FIELD";
static const char __pyx_k_ANN_GENE_NAME_FIELD[] = "ANN_GENE_NAME_FIELD";
static const char __pyx_k_VCFInfoObjectParser[] = "VCFInfoObjectParser";
static const char __pyx_k_VCFInfoStringParser[] = "VCFInfoStringParser";
static const char __pyx_k_VCFInfoUInt16Parser[] = "VCFInfoUInt16Parser";
static const char __pyx_k_VCFInfoUInt32Parser[] = "VCFInfoUInt32Parser";
static const char __pyx_k_VCFInfoUInt64Parser[] = "VCFInfoUInt64Parser";
static const char __pyx_k_bad_region_string_r[] = "bad region string: %r";
static const char __pyx_k_malloc_string_array[] = "_malloc_string_array";
static const char __pyx_k_normalize_ann_types[] = "_normalize_ann_types";
static const char __pyx_k_variants_ANN_AA_pos[] = "variants/ANN_AA_pos";
static const char __pyx_k_variants_ANN_Allele[] = "variants/ANN_Allele";
static const char __pyx_k_variants_ANN_HGVS_c[] = "variants/ANN_HGVS_c";
static const char __pyx_k_variants_ANN_HGVS_p[] = "variants/ANN_HGVS_p";
static const char __pyx_k_ANN_ANNOTATION_FIELD[] = "ANN_ANNOTATION_FIELD";
static const char __pyx_k_ANN_CDS_LENGTH_FIELD[] = "ANN_CDS_LENGTH_FIELD";
static const char __pyx_k_ANN_FEATURE_ID_FIELD[] = "ANN_FEATURE_ID_FIELD";
static const char __pyx_k_VCFInfoFloat32Parser[] = "VCFInfoFloat32Parser";
static const char __pyx_k_VCFInfoFloat64Parser[] = "VCFInfoFloat64Parser";
static const char __pyx_k_init_format_calldata[] = "_init_format_calldata";
static const char __pyx_k_malloc_integer_array[] = "_malloc_integer_array";
static const char __pyx_k_normalize_ann_fields[] = "_normalize_ann_fields";
static const char __pyx_k_strided_and_indirect[] = "<strided and indirect>";
static const char __pyx_k_variants_ANN_CDS_pos[] = "variants/ANN_CDS_pos";
static const char __pyx_k_variants_ANN_Gene_ID[] = "variants/ANN_Gene_ID";
static const char __pyx_k_ANN_CDNA_LENGTH_FIELD[] = "ANN_CDNA_LENGTH_FIELD";
static const char __pyx_k_CharVectorInputStream[] = "CharVectorInputStream";
static const char __pyx_k_VCFCallDataInt8Parser[] = "VCFCallDataInt8Parser";
static const char __pyx_k_VCFCallDataParserBase[] = "VCFCallDataParserBase";
static const char __pyx_k_VCFCallDataSkipParser[] = "VCFCallDataSkipParser";
static const char __pyx_k_VCFGenotypeInt8Parser[] = "VCFGenotypeInt8Parser";
static const char __pyx_k_contiguous_and_direct[] = "<contiguous and direct>";
static const char __pyx_k_variants_ANN_Distance[] = "variants/ANN_Distance";
static const char __pyx_k_variants_ANN_cDNA_pos[] = "variants/ANN_cDNA_pos";
static const char __pyx_k_ANN_FEATURE_TYPE_FIELD[] = "ANN_FEATURE_TYPE_FIELD";
static const char __pyx_k_MemoryView_of_r_object[] = "<MemoryView of %r object>";
static const char __pyx_k_VCFCallDataInt16Parser[] = "VCFCallDataInt16Parser";
static const char __pyx_k_VCFCallDataInt32Parser[] = "VCFCallDataInt32Parser";
static const char __pyx_k_VCFCallDataInt64Parser[] = "VCFCallDataInt64Parser";
static const char __pyx_k_VCFCallDataUInt8Parser[] = "VCFCallDataUInt8Parser";
static const char __pyx_k_VCFGenotypeInt16Parser[] = "VCFGenotypeInt16Parser";
static const char __pyx_k_VCFGenotypeInt32Parser[] = "VCFGenotypeInt32Parser";
static const char __pyx_k_VCFGenotypeInt64Parser[] = "VCFGenotypeInt64Parser";
static const char __pyx_k_VCFGenotypeUInt8Parser[] = "VCFGenotypeUInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFParser[] = "__pyx_unpickle_VCFParser";
static const char __pyx_k_variants_ANN_AA_length[] = "variants/ANN_AA_length";
static const char __pyx_k_variants_ANN_Gene_Name[] = "variants/ANN_Gene_Name";
static const char __pyx_k_MemoryView_of_r_at_0x_x[] = "<MemoryView of %r at 0x%x>";
static const char __pyx_k_VCFCallDataObjectParser[] = "VCFCallDataObjectParser";
static const char __pyx_k_VCFCallDataStringParser[] = "VCFCallDataStringParser";
static const char __pyx_k_VCFCallDataUInt16Parser[] = "VCFCallDataUInt16Parser";
static const char __pyx_k_VCFCallDataUInt32Parser[] = "VCFCallDataUInt32Parser";
static const char __pyx_k_VCFCallDataUInt64Parser[] = "VCFCallDataUInt64Parser";
static const char __pyx_k_VCFGenotypeACInt8Parser[] = "VCFGenotypeACInt8Parser";
static const char __pyx_k_VCFGenotypeUInt16Parser[] = "VCFGenotypeUInt16Parser";
static const char __pyx_k_VCFGenotypeUInt32Parser[] = "VCFGenotypeUInt32Parser";
static const char __pyx_k_VCFGenotypeUInt64Parser[] = "VCFGenotypeUInt64Parser";
static const char __pyx_k_contiguous_and_indirect[] = "<contiguous and indirect>";
static const char __pyx_k_unexpected_parser_state[] = "unexpected parser state";
static const char __pyx_k_variants_ANN_Annotation[] = "variants/ANN_Annotation";
static const char __pyx_k_variants_ANN_CDS_length[] = "variants/ANN_CDS_length";
static const char __pyx_k_variants_ANN_Feature_ID[] = "variants/ANN_Feature_ID";
static const char __pyx_k_Cannot_index_with_type_s[] = "Cannot index with type '%s'";
static const char __pyx_k_VCFCallDataFloat32Parser[] = "VCFCallDataFloat32Parser";
static const char __pyx_k_VCFCallDataFloat64Parser[] = "VCFCallDataFloat64Parser";
static const char __pyx_k_VCFGenotypeACInt16Parser[] = "VCFGenotypeACInt16Parser";
static const char __pyx_k_VCFGenotypeACInt32Parser[] = "VCFGenotypeACInt32Parser";
static const char __pyx_k_VCFGenotypeACInt64Parser[] = "VCFGenotypeACInt64Parser";
static const char __pyx_k_VCFGenotypeACUInt8Parser[] = "VCFGenotypeACUInt8Parser";
static const char __pyx_k_VCFSkipAllCallDataParser[] = "VCFSkipAllCallDataParser";
static const char __pyx_k_unexpected_EOL_character[] = "unexpected EOL character";
static const char __pyx_k_variants_ANN_cDNA_length[] = "variants/ANN_cDNA_length";
static const char __pyx_k_Invalid_shape_in_axis_d_d[] = "Invalid shape in axis %d: %d.";
static const char __pyx_k_VCFGenotypeACUInt16Parser[] = "VCFGenotypeACUInt16Parser";
static const char __pyx_k_VCFGenotypeACUInt32Parser[] = "VCFGenotypeACUInt32Parser";
static const char __pyx_k_VCFGenotypeACUInt64Parser[] = "VCFGenotypeACUInt64Parser";
static const char __pyx_k_variant_tools_io_vcf_read[] = "variant_tools.io_vcf_read";
static const char __pyx_k_variants_ANN_Feature_Type[] = "variants/ANN_Feature_Type";
static const char __pyx_k_normalize_ann_field_prefix[] = "_normalize_ann_field_prefix";
static const char __pyx_k_pyx_unpickle_VCFQualParser[] = "__pyx_unpickle_VCFQualParser";
static const char __pyx_k_ANN_ANNOTATION_IMPACT_FIELD[] = "ANN_ANNOTATION_IMPACT_FIELD";
static const char __pyx_k_error_parsing_integer_value[] = "error parsing integer value";
static const char __pyx_k_itemsize_0_for_cython_array[] = "itemsize <= 0 for cython.array";
static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous";
static const char __pyx_k_pyx_unpickle_ANNTransformer[] = "__pyx_unpickle_ANNTransformer";
static const char __pyx_k_ANN_TRANSCRIPT_BIOTYPE_FIELD[] = "ANN_TRANSCRIPT_BIOTYPE_FIELD";
static const char __pyx_k_pyx_unpickle_FileInputStream[] = "__pyx_unpickle_FileInputStream";
static const char __pyx_k_pyx_unpickle_InputStreamBase[] = "__pyx_unpickle_InputStreamBase";
static const char __pyx_k_pyx_unpickle_VCFChunkIterator[] = "__pyx_unpickle_VCFChunkIterator";
static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate array data.";
static const char __pyx_k_unexpected_fields_left_over_r[] = "unexpected fields left over: %r";
static const char __pyx_k_pyx_unpickle_VCFAltObjectParse[] = "__pyx_unpickle_VCFAltObjectParser";
static const char __pyx_k_pyx_unpickle_VCFAltStringParse[] = "__pyx_unpickle_VCFAltStringParser";
static const char __pyx_k_pyx_unpickle_VCFCallDataFloat3[] = "__pyx_unpickle_VCFCallDataFloat32Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataFloat6[] = "__pyx_unpickle_VCFCallDataFloat64Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataInt16P[] = "__pyx_unpickle_VCFCallDataInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataInt32P[] = "__pyx_unpickle_VCFCallDataInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataInt64P[] = "__pyx_unpickle_VCFCallDataInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataInt8Pa[] = "__pyx_unpickle_VCFCallDataInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataObject[] = "__pyx_unpickle_VCFCallDataObjectParser";
static const char __pyx_k_pyx_unpickle_VCFCallDataParser[] = "__pyx_unpickle_VCFCallDataParserBase";
static const char __pyx_k_pyx_unpickle_VCFCallDataSkipPa[] = "__pyx_unpickle_VCFCallDataSkipParser";
static const char __pyx_k_pyx_unpickle_VCFCallDataString[] = "__pyx_unpickle_VCFCallDataStringParser";
static const char __pyx_k_pyx_unpickle_VCFCallDataUInt16[] = "__pyx_unpickle_VCFCallDataUInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataUInt32[] = "__pyx_unpickle_VCFCallDataUInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataUInt64[] = "__pyx_unpickle_VCFCallDataUInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFCallDataUInt8P[] = "__pyx_unpickle_VCFCallDataUInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFChromPosParser[] = "__pyx_unpickle_VCFChromPosParser";
static const char __pyx_k_pyx_unpickle_VCFFieldParserBas[] = "__pyx_unpickle_VCFFieldParserBase";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACInt1[] = "__pyx_unpickle_VCFGenotypeACInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACInt3[] = "__pyx_unpickle_VCFGenotypeACInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACInt6[] = "__pyx_unpickle_VCFGenotypeACInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACInt8[] = "__pyx_unpickle_VCFGenotypeACInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACUInt[] = "__pyx_unpickle_VCFGenotypeACUInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeInt16P[] = "__pyx_unpickle_VCFGenotypeInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeInt32P[] = "__pyx_unpickle_VCFGenotypeInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeInt64P[] = "__pyx_unpickle_VCFGenotypeInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeInt8Pa[] = "__pyx_unpickle_VCFGenotypeInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeUInt16[] = "__pyx_unpickle_VCFGenotypeUInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeUInt32[] = "__pyx_unpickle_VCFGenotypeUInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeUInt64[] = "__pyx_unpickle_VCFGenotypeUInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeUInt8P[] = "__pyx_unpickle_VCFGenotypeUInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFIDObjectParser[] = "__pyx_unpickle_VCFIDObjectParser";
static const char __pyx_k_pyx_unpickle_VCFIDStringParser[] = "__pyx_unpickle_VCFIDStringParser";
static const char __pyx_k_pyx_unpickle_VCFInfoFlagParser[] = "__pyx_unpickle_VCFInfoFlagParser";
static const char __pyx_k_pyx_unpickle_VCFInfoFloat32Par[] = "__pyx_unpickle_VCFInfoFloat32Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoFloat64Par[] = "__pyx_unpickle_VCFInfoFloat64Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoInt16Parse[] = "__pyx_unpickle_VCFInfoInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoInt32Parse[] = "__pyx_unpickle_VCFInfoInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoInt64Parse[] = "__pyx_unpickle_VCFInfoInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoInt8Parser[] = "__pyx_unpickle_VCFInfoInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoObjectPars[] = "__pyx_unpickle_VCFInfoObjectParser";
static const char __pyx_k_pyx_unpickle_VCFInfoParserBase[] = "__pyx_unpickle_VCFInfoParserBase";
static const char __pyx_k_pyx_unpickle_VCFInfoSkipParser[] = "__pyx_unpickle_VCFInfoSkipParser";
static const char __pyx_k_pyx_unpickle_VCFInfoStringPars[] = "__pyx_unpickle_VCFInfoStringParser";
static const char __pyx_k_pyx_unpickle_VCFInfoUInt16Pars[] = "__pyx_unpickle_VCFInfoUInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoUInt32Pars[] = "__pyx_unpickle_VCFInfoUInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoUInt64Pars[] = "__pyx_unpickle_VCFInfoUInt64Parser";
static const char __pyx_k_pyx_unpickle_VCFInfoUInt8Parse[] = "__pyx_unpickle_VCFInfoUInt8Parser";
static const char __pyx_k_pyx_unpickle_VCFRefObjectParse[] = "__pyx_unpickle_VCFRefObjectParser";
static const char __pyx_k_pyx_unpickle_VCFRefStringParse[] = "__pyx_unpickle_VCFRefStringParser";
static const char __pyx_k_pyx_unpickle_VCFSkipAllCallDat[] = "__pyx_unpickle_VCFSkipAllCallDataParser";
static const char __pyx_k_pyx_unpickle_VCFSkipFieldParse[] = "__pyx_unpickle_VCFSkipFieldParser";
static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
static const char __pyx_k_variants_ANN_Annotation_Impact[] = "variants/ANN_Annotation_Impact";
static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
static const char __pyx_k_only_float32_supported_for_QUAL[] = "only float32 supported for QUAL field, ignoring requested type: %r";
static const char __pyx_k_options_for_profiling_cython_pr[] = "\n# options for profiling...\n# cython: profile=True\n# cython: binding=True\n# cython: linetrace=True\n# distutils: define_macros=CYTHON_TRACE=1\n# distutils: define_macros=CYTHON_TRACE_NOGIL=1\n";
static const char __pyx_k_type_r_not_supported_for_FORMAT[] = "type %r not supported for FORMAT field %r, field will be skipped";
static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)";
static const char __pyx_k_variants_ANN_Transcript_BioType[] = "variants/ANN_Transcript_BioType";
static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
static const char __pyx_k_Cannot_assign_to_read_only_memor[] = "Cannot assign to read-only memoryview";
static const char __pyx_k_Cannot_create_writable_memory_vi[] = "Cannot create writable memory view from read-only memoryview";
static const char __pyx_k_Empty_shape_tuple_for_cython_arr[] = "Empty shape tuple for cython.array";
static const char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd";
static const char __pyx_k_Incompatible_checksums_s_vs_0x03[] = "Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x1a[] = "Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x3c[] = "Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x45[] = "Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x4a[] = "Incompatible checksums (%s vs 0x4a8a08f = (c))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x6d[] = "Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x71[] = "Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x78[] = "Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x7e[] = "Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x8c[] = "Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))";
static const char __pyx_k_Incompatible_checksums_s_vs_0xb0[] = "Incompatible checksums (%s vs 0xb068931 = (name))";
static const char __pyx_k_Incompatible_checksums_s_vs_0xb6[] = "Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0xe2[] = "Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))";
static const char __pyx_k_Incompatible_checksums_s_vs_0xf8[] = "Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))";
static const char __pyx_k_Indirect_dimensions_not_supporte[] = "Indirect dimensions not supported";
static const char __pyx_k_Invalid_mode_expected_c_or_fortr[] = "Invalid mode, expected 'c' or 'fortran', got %s";
static const char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported";
static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] = "Out of bounds on buffer access (axis %d)";
static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object";
static const char __pyx_k_cannot_have_non_bool_dtype_for_f[] = "cannot have non-bool dtype for field with number 0, ignoring type %r";
static const char __pyx_k_error_parsing_floating_point_val[] = "error parsing floating point value";
static const char __pyx_k_expected_string_S_or_object_O_dt[] = "expected string ('S') or object ('O') dtype, found: %r";
static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension %d (got %d and %d)";
static const char __pyx_k_invalid_ANN_field_r_will_be_igno[] = "invalid ANN field %r, will be ignored";
static const char __pyx_k_more_samples_than_given_in_heade[] = "more samples than given in header";
static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous";
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
static const char __pyx_k_not_all_characters_parsed_for_fl[] = "not all characters parsed for floating point value";
static const char __pyx_k_not_all_characters_parsed_for_in[] = "not all characters parsed for integer value";
static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
static const char __pyx_k_only_int32_supported_for_POS_fie[] = "only int32 supported for POS field, ignoring requested type: %r";
static const char __pyx_k_only_signed_integer_dtype_suppor[] = "only signed integer dtype supported for field %r";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACUInt_2[] = "__pyx_unpickle_VCFGenotypeACUInt16Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACUInt_3[] = "__pyx_unpickle_VCFGenotypeACUInt32Parser";
static const char __pyx_k_pyx_unpickle_VCFGenotypeACUInt_4[] = "__pyx_unpickle_VCFGenotypeACUInt64Parser";
static const char __pyx_k_src_variant_tools_io_vcf_read_py[] = "src/variant_tools/io_vcf_read.pyx";
static const char __pyx_k_type_r_not_supported_for_genotyp[] = "type %r not supported for genotype field %r, field will be skipped";
static const char __pyx_k_type_s_not_supported_for_INFO_fi[] = "type %s not supported for INFO field %r, field will be skipped";
static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
static const char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short.";
static const char __pyx_k_Incompatible_checksums_s_vs_0x03_2[] = "Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))";
static const char __pyx_k_type_r_not_supported_for_genotyp_2[] = "type %r not supported for genotype_ac field %r, field will be skipped";
static PyObject *__pyx_n_b_ALT;
static PyObject *__pyx_n_s_ALT;
static PyObject *__pyx_n_s_ALT_FIELD;
static PyObject *__pyx_n_s_ANN;
static PyObject *__pyx_n_s_ANNTransformer;
static PyObject *__pyx_n_s_ANN_AA_FIELD;
static PyObject *__pyx_n_s_ANN_AA_LENGTH_FIELD;
static PyObject *__pyx_n_s_ANN_AA_POS_FIELD;
static PyObject *__pyx_n_s_ANN_ALLELE_FIELD;
static PyObject *__pyx_n_s_ANN_ANNOTATION_FIELD;
static PyObject *__pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD;
static PyObject *__pyx_n_s_ANN_CDNA_FIELD;
static PyObject *__pyx_n_s_ANN_CDNA_LENGTH_FIELD;
static PyObject *__pyx_n_s_ANN_CDNA_POS_FIELD;
static PyObject *__pyx_n_s_ANN_CDS_FIELD;
static PyObject *__pyx_n_s_ANN_CDS_LENGTH_FIELD;
static PyObject *__pyx_n_s_ANN_CDS_POS_FIELD;
static PyObject *__pyx_n_s_ANN_DISTANCE_FIELD;
static PyObject *__pyx_n_s_ANN_FEATURE_ID_FIELD;
static PyObject *__pyx_n_s_ANN_FEATURE_TYPE_FIELD;
static PyObject *__pyx_n_s_ANN_FIELD;
static PyObject *__pyx_n_s_ANN_FIELDS;
static PyObject *__pyx_n_s_ANN_GENE_ID_FIELD;
static PyObject *__pyx_n_s_ANN_GENE_NAME_FIELD;
static PyObject *__pyx_n_s_ANN_HGVS_C_FIELD;
static PyObject *__pyx_n_s_ANN_HGVS_P_FIELD;
static PyObject *__pyx_n_s_ANN_RANK_FIELD;
static PyObject *__pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD;
static PyObject *__pyx_n_s_ASCII;
static PyObject *__pyx_kp_s_Buffer_view_does_not_expose_stri;
static PyObject *__pyx_n_s_C;
static PyObject *__pyx_n_s_CALLDATA;
static PyObject *__pyx_n_b_CHROM;
static PyObject *__pyx_n_s_CHROM;
static PyObject *__pyx_n_s_CHROM_FIELD;
static PyObject *__pyx_kp_s_Can_only_create_a_buffer_that_is;
static PyObject *__pyx_kp_s_Cannot_assign_to_read_only_memor;
static PyObject *__pyx_kp_s_Cannot_create_writable_memory_vi;
static PyObject *__pyx_kp_s_Cannot_index_with_type_s;
static PyObject *__pyx_n_s_CharVectorInputStream;
static PyObject *__pyx_n_s_EOF;
static PyObject *__pyx_n_s_EOL;
static PyObject *__pyx_n_s_Ellipsis;
static PyObject *__pyx_kp_s_Empty_shape_tuple_for_cython_arr;
static PyObject *__pyx_n_b_FILTER;
static PyObject *__pyx_n_s_FILTER;
static PyObject *__pyx_n_b_FORMAT;
static PyObject *__pyx_n_s_FORMAT;
static PyObject *__pyx_n_s_FileInputStream;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2;
static PyObject *__pyx_n_b_GT;
static PyObject *__pyx_n_b_ID;
static PyObject *__pyx_n_s_ID;
static PyObject *__pyx_n_s_ID_FIELD;
static PyObject *__pyx_n_s_II16;
static PyObject *__pyx_n_s_II32;
static PyObject *__pyx_n_s_II64;
static PyObject *__pyx_n_s_II8;
static PyObject *__pyx_n_b_INFO;
static PyObject *__pyx_n_s_INFO;
static PyObject *__pyx_n_s_IU16;
static PyObject *__pyx_n_s_IU32;
static PyObject *__pyx_n_s_IU64;
static PyObject *__pyx_n_s_IU8;
static PyObject *__pyx_n_s_ImportError;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x03;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x03_2;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x1a;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x3c;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x45;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x4a;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x6d;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x71;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x78;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x7e;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x8c;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xb0;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xb6;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xe2;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xf8;
static PyObject *__pyx_n_s_IndexError;
static PyObject *__pyx_kp_s_Indirect_dimensions_not_supporte;
static PyObject *__pyx_n_s_InputStreamBase;
static PyObject *__pyx_kp_s_Invalid_mode_expected_c_or_fortr;
static PyObject *__pyx_kp_s_Invalid_shape_in_axis_d_d;
static PyObject *__pyx_n_s_MemoryError;
static PyObject *__pyx_kp_s_MemoryView_of_r_at_0x_x;
static PyObject *__pyx_kp_s_MemoryView_of_r_object;
static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor;
static PyObject *__pyx_n_b_O;
static PyObject *__pyx_n_s_O;
static PyObject *__pyx_kp_s_Out_of_bounds_on_buffer_access_a;
static PyObject *__pyx_n_s_POS;
static PyObject *__pyx_n_s_POS_FIELD;
static PyObject *__pyx_n_s_PY2;
static PyObject *__pyx_n_s_PickleError;
static PyObject *__pyx_n_b_QUAL;
static PyObject *__pyx_n_s_QUAL;
static PyObject *__pyx_n_s_QUAL_FIELD;
static PyObject *__pyx_n_b_REF;
static PyObject *__pyx_n_s_REF;
static PyObject *__pyx_n_s_REF_FIELD;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_n_s_S;
static PyObject *__pyx_n_s_StopIteration;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_kp_s_Unable_to_convert_item_to_object;
static PyObject *__pyx_n_s_VCFAltObjectParser;
static PyObject *__pyx_n_s_VCFAltStringParser;
static PyObject *__pyx_n_s_VCFCallDataFloat32Parser;
static PyObject *__pyx_n_s_VCFCallDataFloat64Parser;
static PyObject *__pyx_n_s_VCFCallDataInt16Parser;
static PyObject *__pyx_n_s_VCFCallDataInt32Parser;
static PyObject *__pyx_n_s_VCFCallDataInt64Parser;
static PyObject *__pyx_n_s_VCFCallDataInt8Parser;
static PyObject *__pyx_n_s_VCFCallDataObjectParser;
static PyObject *__pyx_n_s_VCFCallDataParser;
static PyObject *__pyx_n_s_VCFCallDataParserBase;
static PyObject *__pyx_n_s_VCFCallDataSkipParser;
static PyObject *__pyx_n_s_VCFCallDataStringParser;
static PyObject *__pyx_n_s_VCFCallDataUInt16Parser;
static PyObject *__pyx_n_s_VCFCallDataUInt32Parser;
static PyObject *__pyx_n_s_VCFCallDataUInt64Parser;
static PyObject *__pyx_n_s_VCFCallDataUInt8Parser;
static PyObject *__pyx_n_s_VCFChromPosParser;
static PyObject *__pyx_n_s_VCFChunkIterator;
static PyObject *__pyx_n_s_VCFContext;
static PyObject *__pyx_n_s_VCFFieldParserBase;
static PyObject *__pyx_n_s_VCFFilterParser;
static PyObject *__pyx_n_s_VCFFormatParser;
static PyObject *__pyx_n_s_VCFGenotypeACInt16Parser;
static PyObject *__pyx_n_s_VCFGenotypeACInt32Parser;
static PyObject *__pyx_n_s_VCFGenotypeACInt64Parser;
static PyObject *__pyx_n_s_VCFGenotypeACInt8Parser;
static PyObject *__pyx_n_s_VCFGenotypeACUInt16Parser;
static PyObject *__pyx_n_s_VCFGenotypeACUInt32Parser;
static PyObject *__pyx_n_s_VCFGenotypeACUInt64Parser;
static PyObject *__pyx_n_s_VCFGenotypeACUInt8Parser;
static PyObject *__pyx_n_s_VCFGenotypeInt16Parser;
static PyObject *__pyx_n_s_VCFGenotypeInt32Parser;
static PyObject *__pyx_n_s_VCFGenotypeInt64Parser;
static PyObject *__pyx_n_s_VCFGenotypeInt8Parser;
static PyObject *__pyx_n_s_VCFGenotypeUInt16Parser;
static PyObject *__pyx_n_s_VCFGenotypeUInt32Parser;
static PyObject *__pyx_n_s_VCFGenotypeUInt64Parser;
static PyObject *__pyx_n_s_VCFGenotypeUInt8Parser;
static PyObject *__pyx_n_s_VCFIDObjectParser;
static PyObject *__pyx_n_s_VCFIDStringParser;
static PyObject *__pyx_n_s_VCFInfoFlagParser;
static PyObject *__pyx_n_s_VCFInfoFloat32Parser;
static PyObject *__pyx_n_s_VCFInfoFloat64Parser;
static PyObject *__pyx_n_s_VCFInfoInt16Parser;
static PyObject *__pyx_n_s_VCFInfoInt32Parser;
static PyObject *__pyx_n_s_VCFInfoInt64Parser;
static PyObject *__pyx_n_s_VCFInfoInt8Parser;
static PyObject *__pyx_n_s_VCFInfoObjectParser;
static PyObject *__pyx_n_s_VCFInfoParser;
static PyObject *__pyx_n_s_VCFInfoParserBase;
static PyObject *__pyx_n_s_VCFInfoSkipParser;
static PyObject *__pyx_n_s_VCFInfoStringParser;
static PyObject *__pyx_n_s_VCFInfoUInt16Parser;
static PyObject *__pyx_n_s_VCFInfoUInt32Parser;
static PyObject *__pyx_n_s_VCFInfoUInt64Parser;
static PyObject *__pyx_n_s_VCFInfoUInt8Parser;
static PyObject *__pyx_n_s_VCFParser;
static PyObject *__pyx_n_s_VCFQualParser;
static PyObject *__pyx_n_s_VCFRefObjectParser;
static PyObject *__pyx_n_s_VCFRefStringParser;
static PyObject *__pyx_n_s_VCFSkipAllCallDataParser;
static PyObject *__pyx_n_s_VCFSkipFieldParser;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_View_MemoryView;
static PyObject *__pyx_kp_s__13;
static PyObject *__pyx_kp_s__3;
static PyObject *__pyx_kp_s__32;
static PyObject *__pyx_kp_b__6;
static PyObject *__pyx_kp_s__6;
static PyObject *__pyx_kp_s__7;
static PyObject *__pyx_kp_s__8;
static PyObject *__pyx_n_s_allocate_buffer;
static PyObject *__pyx_n_s_ascii;
static PyObject *__pyx_n_s_axis;
static PyObject *__pyx_kp_s_bad_region_string_r;
static PyObject *__pyx_n_s_base;
static PyObject *__pyx_n_s_bool;
static PyObject *__pyx_n_s_buffer_size;
static PyObject *__pyx_n_s_c;
static PyObject *__pyx_n_u_c;
static PyObject *__pyx_n_s_calldata;
static PyObject *__pyx_kp_s_calldata_2;
static PyObject *__pyx_kp_s_cannot_have_non_bool_dtype_for_f;
static PyObject *__pyx_n_s_capacity;
static PyObject *__pyx_n_s_check_samples;
static PyObject *__pyx_n_s_check_string_dtype;
static PyObject *__pyx_n_s_chunk_length;
static PyObject *__pyx_n_s_class;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_close;
static PyObject *__pyx_kp_s_contiguous_and_direct;
static PyObject *__pyx_kp_s_contiguous_and_indirect;
static PyObject *__pyx_n_s_count_nonzero;
static PyObject *__pyx_n_s_default_ann_types;
static PyObject *__pyx_n_s_dict;
static PyObject *__pyx_n_s_dtype;
static PyObject *__pyx_n_s_dtype_is_object;
static PyObject *__pyx_n_s_empty;
static PyObject *__pyx_kp_s_empty_CHROM;
static PyObject *__pyx_kp_s_empty_POS;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_enumerate;
static PyObject *__pyx_n_s_error;
static PyObject *__pyx_kp_s_error_parsing_floating_point_val;
static PyObject *__pyx_kp_s_error_parsing_integer_value;
static PyObject *__pyx_kp_s_expected_string_S_or_object_O_dt;
static PyObject *__pyx_n_s_f;
static PyObject *__pyx_n_s_ff;
static PyObject *__pyx_n_s_field;
static PyObject *__pyx_kp_s_field_s;
static PyObject *__pyx_n_s_fields;
static PyObject *__pyx_n_s_fileobj;
static PyObject *__pyx_n_s_fill;
static PyObject *__pyx_n_s_fills;
static PyObject *__pyx_n_s_filter_keys;
static PyObject *__pyx_n_s_flags;
static PyObject *__pyx_n_s_float32;
static PyObject *__pyx_n_s_float64;
static PyObject *__pyx_n_s_format;
static PyObject *__pyx_n_s_format_keys;
static PyObject *__pyx_n_s_fortran;
static PyObject *__pyx_n_u_fortran;
static PyObject *__pyx_kp_s_genotype;
static PyObject *__pyx_kp_s_genotype_ac;
static PyObject *__pyx_n_s_get;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_kp_s_got_differing_extents_in_dimensi;
static PyObject *__pyx_n_s_headers;
static PyObject *__pyx_n_s_i;
static PyObject *__pyx_n_s_id;
static PyObject *__pyx_n_s_iinfo;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_info_keys;
static PyObject *__pyx_n_s_init;
static PyObject *__pyx_n_s_init_alt;
static PyObject *__pyx_n_s_init_chrom_pos;
static PyObject *__pyx_n_s_init_filter;
static PyObject *__pyx_n_s_init_format_calldata;
static PyObject *__pyx_n_s_init_id;
static PyObject *__pyx_n_s_init_info;
static PyObject *__pyx_n_s_init_qual;
static PyObject *__pyx_n_s_init_ref;
static PyObject *__pyx_n_s_init_region;
static PyObject *__pyx_n_s_int16;
static PyObject *__pyx_n_s_int32;
static PyObject *__pyx_n_s_int64;
static PyObject *__pyx_n_s_int8;
static PyObject *__pyx_kp_s_invalid_ANN_field_r_will_be_igno;
static PyObject *__pyx_n_s_items;
static PyObject *__pyx_n_s_itemsize;
static PyObject *__pyx_kp_s_itemsize_0_for_cython_array;
static PyObject *__pyx_n_s_keep_original;
static PyObject *__pyx_n_s_key;
static PyObject *__pyx_n_s_keys;
static PyObject *__pyx_n_s_kind;
static PyObject *__pyx_n_s_loc_samples;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_malloc_integer_array;
static PyObject *__pyx_n_s_malloc_string_array;
static PyObject *__pyx_n_s_max;
static PyObject *__pyx_n_s_memview;
static PyObject *__pyx_kp_s_missing_INFO_key;
static PyObject *__pyx_n_s_mode;
static PyObject *__pyx_kp_s_more_samples_than_given_in_heade;
static PyObject *__pyx_n_s_n_samples;
static PyObject *__pyx_n_s_n_samples_out;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_n_s_nan;
static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous;
static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou;
static PyObject *__pyx_n_s_ndim;
static PyObject *__pyx_n_s_new;
static PyObject *__pyx_n_s_newaxis;
static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
static PyObject *__pyx_n_s_normalize_ann_field_prefix;
static PyObject *__pyx_n_s_normalize_ann_fields;
static PyObject *__pyx_n_s_normalize_ann_types;
static PyObject *__pyx_n_s_normed_fields;
static PyObject *__pyx_n_s_normed_types;
static PyObject *__pyx_kp_s_not_all_characters_parsed_for_fl;
static PyObject *__pyx_kp_s_not_all_characters_parsed_for_in;
static PyObject *__pyx_n_s_np;
static PyObject *__pyx_n_s_number;
static PyObject *__pyx_n_s_numbers;
static PyObject *__pyx_n_s_numpy;
static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
static PyObject *__pyx_n_s_obj;
static PyObject *__pyx_n_s_object;
static PyObject *__pyx_n_s_ones;
static PyObject *__pyx_kp_s_only_float32_supported_for_QUAL;
static PyObject *__pyx_kp_s_only_int32_supported_for_POS_fie;
static PyObject *__pyx_kp_s_only_signed_integer_dtype_suppor;
static PyObject *__pyx_n_s_order;
static PyObject *__pyx_n_s_pack;
static PyObject *__pyx_n_s_pickle;
static PyObject *__pyx_n_s_pyx_PickleError;
static PyObject *__pyx_n_s_pyx_checksum;
static PyObject *__pyx_n_s_pyx_getbuffer;
static PyObject *__pyx_n_s_pyx_result;
static PyObject *__pyx_n_s_pyx_state;
static PyObject *__pyx_n_s_pyx_type;
static PyObject *__pyx_n_s_pyx_unpickle_ANNTransformer;
static PyObject *__pyx_n_s_pyx_unpickle_Enum;
static PyObject *__pyx_n_s_pyx_unpickle_FileInputStream;
static PyObject *__pyx_n_s_pyx_unpickle_InputStreamBase;
static PyObject *__pyx_n_s_pyx_unpickle_VCFAltObjectParse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFAltStringParse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataFloat3;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataFloat6;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataInt16P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataInt32P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataInt64P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataInt8Pa;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataObject;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataSkipPa;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataString;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataUInt16;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataUInt32;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataUInt64;
static PyObject *__pyx_n_s_pyx_unpickle_VCFCallDataUInt8P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFChromPosParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFChunkIterator;
static PyObject *__pyx_n_s_pyx_unpickle_VCFFieldParserBas;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACInt1;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACInt3;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACInt6;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACInt8;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_2;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_3;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_4;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeInt16P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeInt32P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeInt64P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeInt8Pa;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeUInt16;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeUInt32;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeUInt64;
static PyObject *__pyx_n_s_pyx_unpickle_VCFGenotypeUInt8P;
static PyObject *__pyx_n_s_pyx_unpickle_VCFIDObjectParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFIDStringParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoFlagParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoFloat32Par;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoFloat64Par;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoInt16Parse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoInt32Parse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoInt64Parse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoInt8Parser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoObjectPars;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoParserBase;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoSkipParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoStringPars;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoUInt16Pars;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoUInt32Pars;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoUInt64Pars;
static PyObject *__pyx_n_s_pyx_unpickle_VCFInfoUInt8Parse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFQualParser;
static PyObject *__pyx_n_s_pyx_unpickle_VCFRefObjectParse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFRefStringParse;
static PyObject *__pyx_n_s_pyx_unpickle_VCFSkipAllCallDat;
static PyObject *__pyx_n_s_pyx_unpickle_VCFSkipFieldParse;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_readinto;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_reduce_cython;
static PyObject *__pyx_n_s_reduce_ex;
static PyObject *__pyx_n_s_region;
static PyObject *__pyx_n_s_region_begin;
static PyObject *__pyx_n_s_region_chrom;
static PyObject *__pyx_n_s_region_end;
static PyObject *__pyx_n_s_remove;
static PyObject *__pyx_n_s_reshape;
static PyObject *__pyx_kp_s_s_s;
static PyObject *__pyx_kp_s_sample_s_s_s_s;
static PyObject *__pyx_n_s_samples;
static PyObject *__pyx_n_s_setdefault;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_shape;
static PyObject *__pyx_n_s_size;
static PyObject *__pyx_n_s_split;
static PyObject *__pyx_n_s_squeeze;
static PyObject *__pyx_kp_s_src_variant_tools_io_vcf_read_py;
static PyObject *__pyx_n_s_start;
static PyObject *__pyx_n_s_startswith;
static PyObject *__pyx_n_s_step;
static PyObject *__pyx_n_s_stop;
static PyObject *__pyx_n_s_store;
static PyObject *__pyx_n_s_store_alt;
static PyObject *__pyx_n_s_store_chrom;
static PyObject *__pyx_n_s_store_is_snp;
static PyObject *__pyx_n_s_store_numalt;
static PyObject *__pyx_n_s_store_pos;
static PyObject *__pyx_n_s_store_svlen;
static PyObject *__pyx_n_s_stream;
static PyObject *__pyx_kp_s_strided_and_direct;
static PyObject *__pyx_kp_s_strided_and_direct_or_indirect;
static PyObject *__pyx_kp_s_strided_and_indirect;
static PyObject *__pyx_kp_s_stringsource;
static PyObject *__pyx_n_s_struct;
static PyObject *__pyx_n_s_super;
static PyObject *__pyx_n_s_sys;
static PyObject *__pyx_n_s_t;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_kp_s_type_r_not_supported_for_FORMAT;
static PyObject *__pyx_kp_s_type_r_not_supported_for_genotyp;
static PyObject *__pyx_kp_s_type_r_not_supported_for_genotyp_2;
static PyObject *__pyx_kp_s_type_s_not_supported_for_INFO_fi;
static PyObject *__pyx_n_s_types;
static PyObject *__pyx_n_s_u1;
static PyObject *__pyx_n_s_uint16;
static PyObject *__pyx_n_s_uint32;
static PyObject *__pyx_n_s_uint64;
static PyObject *__pyx_n_s_uint8;
static PyObject *__pyx_kp_s_unable_to_allocate_array_data;
static PyObject *__pyx_kp_s_unable_to_allocate_shape_and_str;
static PyObject *__pyx_kp_s_unexpected_EOL_character;
static PyObject *__pyx_kp_s_unexpected_fields_left_over_r;
static PyObject *__pyx_kp_s_unexpected_parser_state;
static PyObject *__pyx_n_s_unknown;
static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd;
static PyObject *__pyx_n_s_unpack;
static PyObject *__pyx_n_s_update;
static PyObject *__pyx_kp_s_variant_s;
static PyObject *__pyx_n_s_variant_tools_io_vcf_read;
static PyObject *__pyx_n_s_variants;
static PyObject *__pyx_kp_s_variants_2;
static PyObject *__pyx_kp_s_variants_ALT;
static PyObject *__pyx_kp_s_variants_ANN;
static PyObject *__pyx_kp_s_variants_ANN_2;
static PyObject *__pyx_kp_s_variants_ANN_AA;
static PyObject *__pyx_kp_s_variants_ANN_AA_length;
static PyObject *__pyx_kp_s_variants_ANN_AA_pos;
static PyObject *__pyx_kp_s_variants_ANN_Allele;
static PyObject *__pyx_kp_s_variants_ANN_Annotation;
static PyObject *__pyx_kp_s_variants_ANN_Annotation_Impact;
static PyObject *__pyx_kp_s_variants_ANN_CDS;
static PyObject *__pyx_kp_s_variants_ANN_CDS_length;
static PyObject *__pyx_kp_s_variants_ANN_CDS_pos;
static PyObject *__pyx_kp_s_variants_ANN_Distance;
static PyObject *__pyx_kp_s_variants_ANN_Feature_ID;
static PyObject *__pyx_kp_s_variants_ANN_Feature_Type;
static PyObject *__pyx_kp_s_variants_ANN_Gene_ID;
static PyObject *__pyx_kp_s_variants_ANN_Gene_Name;
static PyObject *__pyx_kp_s_variants_ANN_HGVS_c;
static PyObject *__pyx_kp_s_variants_ANN_HGVS_p;
static PyObject *__pyx_kp_s_variants_ANN_Rank;
static PyObject *__pyx_kp_s_variants_ANN_Transcript_BioType;
static PyObject *__pyx_kp_s_variants_ANN_cDNA;
static PyObject *__pyx_kp_s_variants_ANN_cDNA_length;
static PyObject *__pyx_kp_s_variants_ANN_cDNA_pos;
static PyObject *__pyx_kp_s_variants_CHROM;
static PyObject *__pyx_kp_s_variants_FILTER;
static PyObject *__pyx_kp_s_variants_ID;
static PyObject *__pyx_kp_s_variants_POS;
static PyObject *__pyx_kp_s_variants_QUAL;
static PyObject *__pyx_kp_s_variants_REF;
static PyObject *__pyx_kp_s_variants_is_snp;
static PyObject *__pyx_kp_s_variants_numalt;
static PyObject *__pyx_kp_s_variants_svlen;
static PyObject *__pyx_n_s_vcf_state_labels;
static PyObject *__pyx_n_s_version_info;
static PyObject *__pyx_n_s_view;
static PyObject *__pyx_n_s_warn;
static PyObject *__pyx_n_s_warnings;
static PyObject *__pyx_n_s_zeros;
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15InputStreamBase___reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15InputStreamBase_2__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, PyObject *__pyx_v_fileobj, PyObject *__pyx_v_buffer_size, PyObject *__pyx_v_close); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_2__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_4readline(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_6__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_8__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self, Py_ssize_t __pyx_v_capacity); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_2__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self, PyObject *__pyx_v_headers, PyObject *__pyx_v_fields); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_2__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_check_samples(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_loc_samples, PyObject *__pyx_v_headers); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_headers, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_fills, PyObject *__pyx_v_region, PyObject *__pyx_v_loc_samples); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_2__iter__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_4__next__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_6__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_8__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_loc_samples, PyObject *__pyx_v_fills, PyObject *__pyx_v_region); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_2_init_region(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_region); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_4_init_chrom_pos(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_6_init_id(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_8_init_ref(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_10_init_alt(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_12_init_qual(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_fills); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_14_init_filter(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_16_init_info(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_fills); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_18_init_format_calldata(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_fills); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_20__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_22__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_fill, PyObject *__pyx_v_chunk_length); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_2check_string_dtype(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dtype); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_store_chrom, PyObject *__pyx_v_store_pos, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_region_chrom, PyObject *__pyx_v_region_begin, PyObject *__pyx_v_region_end); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_chunk_length); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk_length); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store_alt, PyObject *__pyx_v_store_numalt, PyObject *__pyx_v_store_svlen, PyObject *__pyx_v_store_is_snp); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, PyObject *__pyx_v_number, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store_alt, PyObject *__pyx_v_store_numalt, PyObject *__pyx_v_store_svlen, PyObject *__pyx_v_store_is_snp); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_fill); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, PyObject *__pyx_v_filter_keys, CYTHON_UNUSED PyObject *__pyx_v_chunk_length); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, PyObject *__pyx_v_filter_keys, PyObject *__pyx_v_chunk_length); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, PyObject *__pyx_v_info_keys, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_fills); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_info_keys, CYTHON_UNUSED PyObject *__pyx_v_types, CYTHON_UNUSED PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_fills); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_fill, PyObject *__pyx_v_chunk_length); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, PyObject *__pyx_v_format_keys); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_format_keys); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser___reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_2__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, PyObject *__pyx_v_format_keys, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_loc_samples, PyObject *__pyx_v_fills); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_format_keys, CYTHON_UNUSED PyObject *__pyx_v_types, CYTHON_UNUSED PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, CYTHON_UNUSED PyObject *__pyx_v_loc_samples, CYTHON_UNUSED PyObject *__pyx_v_fills); /* proto */
static void __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_fill, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_n_samples_out); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, PyObject *__pyx_v_key, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_4_normalize_ann_field_prefix(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_f); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_6_normalize_ann_fields(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fields); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_8_normalize_ann_types(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types); /* proto */
static int __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_keep_original); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_2transform_fields(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_fields); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_4_malloc_string_array(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_field, PyObject *__pyx_v_shape); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_6_malloc_integer_array(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_field, PyObject *__pyx_v_shape); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_8transform_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_chunk); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_10__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_12__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_10__pyx_unpickle_InputStreamBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_12__pyx_unpickle_FileInputStream(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14__pyx_unpickle_VCFChunkIterator(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16__pyx_unpickle_VCFParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18__pyx_unpickle_VCFFieldParserBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20__pyx_unpickle_VCFSkipFieldParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22__pyx_unpickle_VCFChromPosParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24__pyx_unpickle_VCFIDStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_26__pyx_unpickle_VCFIDObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_28__pyx_unpickle_VCFRefStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_30__pyx_unpickle_VCFRefObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_32__pyx_unpickle_VCFAltStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_34__pyx_unpickle_VCFAltObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_36__pyx_unpickle_VCFQualParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_38__pyx_unpickle_VCFInfoParserBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_40__pyx_unpickle_VCFInfoInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_42__pyx_unpickle_VCFInfoInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_44__pyx_unpickle_VCFInfoInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_46__pyx_unpickle_VCFInfoInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_48__pyx_unpickle_VCFInfoUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_50__pyx_unpickle_VCFInfoUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_52__pyx_unpickle_VCFInfoUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_54__pyx_unpickle_VCFInfoUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_56__pyx_unpickle_VCFInfoFloat32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_58__pyx_unpickle_VCFInfoFloat64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_60__pyx_unpickle_VCFInfoFlagParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_62__pyx_unpickle_VCFInfoStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_64__pyx_unpickle_VCFInfoObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_66__pyx_unpickle_VCFInfoSkipParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_68__pyx_unpickle_VCFSkipAllCallDataParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_70__pyx_unpickle_VCFCallDataParserBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_72__pyx_unpickle_VCFCallDataSkipParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_74__pyx_unpickle_VCFGenotypeInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_76__pyx_unpickle_VCFGenotypeInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_78__pyx_unpickle_VCFGenotypeInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_80__pyx_unpickle_VCFGenotypeInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_82__pyx_unpickle_VCFGenotypeUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_84__pyx_unpickle_VCFGenotypeUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_86__pyx_unpickle_VCFGenotypeUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_88__pyx_unpickle_VCFGenotypeUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_90__pyx_unpickle_VCFGenotypeACInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_92__pyx_unpickle_VCFGenotypeACInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_94__pyx_unpickle_VCFGenotypeACInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_96__pyx_unpickle_VCFGenotypeACInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_98__pyx_unpickle_VCFGenotypeACUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_100__pyx_unpickle_VCFGenotypeACUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_102__pyx_unpickle_VCFGenotypeACUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_104__pyx_unpickle_VCFGenotypeACUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_106__pyx_unpickle_VCFCallDataInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_108__pyx_unpickle_VCFCallDataInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_110__pyx_unpickle_VCFCallDataInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_112__pyx_unpickle_VCFCallDataInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_114__pyx_unpickle_VCFCallDataUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_116__pyx_unpickle_VCFCallDataUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_118__pyx_unpickle_VCFCallDataUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_120__pyx_unpickle_VCFCallDataUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_122__pyx_unpickle_VCFCallDataFloat32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_124__pyx_unpickle_VCFCallDataFloat64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_126__pyx_unpickle_VCFCallDataStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_128__pyx_unpickle_VCFCallDataObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_130__pyx_unpickle_ANNTransformer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer); /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struct __pyx_array_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct __pyx_array_obj *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(struct __pyx_array_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item); /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(struct __pyx_MemviewEnum_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_v_flags, int __pyx_v_dtype_is_object); /* proto */
static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */
static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_InputStreamBase(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_FileInputStream(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_CharVectorInputStream(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFContext(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFChunkIterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFSkipFieldParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFChromPosParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFIDStringParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFIDObjectParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFRefStringParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFRefObjectParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFAltStringParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFAltObjectParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFQualParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFFilterParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFlagParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoStringParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoObjectParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoSkipParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFFormatParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataSkipParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataStringParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataObjectParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_ANNTransformer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_get = {0, &__pyx_n_s_get, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_keys = {0, &__pyx_n_s_keys, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_setdefault = {0, &__pyx_n_s_setdefault, 0, 0, 0};
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_16;
static PyObject *__pyx_int_16384;
static PyObject *__pyx_int_3357624;
static PyObject *__pyx_int_4027389;
static PyObject *__pyx_int_27830275;
static PyObject *__pyx_int_63491048;
static PyObject *__pyx_int_72589021;
static PyObject *__pyx_int_78160015;
static PyObject *__pyx_int_115204050;
static PyObject *__pyx_int_118541506;
static PyObject *__pyx_int_126768758;
static PyObject *__pyx_int_132754896;
static PyObject *__pyx_int_147095864;
static PyObject *__pyx_int_184977713;
static PyObject *__pyx_int_191757588;
static PyObject *__pyx_int_237691741;
static PyObject *__pyx_int_260145588;
static PyObject *__pyx_int_neg_1;
static PyObject *__pyx_k__14;
static PyObject *__pyx_tuple_;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_slice__11;
static PyObject *__pyx_slice__31;
static PyObject *__pyx_slice__33;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__22;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__24;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__34;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__40;
static PyObject *__pyx_tuple__41;
static PyObject *__pyx_tuple__42;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__44;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__46;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__48;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__50;
static PyObject *__pyx_tuple__51;
static PyObject *__pyx_tuple__52;
static PyObject *__pyx_tuple__53;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__55;
static PyObject *__pyx_tuple__56;
static PyObject *__pyx_tuple__57;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__64;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_tuple__68;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__72;
static PyObject *__pyx_tuple__74;
static PyObject *__pyx_tuple__76;
static PyObject *__pyx_tuple__78;
static PyObject *__pyx_tuple__80;
static PyObject *__pyx_tuple__82;
static PyObject *__pyx_tuple__84;
static PyObject *__pyx_tuple__86;
static PyObject *__pyx_tuple__88;
static PyObject *__pyx_tuple__90;
static PyObject *__pyx_tuple__92;
static PyObject *__pyx_tuple__94;
static PyObject *__pyx_tuple__96;
static PyObject *__pyx_tuple__98;
static PyObject *__pyx_tuple__100;
static PyObject *__pyx_tuple__102;
static PyObject *__pyx_tuple__104;
static PyObject *__pyx_tuple__106;
static PyObject *__pyx_tuple__108;
static PyObject *__pyx_tuple__110;
static PyObject *__pyx_tuple__112;
static PyObject *__pyx_tuple__114;
static PyObject *__pyx_tuple__116;
static PyObject *__pyx_tuple__118;
static PyObject *__pyx_tuple__120;
static PyObject *__pyx_tuple__122;
static PyObject *__pyx_tuple__124;
static PyObject *__pyx_tuple__126;
static PyObject *__pyx_tuple__128;
static PyObject *__pyx_tuple__130;
static PyObject *__pyx_tuple__132;
static PyObject *__pyx_tuple__134;
static PyObject *__pyx_tuple__136;
static PyObject *__pyx_tuple__138;
static PyObject *__pyx_tuple__140;
static PyObject *__pyx_tuple__142;
static PyObject *__pyx_tuple__144;
static PyObject *__pyx_tuple__146;
static PyObject *__pyx_tuple__148;
static PyObject *__pyx_tuple__150;
static PyObject *__pyx_tuple__152;
static PyObject *__pyx_tuple__154;
static PyObject *__pyx_tuple__156;
static PyObject *__pyx_tuple__158;
static PyObject *__pyx_tuple__160;
static PyObject *__pyx_tuple__162;
static PyObject *__pyx_tuple__164;
static PyObject *__pyx_tuple__166;
static PyObject *__pyx_tuple__168;
static PyObject *__pyx_tuple__170;
static PyObject *__pyx_tuple__172;
static PyObject *__pyx_tuple__174;
static PyObject *__pyx_tuple__176;
static PyObject *__pyx_tuple__178;
static PyObject *__pyx_tuple__180;
static PyObject *__pyx_tuple__182;
static PyObject *__pyx_tuple__184;
static PyObject *__pyx_tuple__186;
static PyObject *__pyx_tuple__188;
static PyObject *__pyx_tuple__190;
static PyObject *__pyx_tuple__191;
static PyObject *__pyx_tuple__192;
static PyObject *__pyx_tuple__193;
static PyObject *__pyx_tuple__194;
static PyObject *__pyx_tuple__195;
static PyObject *__pyx_codeobj__59;
static PyObject *__pyx_codeobj__61;
static PyObject *__pyx_codeobj__63;
static PyObject *__pyx_codeobj__65;
static PyObject *__pyx_codeobj__67;
static PyObject *__pyx_codeobj__69;
static PyObject *__pyx_codeobj__71;
static PyObject *__pyx_codeobj__73;
static PyObject *__pyx_codeobj__75;
static PyObject *__pyx_codeobj__77;
static PyObject *__pyx_codeobj__79;
static PyObject *__pyx_codeobj__81;
static PyObject *__pyx_codeobj__83;
static PyObject *__pyx_codeobj__85;
static PyObject *__pyx_codeobj__87;
static PyObject *__pyx_codeobj__89;
static PyObject *__pyx_codeobj__91;
static PyObject *__pyx_codeobj__93;
static PyObject *__pyx_codeobj__95;
static PyObject *__pyx_codeobj__97;
static PyObject *__pyx_codeobj__99;
static PyObject *__pyx_codeobj__101;
static PyObject *__pyx_codeobj__103;
static PyObject *__pyx_codeobj__105;
static PyObject *__pyx_codeobj__107;
static PyObject *__pyx_codeobj__109;
static PyObject *__pyx_codeobj__111;
static PyObject *__pyx_codeobj__113;
static PyObject *__pyx_codeobj__115;
static PyObject *__pyx_codeobj__117;
static PyObject *__pyx_codeobj__119;
static PyObject *__pyx_codeobj__121;
static PyObject *__pyx_codeobj__123;
static PyObject *__pyx_codeobj__125;
static PyObject *__pyx_codeobj__127;
static PyObject *__pyx_codeobj__129;
static PyObject *__pyx_codeobj__131;
static PyObject *__pyx_codeobj__133;
static PyObject *__pyx_codeobj__135;
static PyObject *__pyx_codeobj__137;
static PyObject *__pyx_codeobj__139;
static PyObject *__pyx_codeobj__141;
static PyObject *__pyx_codeobj__143;
static PyObject *__pyx_codeobj__145;
static PyObject *__pyx_codeobj__147;
static PyObject *__pyx_codeobj__149;
static PyObject *__pyx_codeobj__151;
static PyObject *__pyx_codeobj__153;
static PyObject *__pyx_codeobj__155;
static PyObject *__pyx_codeobj__157;
static PyObject *__pyx_codeobj__159;
static PyObject *__pyx_codeobj__161;
static PyObject *__pyx_codeobj__163;
static PyObject *__pyx_codeobj__165;
static PyObject *__pyx_codeobj__167;
static PyObject *__pyx_codeobj__169;
static PyObject *__pyx_codeobj__171;
static PyObject *__pyx_codeobj__173;
static PyObject *__pyx_codeobj__175;
static PyObject *__pyx_codeobj__177;
static PyObject *__pyx_codeobj__179;
static PyObject *__pyx_codeobj__181;
static PyObject *__pyx_codeobj__183;
static PyObject *__pyx_codeobj__185;
static PyObject *__pyx_codeobj__187;
static PyObject *__pyx_codeobj__189;
static PyObject *__pyx_codeobj__196;
/* Late includes */

/* "variant_tools/io_vcf_read.pyx":108
 * 
 * 
 * cdef inline void CharVector_init(CharVector* self, Py_ssize_t capacity) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 *     self.capacity = capacity
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_init(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self, Py_ssize_t __pyx_v_capacity) {

  /* "variant_tools/io_vcf_read.pyx":109
 * 
 * cdef inline void CharVector_init(CharVector* self, Py_ssize_t capacity) nogil:
 *     self.size = 0             # <<<<<<<<<<<<<<
 *     self.capacity = capacity
 *     self.data = <char*> malloc(sizeof(char) * capacity)
 */
  __pyx_v_self->size = 0;

  /* "variant_tools/io_vcf_read.pyx":110
 * cdef inline void CharVector_init(CharVector* self, Py_ssize_t capacity) nogil:
 *     self.size = 0
 *     self.capacity = capacity             # <<<<<<<<<<<<<<
 *     self.data = <char*> malloc(sizeof(char) * capacity)
 * 
 */
  __pyx_v_self->capacity = __pyx_v_capacity;

  /* "variant_tools/io_vcf_read.pyx":111
 *     self.size = 0
 *     self.capacity = capacity
 *     self.data = <char*> malloc(sizeof(char) * capacity)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->data = ((char *)malloc(((sizeof(char)) * __pyx_v_capacity)));

  /* "variant_tools/io_vcf_read.pyx":108
 * 
 * 
 * cdef inline void CharVector_init(CharVector* self, Py_ssize_t capacity) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 *     self.capacity = capacity
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":114
 * 
 * 
 * cdef inline void CharVector_free(CharVector* self) nogil:             # <<<<<<<<<<<<<<
 *     if self.data is not NULL:
 *         free(self.data)
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_free(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self) {
  int __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":115
 * 
 * cdef inline void CharVector_free(CharVector* self) nogil:
 *     if self.data is not NULL:             # <<<<<<<<<<<<<<
 *         free(self.data)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->data != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":116
 * cdef inline void CharVector_free(CharVector* self) nogil:
 *     if self.data is not NULL:
 *         free(self.data)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    free(__pyx_v_self->data);

    /* "variant_tools/io_vcf_read.pyx":115
 * 
 * cdef inline void CharVector_free(CharVector* self) nogil:
 *     if self.data is not NULL:             # <<<<<<<<<<<<<<
 *         free(self.data)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":114
 * 
 * 
 * cdef inline void CharVector_free(CharVector* self) nogil:             # <<<<<<<<<<<<<<
 *     if self.data is not NULL:
 *         free(self.data)
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":119
 * 
 * 
 * cdef inline void CharVector_append(CharVector* self, char c) nogil:             # <<<<<<<<<<<<<<
 *     if self.size >= self.capacity:
 *         self.capacity *= 2
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self, char __pyx_v_c) {
  int __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":120
 * 
 * cdef inline void CharVector_append(CharVector* self, char c) nogil:
 *     if self.size >= self.capacity:             # <<<<<<<<<<<<<<
 *         self.capacity *= 2
 *         self.data = <char*> realloc(self.data, sizeof(char) * self.capacity)
 */
  __pyx_t_1 = ((__pyx_v_self->size >= __pyx_v_self->capacity) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":121
 * cdef inline void CharVector_append(CharVector* self, char c) nogil:
 *     if self.size >= self.capacity:
 *         self.capacity *= 2             # <<<<<<<<<<<<<<
 *         self.data = <char*> realloc(self.data, sizeof(char) * self.capacity)
 *     self.data[self.size] = c
 */
    __pyx_v_self->capacity = (__pyx_v_self->capacity * 2);

    /* "variant_tools/io_vcf_read.pyx":122
 *     if self.size >= self.capacity:
 *         self.capacity *= 2
 *         self.data = <char*> realloc(self.data, sizeof(char) * self.capacity)             # <<<<<<<<<<<<<<
 *     self.data[self.size] = c
 *     self.size += 1
 */
    __pyx_v_self->data = ((char *)realloc(__pyx_v_self->data, ((sizeof(char)) * __pyx_v_self->capacity)));

    /* "variant_tools/io_vcf_read.pyx":120
 * 
 * cdef inline void CharVector_append(CharVector* self, char c) nogil:
 *     if self.size >= self.capacity:             # <<<<<<<<<<<<<<
 *         self.capacity *= 2
 *         self.data = <char*> realloc(self.data, sizeof(char) * self.capacity)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":123
 *         self.capacity *= 2
 *         self.data = <char*> realloc(self.data, sizeof(char) * self.capacity)
 *     self.data[self.size] = c             # <<<<<<<<<<<<<<
 *     self.size += 1
 * 
 */
  (__pyx_v_self->data[__pyx_v_self->size]) = __pyx_v_c;

  /* "variant_tools/io_vcf_read.pyx":124
 *         self.data = <char*> realloc(self.data, sizeof(char) * self.capacity)
 *     self.data[self.size] = c
 *     self.size += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->size = (__pyx_v_self->size + 1);

  /* "variant_tools/io_vcf_read.pyx":119
 * 
 * 
 * cdef inline void CharVector_append(CharVector* self, char c) nogil:             # <<<<<<<<<<<<<<
 *     if self.size >= self.capacity:
 *         self.capacity *= 2
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":127
 * 
 * 
 * cdef inline void CharVector_clear(CharVector* self) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 * 
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self) {

  /* "variant_tools/io_vcf_read.pyx":128
 * 
 * cdef inline void CharVector_clear(CharVector* self) nogil:
 *     self.size = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->size = 0;

  /* "variant_tools/io_vcf_read.pyx":127
 * 
 * 
 * cdef inline void CharVector_clear(CharVector* self) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 * 
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":131
 * 
 * 
 * cdef inline void CharVector_terminate(CharVector* self) nogil:             # <<<<<<<<<<<<<<
 *     CharVector_append(self, 0)
 * 
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self) {

  /* "variant_tools/io_vcf_read.pyx":132
 * 
 * cdef inline void CharVector_terminate(CharVector* self) nogil:
 *     CharVector_append(self, 0)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(__pyx_v_self, 0);

  /* "variant_tools/io_vcf_read.pyx":131
 * 
 * 
 * cdef inline void CharVector_terminate(CharVector* self) nogil:             # <<<<<<<<<<<<<<
 *     CharVector_append(self, 0)
 * 
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":135
 * 
 * 
 * cdef bytes CharVector_to_pybytes(CharVector* self):             # <<<<<<<<<<<<<<
 *     return PyBytes_FromStringAndSize(self.data, self.size)
 * 
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pybytes(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("CharVector_to_pybytes", 0);

  /* "variant_tools/io_vcf_read.pyx":136
 * 
 * cdef bytes CharVector_to_pybytes(CharVector* self):
 *     return PyBytes_FromStringAndSize(self.data, self.size)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(__pyx_v_self->data, __pyx_v_self->size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":135
 * 
 * 
 * cdef bytes CharVector_to_pybytes(CharVector* self):             # <<<<<<<<<<<<<<
 *     return PyBytes_FromStringAndSize(self.data, self.size)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.CharVector_to_pybytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":139
 * 
 * 
 * cdef object CharVector_to_pystr(CharVector* self):             # <<<<<<<<<<<<<<
 *     v = PyBytes_FromStringAndSize(self.data, self.size)
 *     if not PY2:
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self) {
  PyObject *__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("CharVector_to_pystr", 0);

  /* "variant_tools/io_vcf_read.pyx":140
 * 
 * cdef object CharVector_to_pystr(CharVector* self):
 *     v = PyBytes_FromStringAndSize(self.data, self.size)             # <<<<<<<<<<<<<<
 *     if not PY2:
 *         v = str(v, 'ascii')
 */
  __pyx_t_1 = PyBytes_FromStringAndSize(__pyx_v_self->data, __pyx_v_self->size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_v = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":141
 * cdef object CharVector_to_pystr(CharVector* self):
 *     v = PyBytes_FromStringAndSize(self.data, self.size)
 *     if not PY2:             # <<<<<<<<<<<<<<
 *         v = str(v, 'ascii')
 *     return v
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = ((!__pyx_t_2) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":142
 *     v = PyBytes_FromStringAndSize(self.data, self.size)
 *     if not PY2:
 *         v = str(v, 'ascii')             # <<<<<<<<<<<<<<
 *     return v
 * 
 */
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_v);
    __Pyx_GIVEREF(__pyx_v_v);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_v);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_v, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":141
 * cdef object CharVector_to_pystr(CharVector* self):
 *     v = PyBytes_FromStringAndSize(self.data, self.size)
 *     if not PY2:             # <<<<<<<<<<<<<<
 *         v = str(v, 'ascii')
 *     return v
 */
  }

  /* "variant_tools/io_vcf_read.pyx":143
 *     if not PY2:
 *         v = str(v, 'ascii')
 *     return v             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_v);
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":139
 * 
 * 
 * cdef object CharVector_to_pystr(CharVector* self):             # <<<<<<<<<<<<<<
 *     v = PyBytes_FromStringAndSize(self.data, self.size)
 *     if not PY2:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.CharVector_to_pystr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":146
 * 
 * 
 * cdef object CharVector_to_pystr_sized(CharVector* self, Py_ssize_t size):             # <<<<<<<<<<<<<<
 *     v = PyBytes_FromStringAndSize(self.data, size)
 *     if not PY2:
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr_sized(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_self, Py_ssize_t __pyx_v_size) {
  PyObject *__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("CharVector_to_pystr_sized", 0);

  /* "variant_tools/io_vcf_read.pyx":147
 * 
 * cdef object CharVector_to_pystr_sized(CharVector* self, Py_ssize_t size):
 *     v = PyBytes_FromStringAndSize(self.data, size)             # <<<<<<<<<<<<<<
 *     if not PY2:
 *         v = str(v, 'ascii')
 */
  __pyx_t_1 = PyBytes_FromStringAndSize(__pyx_v_self->data, __pyx_v_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_v = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":148
 * cdef object CharVector_to_pystr_sized(CharVector* self, Py_ssize_t size):
 *     v = PyBytes_FromStringAndSize(self.data, size)
 *     if not PY2:             # <<<<<<<<<<<<<<
 *         v = str(v, 'ascii')
 *     return v
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = ((!__pyx_t_2) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":149
 *     v = PyBytes_FromStringAndSize(self.data, size)
 *     if not PY2:
 *         v = str(v, 'ascii')             # <<<<<<<<<<<<<<
 *     return v
 * 
 */
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_v);
    __Pyx_GIVEREF(__pyx_v_v);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_v);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_v, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":148
 * cdef object CharVector_to_pystr_sized(CharVector* self, Py_ssize_t size):
 *     v = PyBytes_FromStringAndSize(self.data, size)
 *     if not PY2:             # <<<<<<<<<<<<<<
 *         v = str(v, 'ascii')
 *     return v
 */
  }

  /* "variant_tools/io_vcf_read.pyx":150
 *     if not PY2:
 *         v = str(v, 'ascii')
 *     return v             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_v);
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":146
 * 
 * 
 * cdef object CharVector_to_pystr_sized(CharVector* self, Py_ssize_t size):             # <<<<<<<<<<<<<<
 *     v = PyBytes_FromStringAndSize(self.data, size)
 *     if not PY2:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.CharVector_to_pystr_sized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":159
 * 
 * 
 * cdef inline void IntVector_init(IntVector* self, Py_ssize_t capacity) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 *     self.capacity = capacity
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_init(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *__pyx_v_self, Py_ssize_t __pyx_v_capacity) {

  /* "variant_tools/io_vcf_read.pyx":160
 * 
 * cdef inline void IntVector_init(IntVector* self, Py_ssize_t capacity) nogil:
 *     self.size = 0             # <<<<<<<<<<<<<<
 *     self.capacity = capacity
 *     self.data = <int*> malloc(sizeof(int) * capacity)
 */
  __pyx_v_self->size = 0;

  /* "variant_tools/io_vcf_read.pyx":161
 * cdef inline void IntVector_init(IntVector* self, Py_ssize_t capacity) nogil:
 *     self.size = 0
 *     self.capacity = capacity             # <<<<<<<<<<<<<<
 *     self.data = <int*> malloc(sizeof(int) * capacity)
 * 
 */
  __pyx_v_self->capacity = __pyx_v_capacity;

  /* "variant_tools/io_vcf_read.pyx":162
 *     self.size = 0
 *     self.capacity = capacity
 *     self.data = <int*> malloc(sizeof(int) * capacity)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->data = ((int *)malloc(((sizeof(int)) * __pyx_v_capacity)));

  /* "variant_tools/io_vcf_read.pyx":159
 * 
 * 
 * cdef inline void IntVector_init(IntVector* self, Py_ssize_t capacity) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 *     self.capacity = capacity
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":165
 * 
 * 
 * cdef inline void IntVector_free(IntVector* self) nogil:             # <<<<<<<<<<<<<<
 *     if self.data is not NULL:
 *         free(self.data)
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_free(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *__pyx_v_self) {
  int __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":166
 * 
 * cdef inline void IntVector_free(IntVector* self) nogil:
 *     if self.data is not NULL:             # <<<<<<<<<<<<<<
 *         free(self.data)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->data != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":167
 * cdef inline void IntVector_free(IntVector* self) nogil:
 *     if self.data is not NULL:
 *         free(self.data)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    free(__pyx_v_self->data);

    /* "variant_tools/io_vcf_read.pyx":166
 * 
 * cdef inline void IntVector_free(IntVector* self) nogil:
 *     if self.data is not NULL:             # <<<<<<<<<<<<<<
 *         free(self.data)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":165
 * 
 * 
 * cdef inline void IntVector_free(IntVector* self) nogil:             # <<<<<<<<<<<<<<
 *     if self.data is not NULL:
 *         free(self.data)
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":170
 * 
 * 
 * cdef inline void IntVector_append(IntVector* self, int c) nogil:             # <<<<<<<<<<<<<<
 *     if self.size >= self.capacity:
 *         self.capacity *= 2
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_append(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *__pyx_v_self, int __pyx_v_c) {
  int __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":171
 * 
 * cdef inline void IntVector_append(IntVector* self, int c) nogil:
 *     if self.size >= self.capacity:             # <<<<<<<<<<<<<<
 *         self.capacity *= 2
 *         self.data = <int*> realloc(self.data, sizeof(int) * self.capacity)
 */
  __pyx_t_1 = ((__pyx_v_self->size >= __pyx_v_self->capacity) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":172
 * cdef inline void IntVector_append(IntVector* self, int c) nogil:
 *     if self.size >= self.capacity:
 *         self.capacity *= 2             # <<<<<<<<<<<<<<
 *         self.data = <int*> realloc(self.data, sizeof(int) * self.capacity)
 *     self.data[self.size] = c
 */
    __pyx_v_self->capacity = (__pyx_v_self->capacity * 2);

    /* "variant_tools/io_vcf_read.pyx":173
 *     if self.size >= self.capacity:
 *         self.capacity *= 2
 *         self.data = <int*> realloc(self.data, sizeof(int) * self.capacity)             # <<<<<<<<<<<<<<
 *     self.data[self.size] = c
 *     self.size += 1
 */
    __pyx_v_self->data = ((int *)realloc(__pyx_v_self->data, ((sizeof(int)) * __pyx_v_self->capacity)));

    /* "variant_tools/io_vcf_read.pyx":171
 * 
 * cdef inline void IntVector_append(IntVector* self, int c) nogil:
 *     if self.size >= self.capacity:             # <<<<<<<<<<<<<<
 *         self.capacity *= 2
 *         self.data = <int*> realloc(self.data, sizeof(int) * self.capacity)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":174
 *         self.capacity *= 2
 *         self.data = <int*> realloc(self.data, sizeof(int) * self.capacity)
 *     self.data[self.size] = c             # <<<<<<<<<<<<<<
 *     self.size += 1
 * 
 */
  (__pyx_v_self->data[__pyx_v_self->size]) = __pyx_v_c;

  /* "variant_tools/io_vcf_read.pyx":175
 *         self.data = <int*> realloc(self.data, sizeof(int) * self.capacity)
 *     self.data[self.size] = c
 *     self.size += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->size = (__pyx_v_self->size + 1);

  /* "variant_tools/io_vcf_read.pyx":170
 * 
 * 
 * cdef inline void IntVector_append(IntVector* self, int c) nogil:             # <<<<<<<<<<<<<<
 *     if self.size >= self.capacity:
 *         self.capacity *= 2
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":178
 * 
 * 
 * cdef inline void IntVector_clear(IntVector* self) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 * 
 */

static CYTHON_INLINE void __pyx_f_13variant_tools_11io_vcf_read_IntVector_clear(struct __pyx_t_13variant_tools_11io_vcf_read_IntVector *__pyx_v_self) {

  /* "variant_tools/io_vcf_read.pyx":179
 * 
 * cdef inline void IntVector_clear(IntVector* self) nogil:
 *     self.size = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->size = 0;

  /* "variant_tools/io_vcf_read.pyx":178
 * 
 * 
 * cdef inline void IntVector_clear(IntVector* self) nogil:             # <<<<<<<<<<<<<<
 *     self.size = 0
 * 
 */

  /* function exit code */
}

/* "variant_tools/io_vcf_read.pyx":186
 * 
 * 
 * cdef inline Py_ssize_t search_sorted_cstr(char* query, char** compare, Py_ssize_t n_items) nogil:             # <<<<<<<<<<<<<<
 *     cdef:
 *         Py_ssize_t i
 */

static CYTHON_INLINE Py_ssize_t __pyx_f_13variant_tools_11io_vcf_read_search_sorted_cstr(char *__pyx_v_query, char **__pyx_v_compare, Py_ssize_t __pyx_v_n_items) {
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_r;
  Py_ssize_t __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":193
 *     # bottleneck, so stick with a simple scan for now
 * 
 *     for i in range(n_items):             # <<<<<<<<<<<<<<
 *         if strcmp(query, compare[i]) == 0:
 *             return i
 */
  __pyx_t_1 = __pyx_v_n_items;
  __pyx_t_2 = __pyx_t_1;
  for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
    __pyx_v_i = __pyx_t_3;

    /* "variant_tools/io_vcf_read.pyx":194
 * 
 *     for i in range(n_items):
 *         if strcmp(query, compare[i]) == 0:             # <<<<<<<<<<<<<<
 *             return i
 * 
 */
    __pyx_t_4 = ((strcmp(__pyx_v_query, (__pyx_v_compare[__pyx_v_i])) == 0) != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":195
 *     for i in range(n_items):
 *         if strcmp(query, compare[i]) == 0:
 *             return i             # <<<<<<<<<<<<<<
 * 
 *     return -1
 */
      __pyx_r = __pyx_v_i;
      goto __pyx_L0;

      /* "variant_tools/io_vcf_read.pyx":194
 * 
 *     for i in range(n_items):
 *         if strcmp(query, compare[i]) == 0:             # <<<<<<<<<<<<<<
 *             return i
 * 
 */
    }
  }

  /* "variant_tools/io_vcf_read.pyx":197
 *             return i
 * 
 *     return -1             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = -1L;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":186
 * 
 * 
 * cdef inline Py_ssize_t search_sorted_cstr(char* query, char** compare, Py_ssize_t n_items) nogil:             # <<<<<<<<<<<<<<
 *     cdef:
 *         Py_ssize_t i
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":211
 *         char c
 * 
 *     cdef int advance(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read the next character from the stream and store it in the `c` attribute."""
 *         pass
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15InputStreamBase_advance(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("advance", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15InputStreamBase_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15InputStreamBase_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15InputStreamBase___reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15InputStreamBase___reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.c,)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = __Pyx_PyInt_From_char(__pyx_v_self->c); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.c,)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v__dict = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "(tree fragment)":7
 *     state = (self.c,)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_3 = (__pyx_v__dict != Py_None);
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict);
    __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = False
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.c,)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = False             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, None), state
 */
  /*else*/ {
    __pyx_v_use_setstate = 0;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = False
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, None), state
 *     else:
 */
  __pyx_t_4 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_4) {

    /* "(tree fragment)":13
 *         use_setstate = False
 *     if use_setstate:
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_InputStreamBase); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_78160015);
    __Pyx_GIVEREF(__pyx_int_78160015);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_78160015);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = False
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, None), state
 *     else:
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_InputStreamBase__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_InputStreamBase); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_78160015);
    __Pyx_GIVEREF(__pyx_int_78160015);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_78160015);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __pyx_t_5 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.InputStreamBase.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_InputStreamBase__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15InputStreamBase_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15InputStreamBase_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15InputStreamBase_2__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15InputStreamBase_2__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_InputStreamBase__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_InputStreamBase__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_InputStreamBase, (type(self), 0x4a8a08f, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_InputStreamBase__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.InputStreamBase.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":228
 *         bint close
 * 
 *     def __init__(self, fileobj, buffer_size=2**14, close=False):             # <<<<<<<<<<<<<<
 *         self.fileobj = fileobj
 *         self.buffer_size = buffer_size
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fileobj = 0;
  PyObject *__pyx_v_buffer_size = 0;
  PyObject *__pyx_v_close = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fileobj,&__pyx_n_s_buffer_size,&__pyx_n_s_close,0};
    PyObject* values[3] = {0,0,0};
    values[1] = ((PyObject *)__pyx_int_16384);
    values[2] = ((PyObject *)Py_False);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fileobj)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_buffer_size);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_close);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 228, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_fileobj = values[0];
    __pyx_v_buffer_size = values[1];
    __pyx_v_close = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 228, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self), __pyx_v_fileobj, __pyx_v_buffer_size, __pyx_v_close);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, PyObject *__pyx_v_fileobj, PyObject *__pyx_v_buffer_size, PyObject *__pyx_v_close) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  char *__pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":229
 * 
 *     def __init__(self, fileobj, buffer_size=2**14, close=False):
 *         self.fileobj = fileobj             # <<<<<<<<<<<<<<
 *         self.buffer_size = buffer_size
 *         # initialise input buffer
 */
  __Pyx_INCREF(__pyx_v_fileobj);
  __Pyx_GIVEREF(__pyx_v_fileobj);
  __Pyx_GOTREF(__pyx_v_self->fileobj);
  __Pyx_DECREF(__pyx_v_self->fileobj);
  __pyx_v_self->fileobj = __pyx_v_fileobj;

  /* "variant_tools/io_vcf_read.pyx":230
 *     def __init__(self, fileobj, buffer_size=2**14, close=False):
 *         self.fileobj = fileobj
 *         self.buffer_size = buffer_size             # <<<<<<<<<<<<<<
 *         # initialise input buffer
 *         self.buffer = bytearray(buffer_size)
 */
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_buffer_size); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 230, __pyx_L1_error)
  __pyx_v_self->buffer_size = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":232
 *         self.buffer_size = buffer_size
 *         # initialise input buffer
 *         self.buffer = bytearray(buffer_size)             # <<<<<<<<<<<<<<
 *         self.buffer_start = PyByteArray_AS_STRING(self.buffer)
 *         self.stream = self.buffer_start
 */
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyByteArray_Type)), __pyx_v_buffer_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->buffer);
  __Pyx_DECREF(__pyx_v_self->buffer);
  __pyx_v_self->buffer = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":233
 *         # initialise input buffer
 *         self.buffer = bytearray(buffer_size)
 *         self.buffer_start = PyByteArray_AS_STRING(self.buffer)             # <<<<<<<<<<<<<<
 *         self.stream = self.buffer_start
 *         self.close = close
 */
  __pyx_t_2 = __pyx_v_self->buffer;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_v_self->buffer_start = PyByteArray_AS_STRING(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":234
 *         self.buffer = bytearray(buffer_size)
 *         self.buffer_start = PyByteArray_AS_STRING(self.buffer)
 *         self.stream = self.buffer_start             # <<<<<<<<<<<<<<
 *         self.close = close
 *         self._bufferup()
 */
  __pyx_t_3 = __pyx_v_self->buffer_start;
  __pyx_v_self->stream = __pyx_t_3;

  /* "variant_tools/io_vcf_read.pyx":235
 *         self.buffer_start = PyByteArray_AS_STRING(self.buffer)
 *         self.stream = self.buffer_start
 *         self.close = close             # <<<<<<<<<<<<<<
 *         self._bufferup()
 *         self.advance()
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_close); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 235, __pyx_L1_error)
  __pyx_v_self->close = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":236
 *         self.stream = self.buffer_start
 *         self.close = close
 *         self._bufferup()             # <<<<<<<<<<<<<<
 *         self.advance()
 * 
 */
  __pyx_t_5 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->_bufferup(__pyx_v_self); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 236, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":237
 *         self.close = close
 *         self._bufferup()
 *         self.advance()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_t_5 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.advance(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 237, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":228
 *         bint close
 * 
 *     def __init__(self, fileobj, buffer_size=2**14, close=False):             # <<<<<<<<<<<<<<
 *         self.fileobj = fileobj
 *         self.buffer_size = buffer_size
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":239
 *         self.advance()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.close:
 *             self.fileobj.close()
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_2__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_2__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":240
 * 
 *     def __dealloc__(self):
 *         if self.close:             # <<<<<<<<<<<<<<
 *             self.fileobj.close()
 * 
 */
  __pyx_t_1 = (__pyx_v_self->close != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":241
 *     def __dealloc__(self):
 *         if self.close:
 *             self.fileobj.close()             # <<<<<<<<<<<<<<
 * 
 *     cdef int _bufferup(self) except -1:  # nogil
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->fileobj, __pyx_n_s_close); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":240
 * 
 *     def __dealloc__(self):
 *         if self.close:             # <<<<<<<<<<<<<<
 *             self.fileobj.close()
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":239
 *         self.advance()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.close:
 *             self.fileobj.close()
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("variant_tools.io_vcf_read.FileInputStream.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "variant_tools/io_vcf_read.pyx":243
 *             self.fileobj.close()
 * 
 *     cdef int _bufferup(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read as many bytes as possible from the underlying file object into the
 *         buffer."""
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream__bufferup(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self) {
  Py_ssize_t __pyx_v_l;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  char *__pyx_t_6;
  __Pyx_RefNannySetupContext("_bufferup", 0);

  /* "variant_tools/io_vcf_read.pyx":248
 *         cdef Py_ssize_t l
 *         # with gil:
 *         l = self.fileobj.readinto(self.buffer)             # <<<<<<<<<<<<<<
 *         if l > 0:
 *             self.stream = self.buffer_start
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->fileobj, __pyx_n_s_readinto); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_self->buffer) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_self->buffer);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 248, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_l = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":249
 *         # with gil:
 *         l = self.fileobj.readinto(self.buffer)
 *         if l > 0:             # <<<<<<<<<<<<<<
 *             self.stream = self.buffer_start
 *             self.buffer_end = self.buffer_start + l
 */
  __pyx_t_5 = ((__pyx_v_l > 0) != 0);
  if (__pyx_t_5) {

    /* "variant_tools/io_vcf_read.pyx":250
 *         l = self.fileobj.readinto(self.buffer)
 *         if l > 0:
 *             self.stream = self.buffer_start             # <<<<<<<<<<<<<<
 *             self.buffer_end = self.buffer_start + l
 *         else:
 */
    __pyx_t_6 = __pyx_v_self->buffer_start;
    __pyx_v_self->stream = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":251
 *         if l > 0:
 *             self.stream = self.buffer_start
 *             self.buffer_end = self.buffer_start + l             # <<<<<<<<<<<<<<
 *         else:
 *             self.stream = NULL
 */
    __pyx_v_self->buffer_end = (__pyx_v_self->buffer_start + __pyx_v_l);

    /* "variant_tools/io_vcf_read.pyx":249
 *         # with gil:
 *         l = self.fileobj.readinto(self.buffer)
 *         if l > 0:             # <<<<<<<<<<<<<<
 *             self.stream = self.buffer_start
 *             self.buffer_end = self.buffer_start + l
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":253
 *             self.buffer_end = self.buffer_start + l
 *         else:
 *             self.stream = NULL             # <<<<<<<<<<<<<<
 * 
 *     cdef int advance(self) except -1:  # nogil
 */
  /*else*/ {
    __pyx_v_self->stream = NULL;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":243
 *             self.fileobj.close()
 * 
 *     cdef int _bufferup(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read as many bytes as possible from the underlying file object into the
 *         buffer."""
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream._bufferup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":255
 *             self.stream = NULL
 * 
 *     cdef int advance(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read the next character from the stream and store it in the `c` attribute."""
 *         if self.stream is self.buffer_end:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_advance(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("advance", 0);

  /* "variant_tools/io_vcf_read.pyx":257
 *     cdef int advance(self) except -1:  # nogil
 *         """Read the next character from the stream and store it in the `c` attribute."""
 *         if self.stream is self.buffer_end:             # <<<<<<<<<<<<<<
 *             self._bufferup()
 *         if self.stream is NULL:
 */
  __pyx_t_1 = ((__pyx_v_self->stream == __pyx_v_self->buffer_end) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":258
 *         """Read the next character from the stream and store it in the `c` attribute."""
 *         if self.stream is self.buffer_end:
 *             self._bufferup()             # <<<<<<<<<<<<<<
 *         if self.stream is NULL:
 *             # end of file
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->_bufferup(__pyx_v_self); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 258, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":257
 *     cdef int advance(self) except -1:  # nogil
 *         """Read the next character from the stream and store it in the `c` attribute."""
 *         if self.stream is self.buffer_end:             # <<<<<<<<<<<<<<
 *             self._bufferup()
 *         if self.stream is NULL:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":259
 *         if self.stream is self.buffer_end:
 *             self._bufferup()
 *         if self.stream is NULL:             # <<<<<<<<<<<<<<
 *             # end of file
 *             self.c = 0
 */
  __pyx_t_1 = ((__pyx_v_self->stream == NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":261
 *         if self.stream is NULL:
 *             # end of file
 *             self.c = 0             # <<<<<<<<<<<<<<
 *         else:
 *             self.c = self.stream[0]
 */
    __pyx_v_self->__pyx_base.c = 0;

    /* "variant_tools/io_vcf_read.pyx":259
 *         if self.stream is self.buffer_end:
 *             self._bufferup()
 *         if self.stream is NULL:             # <<<<<<<<<<<<<<
 *             # end of file
 *             self.c = 0
 */
    goto __pyx_L4;
  }

  /* "variant_tools/io_vcf_read.pyx":263
 *             self.c = 0
 *         else:
 *             self.c = self.stream[0]             # <<<<<<<<<<<<<<
 *             self.stream += 1
 * 
 */
  /*else*/ {
    __pyx_v_self->__pyx_base.c = (__pyx_v_self->stream[0]);

    /* "variant_tools/io_vcf_read.pyx":264
 *         else:
 *             self.c = self.stream[0]
 *             self.stream += 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int read_line_into(self, CharVector* dest) except -1:  # nogil
 */
    __pyx_v_self->stream = (__pyx_v_self->stream + 1);
  }
  __pyx_L4:;

  /* "variant_tools/io_vcf_read.pyx":255
 *             self.stream = NULL
 * 
 *     cdef int advance(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read the next character from the stream and store it in the `c` attribute."""
 *         if self.stream is self.buffer_end:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.advance", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":266
 *             self.stream += 1
 * 
 *     cdef int read_line_into(self, CharVector* dest) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read up to end of line or end of file (whichever comes first) and append
 *         chars to the `dest` buffer."""
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_read_line_into(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_dest) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("read_line_into", 0);

  /* "variant_tools/io_vcf_read.pyx":270
 *         chars to the `dest` buffer."""
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if self.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":272
 *         while True:
 * 
 *             if self.c == 0:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
    __pyx_t_1 = ((__pyx_v_self->__pyx_base.c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":273
 * 
 *             if self.c == 0:
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif self.c == LF:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":272
 *         while True:
 * 
 *             if self.c == 0:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
    }

    /* "variant_tools/io_vcf_read.pyx":275
 *                 break
 * 
 *             elif self.c == LF:             # <<<<<<<<<<<<<<
 *                 CharVector_append(dest, LF)
 *                 # advance input stream beyond EOL
 */
    __pyx_t_1 = ((__pyx_v_self->__pyx_base.c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":276
 * 
 *             elif self.c == LF:
 *                 CharVector_append(dest, LF)             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond EOL
 *                 self.advance()
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(__pyx_v_dest, __pyx_v_13variant_tools_11io_vcf_read_LF);

      /* "variant_tools/io_vcf_read.pyx":278
 *                 CharVector_append(dest, LF)
 *                 # advance input stream beyond EOL
 *                 self.advance()             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.advance(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 278, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":279
 *                 # advance input stream beyond EOL
 *                 self.advance()
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif self.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":275
 *                 break
 * 
 *             elif self.c == LF:             # <<<<<<<<<<<<<<
 *                 CharVector_append(dest, LF)
 *                 # advance input stream beyond EOL
 */
    }

    /* "variant_tools/io_vcf_read.pyx":281
 *                 break
 * 
 *             elif self.c == CR:             # <<<<<<<<<<<<<<
 *                 # translate newdests
 *                 CharVector_append(dest, LF)
 */
    __pyx_t_1 = ((__pyx_v_self->__pyx_base.c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":283
 *             elif self.c == CR:
 *                 # translate newdests
 *                 CharVector_append(dest, LF)             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond EOL
 *                 self.advance()
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(__pyx_v_dest, __pyx_v_13variant_tools_11io_vcf_read_LF);

      /* "variant_tools/io_vcf_read.pyx":285
 *                 CharVector_append(dest, LF)
 *                 # advance input stream beyond EOL
 *                 self.advance()             # <<<<<<<<<<<<<<
 *                 if self.c == LF:
 *                     # handle Windows CRLF
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.advance(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 285, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":286
 *                 # advance input stream beyond EOL
 *                 self.advance()
 *                 if self.c == LF:             # <<<<<<<<<<<<<<
 *                     # handle Windows CRLF
 *                     self.advance()
 */
      __pyx_t_1 = ((__pyx_v_self->__pyx_base.c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":288
 *                 if self.c == LF:
 *                     # handle Windows CRLF
 *                     self.advance()             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.advance(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 288, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":286
 *                 # advance input stream beyond EOL
 *                 self.advance()
 *                 if self.c == LF:             # <<<<<<<<<<<<<<
 *                     # handle Windows CRLF
 *                     self.advance()
 */
      }

      /* "variant_tools/io_vcf_read.pyx":289
 *                     # handle Windows CRLF
 *                     self.advance()
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":281
 *                 break
 * 
 *             elif self.c == CR:             # <<<<<<<<<<<<<<
 *                 # translate newdests
 *                 CharVector_append(dest, LF)
 */
    }

    /* "variant_tools/io_vcf_read.pyx":292
 * 
 *             else:
 *                 CharVector_append(dest, self.c)             # <<<<<<<<<<<<<<
 *                 self.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(__pyx_v_dest, __pyx_v_self->__pyx_base.c);

      /* "variant_tools/io_vcf_read.pyx":293
 *             else:
 *                 CharVector_append(dest, self.c)
 *                 self.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int read_lines_into(self, CharVector* dest, Py_ssize_t n) except -1:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.advance(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_self)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 293, __pyx_L1_error)
    }
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":266
 *             self.stream += 1
 * 
 *     cdef int read_line_into(self, CharVector* dest) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         """Read up to end of line or end of file (whichever comes first) and append
 *         chars to the `dest` buffer."""
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.read_line_into", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":295
 *                 self.advance()
 * 
 *     cdef int read_lines_into(self, CharVector* dest, Py_ssize_t n) except -1:             # <<<<<<<<<<<<<<
 *         """Read up to `n` lines into the `dest` buffer."""
 *         cdef Py_ssize_t n_lines_read = 0
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_read_lines_into(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_dest, Py_ssize_t __pyx_v_n) {
  Py_ssize_t __pyx_v_n_lines_read;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("read_lines_into", 0);

  /* "variant_tools/io_vcf_read.pyx":297
 *     cdef int read_lines_into(self, CharVector* dest, Py_ssize_t n) except -1:
 *         """Read up to `n` lines into the `dest` buffer."""
 *         cdef Py_ssize_t n_lines_read = 0             # <<<<<<<<<<<<<<
 * 
 *         # with nogil:
 */
  __pyx_v_n_lines_read = 0;

  /* "variant_tools/io_vcf_read.pyx":301
 *         # with nogil:
 * 
 *         while n_lines_read < n and self.c != 0:             # <<<<<<<<<<<<<<
 *             self.read_line_into(dest)
 *             n_lines_read += 1
 */
  while (1) {
    __pyx_t_2 = ((__pyx_v_n_lines_read < __pyx_v_n) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_self->__pyx_base.c != 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (!__pyx_t_1) break;

    /* "variant_tools/io_vcf_read.pyx":302
 * 
 *         while n_lines_read < n and self.c != 0:
 *             self.read_line_into(dest)             # <<<<<<<<<<<<<<
 *             n_lines_read += 1
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->read_line_into(__pyx_v_self, __pyx_v_dest); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 302, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":303
 *         while n_lines_read < n and self.c != 0:
 *             self.read_line_into(dest)
 *             n_lines_read += 1             # <<<<<<<<<<<<<<
 * 
 *         return n_lines_read
 */
    __pyx_v_n_lines_read = (__pyx_v_n_lines_read + 1);
  }

  /* "variant_tools/io_vcf_read.pyx":305
 *             n_lines_read += 1
 * 
 *         return n_lines_read             # <<<<<<<<<<<<<<
 * 
 *     def readline(self):
 */
  __pyx_r = __pyx_v_n_lines_read;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":295
 *                 self.advance()
 * 
 *     cdef int read_lines_into(self, CharVector* dest, Py_ssize_t n) except -1:             # <<<<<<<<<<<<<<
 *         """Read up to `n` lines into the `dest` buffer."""
 *         cdef Py_ssize_t n_lines_read = 0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.read_lines_into", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":307
 *         return n_lines_read
 * 
 *     def readline(self):             # <<<<<<<<<<<<<<
 *         """Read characters up to end of line or end of file and return as Python bytes
 *         object."""
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_5readline(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_15FileInputStream_4readline[] = "Read characters up to end of line or end of file and return as Python bytes\n        object.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_5readline(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("readline (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_4readline(((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_4readline(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self) {
  struct __pyx_t_13variant_tools_11io_vcf_read_CharVector __pyx_v_line;
  PyObject *__pyx_v_ret = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("readline", 0);

  /* "variant_tools/io_vcf_read.pyx":311
 *         object."""
 *         cdef CharVector line
 *         CharVector_init(&line, 2**8)             # <<<<<<<<<<<<<<
 *         self.read_line_into(&line)
 *         ret = CharVector_to_pybytes(&line)
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_init((&__pyx_v_line), 0x100);

  /* "variant_tools/io_vcf_read.pyx":312
 *         cdef CharVector line
 *         CharVector_init(&line, 2**8)
 *         self.read_line_into(&line)             # <<<<<<<<<<<<<<
 *         ret = CharVector_to_pybytes(&line)
 *         CharVector_free(&line)
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self->__pyx_base.__pyx_vtab)->read_line_into(__pyx_v_self, (&__pyx_v_line)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 312, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":313
 *         CharVector_init(&line, 2**8)
 *         self.read_line_into(&line)
 *         ret = CharVector_to_pybytes(&line)             # <<<<<<<<<<<<<<
 *         CharVector_free(&line)
 *         return ret
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pybytes((&__pyx_v_line)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_ret = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":314
 *         self.read_line_into(&line)
 *         ret = CharVector_to_pybytes(&line)
 *         CharVector_free(&line)             # <<<<<<<<<<<<<<
 *         return ret
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_free((&__pyx_v_line));

  /* "variant_tools/io_vcf_read.pyx":315
 *         ret = CharVector_to_pybytes(&line)
 *         CharVector_free(&line)
 *         return ret             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ret);
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":307
 *         return n_lines_read
 * 
 *     def readline(self):             # <<<<<<<<<<<<<<
 *         """Read characters up to end of line or end of file and return as Python bytes
 *         object."""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.readline", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ret);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_6__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_6__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.buffer, self.buffer_end, self.buffer_size, self.buffer_start, self.c, self.close, self.fileobj, self.stream)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->buffer_end); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->buffer_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_self->buffer_start); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_From_char(__pyx_v_self->__pyx_base.c); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_self->close); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_self->stream); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyTuple_New(8); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_INCREF(__pyx_v_self->buffer);
  __Pyx_GIVEREF(__pyx_v_self->buffer);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_self->buffer);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_7, 5, __pyx_t_5);
  __Pyx_INCREF(__pyx_v_self->fileobj);
  __Pyx_GIVEREF(__pyx_v_self->fileobj);
  PyTuple_SET_ITEM(__pyx_t_7, 6, __pyx_v_self->fileobj);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_7, 7, __pyx_t_6);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_7);
  __pyx_t_7 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.buffer, self.buffer_end, self.buffer_size, self.buffer_start, self.c, self.close, self.fileobj, self.stream)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_7 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_v__dict = __pyx_t_7;
  __pyx_t_7 = 0;

  /* "(tree fragment)":7
 *     state = (self.buffer, self.buffer_end, self.buffer_size, self.buffer_start, self.c, self.close, self.fileobj, self.stream)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_8 = (__pyx_v__dict != Py_None);
  __pyx_t_9 = (__pyx_t_8 != 0);
  if (__pyx_t_9) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v__dict);
    __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_6));
    __pyx_t_6 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.buffer is not None or self.fileobj is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.buffer, self.buffer_end, self.buffer_size, self.buffer_start, self.c, self.close, self.fileobj, self.stream)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.buffer is not None or self.fileobj is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, None), state
 */
  /*else*/ {
    __pyx_t_8 = (__pyx_v_self->buffer != ((PyObject*)Py_None));
    __pyx_t_10 = (__pyx_t_8 != 0);
    if (!__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_10 = (__pyx_v_self->fileobj != Py_None);
    __pyx_t_8 = (__pyx_t_10 != 0);
    __pyx_t_9 = __pyx_t_8;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_9;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.buffer is not None or self.fileobj is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, None), state
 *     else:
 */
  __pyx_t_9 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_9) {

    /* "(tree fragment)":13
 *         use_setstate = self.buffer is not None or self.fileobj is not None
 *     if use_setstate:
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pyx_unpickle_FileInputStream); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_147095864);
    __Pyx_GIVEREF(__pyx_int_147095864);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_int_147095864);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_7, 2, Py_None);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_7);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_6 = 0;
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.buffer is not None or self.fileobj is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, None), state
 *     else:
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_FileInputStream__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_FileInputStream); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_147095864);
    __Pyx_GIVEREF(__pyx_int_147095864);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_int_147095864);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_state);
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7);
    __pyx_t_5 = 0;
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_FileInputStream__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_8__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15FileInputStream_8__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_FileInputStream__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_FileInputStream__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_FileInputStream, (type(self), 0x8c48138, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_FileInputStream__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.FileInputStream.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":324
 *         Py_ssize_t stream_index
 * 
 *     def __cinit__(self, Py_ssize_t capacity):             # <<<<<<<<<<<<<<
 *         CharVector_init(&self.vector, capacity)
 *         self.stream_index = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  Py_ssize_t __pyx_v_capacity;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_capacity,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_capacity)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 324, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_capacity = __Pyx_PyIndex_AsSsize_t(values[0]); if (unlikely((__pyx_v_capacity == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 324, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 324, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.CharVectorInputStream.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream___cinit__(((struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *)__pyx_v_self), __pyx_v_capacity);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self, Py_ssize_t __pyx_v_capacity) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "variant_tools/io_vcf_read.pyx":325
 * 
 *     def __cinit__(self, Py_ssize_t capacity):
 *         CharVector_init(&self.vector, capacity)             # <<<<<<<<<<<<<<
 *         self.stream_index = 0
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_init((&__pyx_v_self->vector), __pyx_v_capacity);

  /* "variant_tools/io_vcf_read.pyx":326
 *     def __cinit__(self, Py_ssize_t capacity):
 *         CharVector_init(&self.vector, capacity)
 *         self.stream_index = 0             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_v_self->stream_index = 0;

  /* "variant_tools/io_vcf_read.pyx":324
 *         Py_ssize_t stream_index
 * 
 *     def __cinit__(self, Py_ssize_t capacity):             # <<<<<<<<<<<<<<
 *         CharVector_init(&self.vector, capacity)
 *         self.stream_index = 0
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":328
 *         self.stream_index = 0
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         CharVector_free(&self.vector)
 * 
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_2__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_2__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":329
 * 
 *     def __dealloc__(self):
 *         CharVector_free(&self.vector)             # <<<<<<<<<<<<<<
 * 
 *     cdef int advance(self) except -1:  # nogil
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_free((&__pyx_v_self->vector));

  /* "variant_tools/io_vcf_read.pyx":328
 *         self.stream_index = 0
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         CharVector_free(&self.vector)
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "variant_tools/io_vcf_read.pyx":331
 *         CharVector_free(&self.vector)
 * 
 *     cdef int advance(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         if self.stream_index < self.vector.size:
 *             self.c = self.vector.data[self.stream_index]
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21CharVectorInputStream_advance(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("advance", 0);

  /* "variant_tools/io_vcf_read.pyx":332
 * 
 *     cdef int advance(self) except -1:  # nogil
 *         if self.stream_index < self.vector.size:             # <<<<<<<<<<<<<<
 *             self.c = self.vector.data[self.stream_index]
 *             self.stream_index += 1
 */
  __pyx_t_1 = ((__pyx_v_self->stream_index < __pyx_v_self->vector.size) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":333
 *     cdef int advance(self) except -1:  # nogil
 *         if self.stream_index < self.vector.size:
 *             self.c = self.vector.data[self.stream_index]             # <<<<<<<<<<<<<<
 *             self.stream_index += 1
 *         else:
 */
    __pyx_v_self->__pyx_base.c = (__pyx_v_self->vector.data[__pyx_v_self->stream_index]);

    /* "variant_tools/io_vcf_read.pyx":334
 *         if self.stream_index < self.vector.size:
 *             self.c = self.vector.data[self.stream_index]
 *             self.stream_index += 1             # <<<<<<<<<<<<<<
 *         else:
 *             self.c = 0
 */
    __pyx_v_self->stream_index = (__pyx_v_self->stream_index + 1);

    /* "variant_tools/io_vcf_read.pyx":332
 * 
 *     cdef int advance(self) except -1:  # nogil
 *         if self.stream_index < self.vector.size:             # <<<<<<<<<<<<<<
 *             self.c = self.vector.data[self.stream_index]
 *             self.stream_index += 1
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":336
 *             self.stream_index += 1
 *         else:
 *             self.c = 0             # <<<<<<<<<<<<<<
 * 
 *     cdef void clear(self) :  # nogil
 */
  /*else*/ {
    __pyx_v_self->__pyx_base.c = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":331
 *         CharVector_free(&self.vector)
 * 
 *     cdef int advance(self) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         if self.stream_index < self.vector.size:
 *             self.c = self.vector.data[self.stream_index]
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":338
 *             self.c = 0
 * 
 *     cdef void clear(self) :  # nogil             # <<<<<<<<<<<<<<
 *         CharVector_clear(&self.vector)
 *         self.stream_index = 0
 */

static void __pyx_f_13variant_tools_11io_vcf_read_21CharVectorInputStream_clear(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("clear", 0);

  /* "variant_tools/io_vcf_read.pyx":339
 * 
 *     cdef void clear(self) :  # nogil
 *         CharVector_clear(&self.vector)             # <<<<<<<<<<<<<<
 *         self.stream_index = 0
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_self->vector));

  /* "variant_tools/io_vcf_read.pyx":340
 *     cdef void clear(self) :  # nogil
 *         CharVector_clear(&self.vector)
 *         self.stream_index = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->stream_index = 0;

  /* "variant_tools/io_vcf_read.pyx":338
 *             self.c = 0
 * 
 *     cdef void clear(self) :  # nogil             # <<<<<<<<<<<<<<
 *         CharVector_clear(&self.vector)
 *         self.stream_index = 0
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_4__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.CharVectorInputStream.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_6__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21CharVectorInputStream_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.CharVectorInputStream.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":391
 *         Py_ssize_t ref_len
 * 
 *     def __cinit__(self, headers, fields):             # <<<<<<<<<<<<<<
 *         self.headers = headers
 *         self.fields = list(fields)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_headers = 0;
  PyObject *__pyx_v_fields = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_headers,&__pyx_n_s_fields,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_headers)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 391, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 391, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_headers = values[0];
    __pyx_v_fields = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 391, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFContext.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext___cinit__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_v_self), __pyx_v_headers, __pyx_v_fields);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self, PyObject *__pyx_v_headers, PyObject *__pyx_v_fields) {
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_v_group = NULL;
  PyObject *__pyx_v_name = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "variant_tools/io_vcf_read.pyx":392
 * 
 *     def __cinit__(self, headers, fields):
 *         self.headers = headers             # <<<<<<<<<<<<<<
 *         self.fields = list(fields)
 *         self.formats = list()
 */
  __Pyx_INCREF(__pyx_v_headers);
  __Pyx_GIVEREF(__pyx_v_headers);
  __Pyx_GOTREF(__pyx_v_self->headers);
  __Pyx_DECREF(__pyx_v_self->headers);
  __pyx_v_self->headers = __pyx_v_headers;

  /* "variant_tools/io_vcf_read.pyx":393
 *     def __cinit__(self, headers, fields):
 *         self.headers = headers
 *         self.fields = list(fields)             # <<<<<<<<<<<<<<
 *         self.formats = list()
 *         for f in fields:
 */
  __pyx_t_1 = PySequence_List(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->fields);
  __Pyx_DECREF(__pyx_v_self->fields);
  __pyx_v_self->fields = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":394
 *         self.headers = headers
 *         self.fields = list(fields)
 *         self.formats = list()             # <<<<<<<<<<<<<<
 *         for f in fields:
 *             group, name = f.split('/')
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->formats);
  __Pyx_DECREF(__pyx_v_self->formats);
  __pyx_v_self->formats = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":395
 *         self.fields = list(fields)
 *         self.formats = list()
 *         for f in fields:             # <<<<<<<<<<<<<<
 *             group, name = f.split('/')
 *             if group == 'calldata':
 */
  if (likely(PyList_CheckExact(__pyx_v_fields)) || PyTuple_CheckExact(__pyx_v_fields)) {
    __pyx_t_1 = __pyx_v_fields; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 395, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 395, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 395, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 395, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 395, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 395, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":396
 *         self.formats = list()
 *         for f in fields:
 *             group, name = f.split('/')             # <<<<<<<<<<<<<<
 *             if group == 'calldata':
 *                 self.formats.append(name)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_s__3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 396, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      #else
      __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 396, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 396, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
      index = 0; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(0, 396, __pyx_L1_error)
      __pyx_t_8 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 396, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_group, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "variant_tools/io_vcf_read.pyx":397
 *         for f in fields:
 *             group, name = f.split('/')
 *             if group == 'calldata':             # <<<<<<<<<<<<<<
 *                 self.formats.append(name)
 * 
 */
    __pyx_t_9 = (__Pyx_PyString_Equals(__pyx_v_group, __pyx_n_s_calldata, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 397, __pyx_L1_error)
    if (__pyx_t_9) {

      /* "variant_tools/io_vcf_read.pyx":398
 *             group, name = f.split('/')
 *             if group == 'calldata':
 *                 self.formats.append(name)             # <<<<<<<<<<<<<<
 * 
 *         # initialise dynamic state
 */
      if (unlikely(__pyx_v_self->formats == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
        __PYX_ERR(0, 398, __pyx_L1_error)
      }
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_self->formats, __pyx_v_name); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 398, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":397
 *         for f in fields:
 *             group, name = f.split('/')
 *             if group == 'calldata':             # <<<<<<<<<<<<<<
 *                 self.formats.append(name)
 * 
 */
    }

    /* "variant_tools/io_vcf_read.pyx":395
 *         self.fields = list(fields)
 *         self.formats = list()
 *         for f in fields:             # <<<<<<<<<<<<<<
 *             group, name = f.split('/')
 *             if group == 'calldata':
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":401
 * 
 *         # initialise dynamic state
 *         self.state = VCFState.CHROM             # <<<<<<<<<<<<<<
 *         self.variant_index = -1
 *         self.chunk_variant_index = -1
 */
  __pyx_v_self->state = __pyx_e_13variant_tools_11io_vcf_read_CHROM;

  /* "variant_tools/io_vcf_read.pyx":402
 *         # initialise dynamic state
 *         self.state = VCFState.CHROM
 *         self.variant_index = -1             # <<<<<<<<<<<<<<
 *         self.chunk_variant_index = -1
 *         self.sample_index = 0
 */
  __pyx_v_self->variant_index = -1L;

  /* "variant_tools/io_vcf_read.pyx":403
 *         self.state = VCFState.CHROM
 *         self.variant_index = -1
 *         self.chunk_variant_index = -1             # <<<<<<<<<<<<<<
 *         self.sample_index = 0
 *         self.sample_output_index = -1
 */
  __pyx_v_self->chunk_variant_index = -1L;

  /* "variant_tools/io_vcf_read.pyx":404
 *         self.variant_index = -1
 *         self.chunk_variant_index = -1
 *         self.sample_index = 0             # <<<<<<<<<<<<<<
 *         self.sample_output_index = -1
 *         self.sample_field_index = 0
 */
  __pyx_v_self->sample_index = 0;

  /* "variant_tools/io_vcf_read.pyx":405
 *         self.chunk_variant_index = -1
 *         self.sample_index = 0
 *         self.sample_output_index = -1             # <<<<<<<<<<<<<<
 *         self.sample_field_index = 0
 *         IntVector_init(&self.variant_format_indices, 2**6)
 */
  __pyx_v_self->sample_output_index = -1L;

  /* "variant_tools/io_vcf_read.pyx":406
 *         self.sample_index = 0
 *         self.sample_output_index = -1
 *         self.sample_field_index = 0             # <<<<<<<<<<<<<<
 *         IntVector_init(&self.variant_format_indices, 2**6)
 * 
 */
  __pyx_v_self->sample_field_index = 0;

  /* "variant_tools/io_vcf_read.pyx":407
 *         self.sample_output_index = -1
 *         self.sample_field_index = 0
 *         IntVector_init(&self.variant_format_indices, 2**6)             # <<<<<<<<<<<<<<
 * 
 *         # initialise temporary buffers
 */
  __pyx_f_13variant_tools_11io_vcf_read_IntVector_init((&__pyx_v_self->variant_format_indices), 64);

  /* "variant_tools/io_vcf_read.pyx":410
 * 
 *         # initialise temporary buffers
 *         CharVector_init(&self.temp, 2**6)             # <<<<<<<<<<<<<<
 *         CharVector_init(&self.info_key, 2**6)
 *         CharVector_init(&self.info_val, 2**6)
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_init((&__pyx_v_self->temp), 64);

  /* "variant_tools/io_vcf_read.pyx":411
 *         # initialise temporary buffers
 *         CharVector_init(&self.temp, 2**6)
 *         CharVector_init(&self.info_key, 2**6)             # <<<<<<<<<<<<<<
 *         CharVector_init(&self.info_val, 2**6)
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_init((&__pyx_v_self->info_key), 64);

  /* "variant_tools/io_vcf_read.pyx":412
 *         CharVector_init(&self.temp, 2**6)
 *         CharVector_init(&self.info_key, 2**6)
 *         CharVector_init(&self.info_val, 2**6)             # <<<<<<<<<<<<<<
 * 
 *         # initialise chrom and pos
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_init((&__pyx_v_self->info_val), 64);

  /* "variant_tools/io_vcf_read.pyx":415
 * 
 *         # initialise chrom and pos
 *         CharVector_init(&self.chrom, 2**6)             # <<<<<<<<<<<<<<
 *         self.pos = -1
 *         self.ref_len = 0
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_init((&__pyx_v_self->chrom), 64);

  /* "variant_tools/io_vcf_read.pyx":416
 *         # initialise chrom and pos
 *         CharVector_init(&self.chrom, 2**6)
 *         self.pos = -1             # <<<<<<<<<<<<<<
 *         self.ref_len = 0
 * 
 */
  __pyx_v_self->pos = -1L;

  /* "variant_tools/io_vcf_read.pyx":417
 *         CharVector_init(&self.chrom, 2**6)
 *         self.pos = -1
 *         self.ref_len = 0             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_v_self->ref_len = 0;

  /* "variant_tools/io_vcf_read.pyx":391
 *         Py_ssize_t ref_len
 * 
 *     def __cinit__(self, headers, fields):             # <<<<<<<<<<<<<<
 *         self.headers = headers
 *         self.fields = list(fields)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFContext.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_v_group);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":419
 *         self.ref_len = 0
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         IntVector_free(&self.variant_format_indices)
 *         CharVector_free(&self.temp)
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_2__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_2__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":420
 * 
 *     def __dealloc__(self):
 *         IntVector_free(&self.variant_format_indices)             # <<<<<<<<<<<<<<
 *         CharVector_free(&self.temp)
 *         CharVector_free(&self.info_key)
 */
  __pyx_f_13variant_tools_11io_vcf_read_IntVector_free((&__pyx_v_self->variant_format_indices));

  /* "variant_tools/io_vcf_read.pyx":421
 *     def __dealloc__(self):
 *         IntVector_free(&self.variant_format_indices)
 *         CharVector_free(&self.temp)             # <<<<<<<<<<<<<<
 *         CharVector_free(&self.info_key)
 *         CharVector_free(&self.info_val)
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_free((&__pyx_v_self->temp));

  /* "variant_tools/io_vcf_read.pyx":422
 *         IntVector_free(&self.variant_format_indices)
 *         CharVector_free(&self.temp)
 *         CharVector_free(&self.info_key)             # <<<<<<<<<<<<<<
 *         CharVector_free(&self.info_val)
 *         CharVector_free(&self.chrom)
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_free((&__pyx_v_self->info_key));

  /* "variant_tools/io_vcf_read.pyx":423
 *         CharVector_free(&self.temp)
 *         CharVector_free(&self.info_key)
 *         CharVector_free(&self.info_val)             # <<<<<<<<<<<<<<
 *         CharVector_free(&self.chrom)
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_free((&__pyx_v_self->info_val));

  /* "variant_tools/io_vcf_read.pyx":424
 *         CharVector_free(&self.info_key)
 *         CharVector_free(&self.info_val)
 *         CharVector_free(&self.chrom)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_free((&__pyx_v_self->chrom));

  /* "variant_tools/io_vcf_read.pyx":419
 *         self.ref_len = 0
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         IntVector_free(&self.variant_format_indices)
 *         CharVector_free(&self.temp)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_4__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFContext.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_6__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_10VCFContext_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFContext.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":427
 * 
 * 
 * def check_samples(loc_samples, headers):             # <<<<<<<<<<<<<<
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_1check_samples(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_1check_samples = {"check_samples", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_1check_samples, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_1check_samples(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_loc_samples = 0;
  PyObject *__pyx_v_headers = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("check_samples (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_loc_samples,&__pyx_n_s_headers,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_loc_samples)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_headers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("check_samples", 1, 2, 2, 1); __PYX_ERR(0, 427, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "check_samples") < 0)) __PYX_ERR(0, 427, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_loc_samples = values[0];
    __pyx_v_headers = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("check_samples", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 427, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.check_samples", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_check_samples(__pyx_self, __pyx_v_loc_samples, __pyx_v_headers);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_check_samples(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_loc_samples, PyObject *__pyx_v_headers) {
  Py_ssize_t __pyx_v_n_samples;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("check_samples", 0);
  __Pyx_INCREF(__pyx_v_loc_samples);

  /* "variant_tools/io_vcf_read.pyx":428
 * 
 * def check_samples(loc_samples, headers):
 *     n_samples = len(headers.samples)             # <<<<<<<<<<<<<<
 *     if loc_samples is None:
 *         loc_samples = np.ones(n_samples, dtype='u1')
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_headers, __pyx_n_s_samples); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_n_samples = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":429
 * def check_samples(loc_samples, headers):
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:             # <<<<<<<<<<<<<<
 *         loc_samples = np.ones(n_samples, dtype='u1')
 *     else:
 */
  __pyx_t_3 = (__pyx_v_loc_samples == Py_None);
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":430
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:
 *         loc_samples = np.ones(n_samples, dtype='u1')             # <<<<<<<<<<<<<<
 *     else:
 *         # assume samples is already a boolean indexing array
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ones); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_n_samples); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
    __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_n_s_u1) < 0) __PYX_ERR(0, 430, __pyx_L1_error)
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_loc_samples, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "variant_tools/io_vcf_read.pyx":429
 * def check_samples(loc_samples, headers):
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:             # <<<<<<<<<<<<<<
 *         loc_samples = np.ones(n_samples, dtype='u1')
 *     else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":433
 *     else:
 *         # assume samples is already a boolean indexing array
 *         loc_samples = loc_samples.view('u1')             # <<<<<<<<<<<<<<
 *         assert loc_samples.shape[0] == n_samples
 *     return loc_samples
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_loc_samples, __pyx_n_s_view); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_s_u1);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_loc_samples, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "variant_tools/io_vcf_read.pyx":434
 *         # assume samples is already a boolean indexing array
 *         loc_samples = loc_samples.view('u1')
 *         assert loc_samples.shape[0] == n_samples             # <<<<<<<<<<<<<<
 *     return loc_samples
 * 
 */
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(!Py_OptimizeFlag)) {
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_loc_samples, __pyx_n_s_shape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 434, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 434, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = PyInt_FromSsize_t(__pyx_v_n_samples); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 434, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = PyObject_RichCompare(__pyx_t_1, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 434, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 434, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) {
        PyErr_SetNone(PyExc_AssertionError);
        __PYX_ERR(0, 434, __pyx_L1_error)
      }
    }
    #endif
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":435
 *         loc_samples = loc_samples.view('u1')
 *         assert loc_samples.shape[0] == n_samples
 *     return loc_samples             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_loc_samples);
  __pyx_r = __pyx_v_loc_samples;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":427
 * 
 * 
 * def check_samples(loc_samples, headers):             # <<<<<<<<<<<<<<
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.check_samples", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_loc_samples);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":445
 *         VCFParser parser
 * 
 *     def __init__(self,             # <<<<<<<<<<<<<<
 *                  InputStreamBase stream,
 *                  chunk_length,
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_headers = 0;
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_fills = 0;
  PyObject *__pyx_v_region = 0;
  PyObject *__pyx_v_loc_samples = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_chunk_length,&__pyx_n_s_headers,&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_fills,&__pyx_n_s_region,&__pyx_n_s_loc_samples,0};
    PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stream)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 1); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_headers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 2); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 3); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 4); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 5); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 6); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_region)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 7); __PYX_ERR(0, 445, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_loc_samples)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 8); __PYX_ERR(0, 445, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 445, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
      values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
      values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
    }
    __pyx_v_stream = ((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)values[0]);
    __pyx_v_chunk_length = values[1];
    __pyx_v_headers = values[2];
    __pyx_v_fields = values[3];
    __pyx_v_types = values[4];
    __pyx_v_numbers = values[5];
    __pyx_v_fills = values[6];
    __pyx_v_region = values[7];
    __pyx_v_loc_samples = values[8];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 445, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChunkIterator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_stream), __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase, 1, "stream", 0))) __PYX_ERR(0, 446, __pyx_L1_error)
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)__pyx_v_self), __pyx_v_stream, __pyx_v_chunk_length, __pyx_v_headers, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills, __pyx_v_region, __pyx_v_loc_samples);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_headers, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_fills, PyObject *__pyx_v_region, PyObject *__pyx_v_loc_samples) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_fields);
  __Pyx_INCREF(__pyx_v_loc_samples);

  /* "variant_tools/io_vcf_read.pyx":457
 * 
 *         # store reference to input stream
 *         self.stream = stream             # <<<<<<<<<<<<<<
 * 
 *         # setup context
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_stream));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_stream));
  __Pyx_GOTREF(__pyx_v_self->stream);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->stream));
  __pyx_v_self->stream = __pyx_v_stream;

  /* "variant_tools/io_vcf_read.pyx":460
 * 
 *         # setup context
 *         fields = sorted(fields)             # <<<<<<<<<<<<<<
 *         self.context = VCFContext(headers, fields)
 * 
 */
  __pyx_t_2 = PySequence_List(__pyx_v_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_3 = PyList_Sort(__pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_DECREF_SET(__pyx_v_fields, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":461
 *         # setup context
 *         fields = sorted(fields)
 *         self.context = VCFContext(headers, fields)             # <<<<<<<<<<<<<<
 * 
 *         # setup parser
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_headers);
  __Pyx_GIVEREF(__pyx_v_headers);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_headers);
  __Pyx_INCREF(__pyx_v_fields);
  __Pyx_GIVEREF(__pyx_v_fields);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_fields);
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFContext), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->context);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->context));
  __pyx_v_self->context = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":464
 * 
 *         # setup parser
 *         loc_samples = check_samples(loc_samples, headers)             # <<<<<<<<<<<<<<
 * 
 *         self.parser = VCFParser(fields=fields, types=types, numbers=numbers,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_check_samples); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_loc_samples, __pyx_v_headers};
    __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 464, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_2);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_loc_samples, __pyx_v_headers};
    __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 464, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_2);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_4) {
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
    }
    __Pyx_INCREF(__pyx_v_loc_samples);
    __Pyx_GIVEREF(__pyx_v_loc_samples);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_loc_samples);
    __Pyx_INCREF(__pyx_v_headers);
    __Pyx_GIVEREF(__pyx_v_headers);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_headers);
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_loc_samples, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":466
 *         loc_samples = check_samples(loc_samples, headers)
 * 
 *         self.parser = VCFParser(fields=fields, types=types, numbers=numbers,             # <<<<<<<<<<<<<<
 *                                 chunk_length=chunk_length, loc_samples=loc_samples,
 *                                 fills=fills, region=region)
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fields, __pyx_v_fields) < 0) __PYX_ERR(0, 466, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_types, __pyx_v_types) < 0) __PYX_ERR(0, 466, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_numbers, __pyx_v_numbers) < 0) __PYX_ERR(0, 466, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":467
 * 
 *         self.parser = VCFParser(fields=fields, types=types, numbers=numbers,
 *                                 chunk_length=chunk_length, loc_samples=loc_samples,             # <<<<<<<<<<<<<<
 *                                 fills=fills, region=region)
 * 
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 466, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loc_samples, __pyx_v_loc_samples) < 0) __PYX_ERR(0, 466, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":468
 *         self.parser = VCFParser(fields=fields, types=types, numbers=numbers,
 *                                 chunk_length=chunk_length, loc_samples=loc_samples,
 *                                 fills=fills, region=region)             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fills, __pyx_v_fills) < 0) __PYX_ERR(0, 466, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_region, __pyx_v_region) < 0) __PYX_ERR(0, 466, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":466
 *         loc_samples = check_samples(loc_samples, headers)
 * 
 *         self.parser = VCFParser(fields=fields, types=types, numbers=numbers,             # <<<<<<<<<<<<<<
 *                                 chunk_length=chunk_length, loc_samples=loc_samples,
 *                                 fills=fills, region=region)
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->parser));
  __pyx_v_self->parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":445
 *         VCFParser parser
 * 
 *     def __init__(self,             # <<<<<<<<<<<<<<
 *                  InputStreamBase stream,
 *                  chunk_length,
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChunkIterator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_fields);
  __Pyx_XDECREF(__pyx_v_loc_samples);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":470
 *                                 fills=fills, region=region)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_3__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_3__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_2__iter__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_2__iter__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "variant_tools/io_vcf_read.pyx":471
 * 
 *     def __iter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __next__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":470
 *                                 fills=fills, region=region)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":473
 *         return self
 * 
 *     def __next__(self):             # <<<<<<<<<<<<<<
 * 
 *         if self.context.state == VCFState.EOF:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_5__next__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_5__next__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__next__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_4__next__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_4__next__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self) {
  Py_ssize_t __pyx_v_chunk_length;
  PyObject *__pyx_v_chunk = NULL;
  PyObject *__pyx_v_chrom = NULL;
  long __pyx_v_pos;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  long __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__next__", 0);

  /* "variant_tools/io_vcf_read.pyx":475
 *     def __next__(self):
 * 
 *         if self.context.state == VCFState.EOF:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->context->state == __pyx_e_13variant_tools_11io_vcf_read_EOF) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "variant_tools/io_vcf_read.pyx":476
 * 
 *         if self.context.state == VCFState.EOF:
 *             raise StopIteration             # <<<<<<<<<<<<<<
 * 
 *         # reset indices
 */
    __Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
    __PYX_ERR(0, 476, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":475
 *     def __next__(self):
 * 
 *         if self.context.state == VCFState.EOF:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":479
 * 
 *         # reset indices
 *         self.context.chunk_variant_index = -1             # <<<<<<<<<<<<<<
 * 
 *         # allocate arrays for next chunk
 */
  __pyx_v_self->context->chunk_variant_index = -1L;

  /* "variant_tools/io_vcf_read.pyx":482
 * 
 *         # allocate arrays for next chunk
 *         self.parser.malloc_chunk()             # <<<<<<<<<<<<<<
 * 
 *         # parse next chunk
 */
  __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self->parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->parser); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 482, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":485
 * 
 *         # parse next chunk
 *         self.parser.parse(self.stream, self.context)             # <<<<<<<<<<<<<<
 * 
 *         # get the chunk
 */
  __pyx_t_3 = ((PyObject *)__pyx_v_self->stream);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = ((PyObject *)__pyx_v_self->context);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self->parser->__pyx_vtab)->parse(__pyx_v_self->parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_t_3), ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_t_4)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 485, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":488
 * 
 *         # get the chunk
 *         chunk_length = self.context.chunk_variant_index + 1             # <<<<<<<<<<<<<<
 *         chunk = self.parser.make_chunk(chunk_length)
 * 
 */
  __pyx_v_chunk_length = (__pyx_v_self->context->chunk_variant_index + 1);

  /* "variant_tools/io_vcf_read.pyx":489
 *         # get the chunk
 *         chunk_length = self.context.chunk_variant_index + 1
 *         chunk = self.parser.make_chunk(chunk_length)             # <<<<<<<<<<<<<<
 * 
 *         if chunk is None:
 */
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_chunk_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self->parser->__pyx_vtab)->make_chunk(__pyx_v_self->parser, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_chunk = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":491
 *         chunk = self.parser.make_chunk(chunk_length)
 * 
 *         if chunk is None:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 * 
 */
  __pyx_t_1 = (__pyx_v_chunk == Py_None);
  __pyx_t_5 = (__pyx_t_1 != 0);
  if (unlikely(__pyx_t_5)) {

    /* "variant_tools/io_vcf_read.pyx":492
 * 
 *         if chunk is None:
 *             raise StopIteration             # <<<<<<<<<<<<<<
 * 
 *         chrom = CharVector_to_pybytes(&self.context.chrom)
 */
    __Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
    __PYX_ERR(0, 492, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":491
 *         chunk = self.parser.make_chunk(chunk_length)
 * 
 *         if chunk is None:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":494
 *             raise StopIteration
 * 
 *         chrom = CharVector_to_pybytes(&self.context.chrom)             # <<<<<<<<<<<<<<
 *         pos = self.context.pos
 *         return chunk, chunk_length, chrom, pos
 */
  __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pybytes((&__pyx_v_self->context->chrom)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_chrom = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":495
 * 
 *         chrom = CharVector_to_pybytes(&self.context.chrom)
 *         pos = self.context.pos             # <<<<<<<<<<<<<<
 *         return chunk, chunk_length, chrom, pos
 * 
 */
  __pyx_t_6 = __pyx_v_self->context->pos;
  __pyx_v_pos = __pyx_t_6;

  /* "variant_tools/io_vcf_read.pyx":496
 *         chrom = CharVector_to_pybytes(&self.context.chrom)
 *         pos = self.context.pos
 *         return chunk, chunk_length, chrom, pos             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_chunk_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_From_long(__pyx_v_pos); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_INCREF(__pyx_v_chunk);
  __Pyx_GIVEREF(__pyx_v_chunk);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_chunk);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3);
  __Pyx_INCREF(__pyx_v_chrom);
  __Pyx_GIVEREF(__pyx_v_chrom);
  PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_chrom);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":473
 *         return self
 * 
 *     def __next__(self):             # <<<<<<<<<<<<<<
 * 
 *         if self.context.state == VCFState.EOF:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChunkIterator.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_chunk);
  __Pyx_XDECREF(__pyx_v_chrom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_6__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_6__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.context, self.parser, self.stream)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->context));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->context));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self->context));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->parser));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self->parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->stream));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->stream));
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_v_self->stream));
  __pyx_v_state = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.context, self.parser, self.stream)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v__dict = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":7
 *     state = (self.context, self.parser, self.stream)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_2 = (__pyx_v__dict != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.context is not None or self.parser is not None or self.stream is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.context, self.parser, self.stream)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.context is not None or self.parser is not None or self.stream is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, None), state
 */
  /*else*/ {
    __pyx_t_2 = (((PyObject *)__pyx_v_self->context) != Py_None);
    __pyx_t_5 = (__pyx_t_2 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_3 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (((PyObject *)__pyx_v_self->parser) != Py_None);
    __pyx_t_2 = (__pyx_t_5 != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_3 = __pyx_t_2;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_2 = (((PyObject *)__pyx_v_self->stream) != Py_None);
    __pyx_t_5 = (__pyx_t_2 != 0);
    __pyx_t_3 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_3;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.context is not None or self.parser is not None or self.stream is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, None), state
 *     else:
 */
  __pyx_t_3 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_3) {

    /* "(tree fragment)":13
 *         use_setstate = self.context is not None or self.parser is not None or self.stream is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFChunkIterator); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_118541506);
    __Pyx_GIVEREF(__pyx_int_118541506);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_118541506);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.context is not None or self.parser is not None or self.stream is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, None), state
 *     else:
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFChunkIterator__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pyx_unpickle_VCFChunkIterator); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_118541506);
    __Pyx_GIVEREF(__pyx_int_118541506);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_118541506);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __pyx_t_6 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChunkIterator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFChunkIterator__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_8__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16VCFChunkIterator_8__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFChunkIterator__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChunkIterator__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFChunkIterator, (type(self), 0x710ccc2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFChunkIterator__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChunkIterator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":517
 *         Py_ssize_t region_end
 * 
 *     def __init__(self, fields, types, numbers, chunk_length, loc_samples, fills, region):             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_loc_samples = 0;
  PyObject *__pyx_v_fills = 0;
  PyObject *__pyx_v_region = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_chunk_length,&__pyx_n_s_loc_samples,&__pyx_n_s_fills,&__pyx_n_s_region,0};
    PyObject* values[7] = {0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 1); __PYX_ERR(0, 517, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 2); __PYX_ERR(0, 517, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 3); __PYX_ERR(0, 517, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_loc_samples)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 4); __PYX_ERR(0, 517, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 5); __PYX_ERR(0, 517, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_region)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 6); __PYX_ERR(0, 517, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 517, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_chunk_length = values[3];
    __pyx_v_loc_samples = values[4];
    __pyx_v_fills = values[5];
    __pyx_v_region = values[6];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 517, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_chunk_length, __pyx_v_loc_samples, __pyx_v_fills, __pyx_v_region);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_loc_samples, PyObject *__pyx_v_fills, PyObject *__pyx_v_region) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":518
 * 
 *     def __init__(self, fields, types, numbers, chunk_length, loc_samples, fills, region):
 *         self.chunk_length = chunk_length             # <<<<<<<<<<<<<<
 *         self.loc_samples = loc_samples
 * 
 */
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_chunk_length); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 518, __pyx_L1_error)
  __pyx_v_self->chunk_length = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":519
 *     def __init__(self, fields, types, numbers, chunk_length, loc_samples, fills, region):
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples             # <<<<<<<<<<<<<<
 * 
 *         # handle region
 */
  __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_v_loc_samples, PyBUF_WRITABLE); if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(0, 519, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->loc_samples, 0);
  __pyx_v_self->loc_samples = __pyx_t_2;
  __pyx_t_2.memview = NULL;
  __pyx_t_2.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":522
 * 
 *         # handle region
 *         self._init_region(region)             # <<<<<<<<<<<<<<
 * 
 *         # setup parsers
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_region); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_region) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_region);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":525
 * 
 *         # setup parsers
 *         self._init_chrom_pos(fields, types)             # <<<<<<<<<<<<<<
 *         self._init_id(fields, types)
 *         self._init_ref(fields, types)
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_chrom_pos); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 525, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 525, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_types);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":526
 *         # setup parsers
 *         self._init_chrom_pos(fields, types)
 *         self._init_id(fields, types)             # <<<<<<<<<<<<<<
 *         self._init_ref(fields, types)
 *         self._init_alt(fields, types, numbers)
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_fields, __pyx_v_types};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_fields, __pyx_v_types};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_7) {
      __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_v_types);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":527
 *         self._init_chrom_pos(fields, types)
 *         self._init_id(fields, types)
 *         self._init_ref(fields, types)             # <<<<<<<<<<<<<<
 *         self._init_alt(fields, types, numbers)
 *         self._init_qual(fields, types, fills)
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_ref); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 527, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 527, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_types);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":528
 *         self._init_id(fields, types)
 *         self._init_ref(fields, types)
 *         self._init_alt(fields, types, numbers)             # <<<<<<<<<<<<<<
 *         self._init_qual(fields, types, fills)
 *         self._init_filter(fields)
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_alt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 528, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 528, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_7) {
      __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_v_types);
    __Pyx_INCREF(__pyx_v_numbers);
    __Pyx_GIVEREF(__pyx_v_numbers);
    PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_6, __pyx_v_numbers);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":529
 *         self._init_ref(fields, types)
 *         self._init_alt(fields, types, numbers)
 *         self._init_qual(fields, types, fills)             # <<<<<<<<<<<<<<
 *         self._init_filter(fields)
 *         self._init_info(fields, types, numbers, fills)
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_qual); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types, __pyx_v_fills};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types, __pyx_v_fills};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_types);
    __Pyx_INCREF(__pyx_v_fills);
    __Pyx_GIVEREF(__pyx_v_fills);
    PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_fills);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":530
 *         self._init_alt(fields, types, numbers)
 *         self._init_qual(fields, types, fills)
 *         self._init_filter(fields)             # <<<<<<<<<<<<<<
 *         self._init_info(fields, types, numbers, fills)
 *         self._init_format_calldata(fields, types, numbers, fills)
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_filter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_7, __pyx_v_fields) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_fields);
  __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":531
 *         self._init_qual(fields, types, fills)
 *         self._init_filter(fields)
 *         self._init_info(fields, types, numbers, fills)             # <<<<<<<<<<<<<<
 *         self._init_format_calldata(fields, types, numbers, fills)
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_info); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[5] = {__pyx_t_7, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[5] = {__pyx_t_7, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_7) {
      __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_v_types);
    __Pyx_INCREF(__pyx_v_numbers);
    __Pyx_GIVEREF(__pyx_v_numbers);
    PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_6, __pyx_v_numbers);
    __Pyx_INCREF(__pyx_v_fills);
    __Pyx_GIVEREF(__pyx_v_fills);
    PyTuple_SET_ITEM(__pyx_t_5, 3+__pyx_t_6, __pyx_v_fills);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":532
 *         self._init_filter(fields)
 *         self._init_info(fields, types, numbers, fills)
 *         self._init_format_calldata(fields, types, numbers, fills)             # <<<<<<<<<<<<<<
 * 
 *         if fields:
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_init_format_calldata); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_INCREF(__pyx_v_fields);
    __Pyx_GIVEREF(__pyx_v_fields);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_types);
    __Pyx_INCREF(__pyx_v_numbers);
    __Pyx_GIVEREF(__pyx_v_numbers);
    PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_numbers);
    __Pyx_INCREF(__pyx_v_fills);
    __Pyx_GIVEREF(__pyx_v_fills);
    PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_v_fills);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":534
 *         self._init_format_calldata(fields, types, numbers, fills)
 * 
 *         if fields:             # <<<<<<<<<<<<<<
 *             # shouldn't ever be any left over
 *             raise RuntimeError('unexpected fields left over: %r' % set(fields))
 */
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_fields); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 534, __pyx_L1_error)
  if (unlikely(__pyx_t_8)) {

    /* "variant_tools/io_vcf_read.pyx":536
 *         if fields:
 *             # shouldn't ever be any left over
 *             raise RuntimeError('unexpected fields left over: %r' % set(fields))             # <<<<<<<<<<<<<<
 * 
 *     def _init_region(self, region):
 */
    __pyx_t_3 = PySet_New(__pyx_v_fields); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_unexpected_fields_left_over_r, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 536, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":534
 *         self._init_format_calldata(fields, types, numbers, fills)
 * 
 *         if fields:             # <<<<<<<<<<<<<<
 *             # shouldn't ever be any left over
 *             raise RuntimeError('unexpected fields left over: %r' % set(fields))
 */
  }

  /* "variant_tools/io_vcf_read.pyx":517
 *         Py_ssize_t region_end
 * 
 *     def __init__(self, fields, types, numbers, chunk_length, loc_samples, fills, region):             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":538
 *             raise RuntimeError('unexpected fields left over: %r' % set(fields))
 * 
 *     def _init_region(self, region):             # <<<<<<<<<<<<<<
 *         self.region_chrom = b''
 *         self.region_begin = 0
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_3_init_region(PyObject *__pyx_v_self, PyObject *__pyx_v_region); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_3_init_region(PyObject *__pyx_v_self, PyObject *__pyx_v_region) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_region (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_2_init_region(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), ((PyObject *)__pyx_v_region));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_2_init_region(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_region) {
  PyObject *__pyx_v_tokens = NULL;
  PyObject *__pyx_v_range_tokens = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("_init_region", 0);

  /* "variant_tools/io_vcf_read.pyx":539
 * 
 *     def _init_region(self, region):
 *         self.region_chrom = b''             # <<<<<<<<<<<<<<
 *         self.region_begin = 0
 *         self.region_end = 0
 */
  __Pyx_INCREF(__pyx_kp_b__6);
  __Pyx_GIVEREF(__pyx_kp_b__6);
  __Pyx_GOTREF(__pyx_v_self->region_chrom);
  __Pyx_DECREF(__pyx_v_self->region_chrom);
  __pyx_v_self->region_chrom = __pyx_kp_b__6;

  /* "variant_tools/io_vcf_read.pyx":540
 *     def _init_region(self, region):
 *         self.region_chrom = b''
 *         self.region_begin = 0             # <<<<<<<<<<<<<<
 *         self.region_end = 0
 *         if region is not None:
 */
  __pyx_v_self->region_begin = 0;

  /* "variant_tools/io_vcf_read.pyx":541
 *         self.region_chrom = b''
 *         self.region_begin = 0
 *         self.region_end = 0             # <<<<<<<<<<<<<<
 *         if region is not None:
 *             tokens = region.split(':')
 */
  __pyx_v_self->region_end = 0;

  /* "variant_tools/io_vcf_read.pyx":542
 *         self.region_begin = 0
 *         self.region_end = 0
 *         if region is not None:             # <<<<<<<<<<<<<<
 *             tokens = region.split(':')
 *             if len(tokens) == 0:
 */
  __pyx_t_1 = (__pyx_v_region != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":543
 *         self.region_end = 0
 *         if region is not None:
 *             tokens = region.split(':')             # <<<<<<<<<<<<<<
 *             if len(tokens) == 0:
 *                 raise ValueError('bad region string: %r' % region)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_region, __pyx_n_s_split); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s__7) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s__7);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_tokens = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":544
 *         if region is not None:
 *             tokens = region.split(':')
 *             if len(tokens) == 0:             # <<<<<<<<<<<<<<
 *                 raise ValueError('bad region string: %r' % region)
 *             if PY2:
 */
    __pyx_t_6 = PyObject_Length(__pyx_v_tokens); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 544, __pyx_L1_error)
    __pyx_t_2 = ((__pyx_t_6 == 0) != 0);
    if (unlikely(__pyx_t_2)) {

      /* "variant_tools/io_vcf_read.pyx":545
 *             tokens = region.split(':')
 *             if len(tokens) == 0:
 *                 raise ValueError('bad region string: %r' % region)             # <<<<<<<<<<<<<<
 *             if PY2:
 *                 self.region_chrom = tokens[0]
 */
      __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_bad_region_string_r, __pyx_v_region); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 545, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 545, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 545, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":544
 *         if region is not None:
 *             tokens = region.split(':')
 *             if len(tokens) == 0:             # <<<<<<<<<<<<<<
 *                 raise ValueError('bad region string: %r' % region)
 *             if PY2:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":546
 *             if len(tokens) == 0:
 *                 raise ValueError('bad region string: %r' % region)
 *             if PY2:             # <<<<<<<<<<<<<<
 *                 self.region_chrom = tokens[0]
 *             else:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_PY2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 546, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 546, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":547
 *                 raise ValueError('bad region string: %r' % region)
 *             if PY2:
 *                 self.region_chrom = tokens[0]             # <<<<<<<<<<<<<<
 *             else:
 *                 self.region_chrom = tokens[0].encode('ascii')
 */
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_tokens, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 547, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 547, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_4);
      __Pyx_GOTREF(__pyx_v_self->region_chrom);
      __Pyx_DECREF(__pyx_v_self->region_chrom);
      __pyx_v_self->region_chrom = ((PyObject*)__pyx_t_4);
      __pyx_t_4 = 0;

      /* "variant_tools/io_vcf_read.pyx":546
 *             if len(tokens) == 0:
 *                 raise ValueError('bad region string: %r' % region)
 *             if PY2:             # <<<<<<<<<<<<<<
 *                 self.region_chrom = tokens[0]
 *             else:
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":549
 *                 self.region_chrom = tokens[0]
 *             else:
 *                 self.region_chrom = tokens[0].encode('ascii')             # <<<<<<<<<<<<<<
 *             if len(tokens) > 1:
 *                 range_tokens = tokens[1].split('-')
 */
    /*else*/ {
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_tokens, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 549, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_3, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ascii);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 549, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 549, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_4);
      __Pyx_GOTREF(__pyx_v_self->region_chrom);
      __Pyx_DECREF(__pyx_v_self->region_chrom);
      __pyx_v_self->region_chrom = ((PyObject*)__pyx_t_4);
      __pyx_t_4 = 0;
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":550
 *             else:
 *                 self.region_chrom = tokens[0].encode('ascii')
 *             if len(tokens) > 1:             # <<<<<<<<<<<<<<
 *                 range_tokens = tokens[1].split('-')
 *                 if len(range_tokens) != 2:
 */
    __pyx_t_6 = PyObject_Length(__pyx_v_tokens); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 550, __pyx_L1_error)
    __pyx_t_2 = ((__pyx_t_6 > 1) != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":551
 *                 self.region_chrom = tokens[0].encode('ascii')
 *             if len(tokens) > 1:
 *                 range_tokens = tokens[1].split('-')             # <<<<<<<<<<<<<<
 *                 if len(range_tokens) != 2:
 *                     raise ValueError('bad region string: %r' % region)
 */
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_tokens, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 551, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 551, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_kp_s__8) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s__8);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 551, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_range_tokens = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "variant_tools/io_vcf_read.pyx":552
 *             if len(tokens) > 1:
 *                 range_tokens = tokens[1].split('-')
 *                 if len(range_tokens) != 2:             # <<<<<<<<<<<<<<
 *                     raise ValueError('bad region string: %r' % region)
 *                 self.region_begin = int(range_tokens[0])
 */
      __pyx_t_6 = PyObject_Length(__pyx_v_range_tokens); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 552, __pyx_L1_error)
      __pyx_t_2 = ((__pyx_t_6 != 2) != 0);
      if (unlikely(__pyx_t_2)) {

        /* "variant_tools/io_vcf_read.pyx":553
 *                 range_tokens = tokens[1].split('-')
 *                 if len(range_tokens) != 2:
 *                     raise ValueError('bad region string: %r' % region)             # <<<<<<<<<<<<<<
 *                 self.region_begin = int(range_tokens[0])
 *                 self.region_end = int(range_tokens[1])
 */
        __pyx_t_4 = __Pyx_PyString_FormatSafe(__pyx_kp_s_bad_region_string_r, __pyx_v_region); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 553, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 553, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 553, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":552
 *             if len(tokens) > 1:
 *                 range_tokens = tokens[1].split('-')
 *                 if len(range_tokens) != 2:             # <<<<<<<<<<<<<<
 *                     raise ValueError('bad region string: %r' % region)
 *                 self.region_begin = int(range_tokens[0])
 */
      }

      /* "variant_tools/io_vcf_read.pyx":554
 *                 if len(range_tokens) != 2:
 *                     raise ValueError('bad region string: %r' % region)
 *                 self.region_begin = int(range_tokens[0])             # <<<<<<<<<<<<<<
 *                 self.region_end = int(range_tokens[1])
 * 
 */
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_range_tokens, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_v_self->region_begin = __pyx_t_6;

      /* "variant_tools/io_vcf_read.pyx":555
 *                     raise ValueError('bad region string: %r' % region)
 *                 self.region_begin = int(range_tokens[0])
 *                 self.region_end = int(range_tokens[1])             # <<<<<<<<<<<<<<
 * 
 *     def _init_chrom_pos(self, fields, types):
 */
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_range_tokens, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 555, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 555, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_self->region_end = __pyx_t_6;

      /* "variant_tools/io_vcf_read.pyx":550
 *             else:
 *                 self.region_chrom = tokens[0].encode('ascii')
 *             if len(tokens) > 1:             # <<<<<<<<<<<<<<
 *                 range_tokens = tokens[1].split('-')
 *                 if len(range_tokens) != 2:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":542
 *         self.region_begin = 0
 *         self.region_end = 0
 *         if region is not None:             # <<<<<<<<<<<<<<
 *             tokens = region.split(':')
 *             if len(tokens) == 0:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":538
 *             raise RuntimeError('unexpected fields left over: %r' % set(fields))
 * 
 *     def _init_region(self, region):             # <<<<<<<<<<<<<<
 *         self.region_chrom = b''
 *         self.region_begin = 0
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_region", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tokens);
  __Pyx_XDECREF(__pyx_v_range_tokens);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":557
 *                 self.region_end = int(range_tokens[1])
 * 
 *     def _init_chrom_pos(self, fields, types):             # <<<<<<<<<<<<<<
 *         """Setup CHROM and POS parser."""
 *         kwds = dict(dtype=None, chunk_length=self.chunk_length,
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_5_init_chrom_pos(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_4_init_chrom_pos[] = "Setup CHROM and POS parser.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_5_init_chrom_pos(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_chrom_pos (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_chrom_pos", 1, 2, 2, 1); __PYX_ERR(0, 557, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_chrom_pos") < 0)) __PYX_ERR(0, 557, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_chrom_pos", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 557, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_chrom_pos", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_4_init_chrom_pos(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_4_init_chrom_pos(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types) {
  PyObject *__pyx_v_kwds = NULL;
  PyObject *__pyx_v_t = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_chrom_pos_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("_init_chrom_pos", 0);

  /* "variant_tools/io_vcf_read.pyx":559
 *     def _init_chrom_pos(self, fields, types):
 *         """Setup CHROM and POS parser."""
 *         kwds = dict(dtype=None, chunk_length=self.chunk_length,             # <<<<<<<<<<<<<<
 *                     region_chrom=self.region_chrom, region_begin=self.region_begin,
 *                     region_end=self.region_end, store_chrom=False, store_pos=False)
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, Py_None) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_chunk_length, __pyx_t_2) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":560
 *         """Setup CHROM and POS parser."""
 *         kwds = dict(dtype=None, chunk_length=self.chunk_length,
 *                     region_chrom=self.region_chrom, region_begin=self.region_begin,             # <<<<<<<<<<<<<<
 *                     region_end=self.region_end, store_chrom=False, store_pos=False)
 * 
 */
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_region_chrom, __pyx_v_self->region_chrom) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->region_begin); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_region_begin, __pyx_t_2) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":561
 *         kwds = dict(dtype=None, chunk_length=self.chunk_length,
 *                     region_chrom=self.region_chrom, region_begin=self.region_begin,
 *                     region_end=self.region_end, store_chrom=False, store_pos=False)             # <<<<<<<<<<<<<<
 * 
 *         if CHROM_FIELD in fields:
 */
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->region_end); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_region_end, __pyx_t_2) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store_chrom, Py_False) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store_pos, Py_False) < 0) __PYX_ERR(0, 559, __pyx_L1_error)
  __pyx_v_kwds = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":563
 *                     region_end=self.region_end, store_chrom=False, store_pos=False)
 * 
 *         if CHROM_FIELD in fields:             # <<<<<<<<<<<<<<
 *             kwds['dtype'] = types[CHROM_FIELD]
 *             kwds['store_chrom'] = True
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CHROM_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 563, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":564
 * 
 *         if CHROM_FIELD in fields:
 *             kwds['dtype'] = types[CHROM_FIELD]             # <<<<<<<<<<<<<<
 *             kwds['store_chrom'] = True
 *             fields.remove(CHROM_FIELD)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CHROM_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(PyDict_SetItem(__pyx_v_kwds, __pyx_n_s_dtype, __pyx_t_2) < 0)) __PYX_ERR(0, 564, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":565
 *         if CHROM_FIELD in fields:
 *             kwds['dtype'] = types[CHROM_FIELD]
 *             kwds['store_chrom'] = True             # <<<<<<<<<<<<<<
 *             fields.remove(CHROM_FIELD)
 * 
 */
    if (unlikely(PyDict_SetItem(__pyx_v_kwds, __pyx_n_s_store_chrom, Py_True) < 0)) __PYX_ERR(0, 565, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":566
 *             kwds['dtype'] = types[CHROM_FIELD]
 *             kwds['store_chrom'] = True
 *             fields.remove(CHROM_FIELD)             # <<<<<<<<<<<<<<
 * 
 *         if POS_FIELD in fields:
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_CHROM_FIELD); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":563
 *                     region_end=self.region_end, store_chrom=False, store_pos=False)
 * 
 *         if CHROM_FIELD in fields:             # <<<<<<<<<<<<<<
 *             kwds['dtype'] = types[CHROM_FIELD]
 *             kwds['store_chrom'] = True
 */
  }

  /* "variant_tools/io_vcf_read.pyx":568
 *             fields.remove(CHROM_FIELD)
 * 
 *         if POS_FIELD in fields:             # <<<<<<<<<<<<<<
 *             if POS_FIELD in types:
 *                 t = types[POS_FIELD]
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_t_2, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = (__pyx_t_4 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":569
 * 
 *         if POS_FIELD in fields:
 *             if POS_FIELD in types:             # <<<<<<<<<<<<<<
 *                 t = types[POS_FIELD]
 *                 if t != np.dtype('int32'):
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_2, __pyx_v_types, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 569, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":570
 *         if POS_FIELD in fields:
 *             if POS_FIELD in types:
 *                 t = types[POS_FIELD]             # <<<<<<<<<<<<<<
 *                 if t != np.dtype('int32'):
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 570, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 570, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_t = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":571
 *             if POS_FIELD in types:
 *                 t = types[POS_FIELD]
 *                 if t != np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)
 *             kwds['store_pos'] = True
 */
      __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyObject_RichCompare(__pyx_v_t, __pyx_t_1, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_4) {

        /* "variant_tools/io_vcf_read.pyx":572
 *                 t = types[POS_FIELD]
 *                 if t != np.dtype('int32'):
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)             # <<<<<<<<<<<<<<
 *             kwds['store_pos'] = True
 *             fields.remove(POS_FIELD)
 */
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_warnings); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_warn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_only_int32_supported_for_POS_fie, __pyx_v_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1);
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":571
 *             if POS_FIELD in types:
 *                 t = types[POS_FIELD]
 *                 if t != np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)
 *             kwds['store_pos'] = True
 */
      }

      /* "variant_tools/io_vcf_read.pyx":569
 * 
 *         if POS_FIELD in fields:
 *             if POS_FIELD in types:             # <<<<<<<<<<<<<<
 *                 t = types[POS_FIELD]
 *                 if t != np.dtype('int32'):
 */
    }

    /* "variant_tools/io_vcf_read.pyx":573
 *                 if t != np.dtype('int32'):
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)
 *             kwds['store_pos'] = True             # <<<<<<<<<<<<<<
 *             fields.remove(POS_FIELD)
 * 
 */
    if (unlikely(PyDict_SetItem(__pyx_v_kwds, __pyx_n_s_store_pos, Py_True) < 0)) __PYX_ERR(0, 573, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":574
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)
 *             kwds['store_pos'] = True
 *             fields.remove(POS_FIELD)             # <<<<<<<<<<<<<<
 * 
 *         chrom_pos_parser = VCFChromPosParser(**kwds)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_POS_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":568
 *             fields.remove(CHROM_FIELD)
 * 
 *         if POS_FIELD in fields:             # <<<<<<<<<<<<<<
 *             if POS_FIELD in types:
 *                 t = types[POS_FIELD]
 */
  }

  /* "variant_tools/io_vcf_read.pyx":576
 *             fields.remove(POS_FIELD)
 * 
 *         chrom_pos_parser = VCFChromPosParser(**kwds)             # <<<<<<<<<<<<<<
 *         chrom_pos_parser.malloc_chunk()
 *         self.chrom_pos_parser = chrom_pos_parser
 */
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser), __pyx_empty_tuple, __pyx_v_kwds); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 576, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_chrom_pos_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":577
 * 
 *         chrom_pos_parser = VCFChromPosParser(**kwds)
 *         chrom_pos_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.chrom_pos_parser = chrom_pos_parser
 * 
 */
  __pyx_t_7 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFChromPosParser *)__pyx_v_chrom_pos_parser->__pyx_base.__pyx_vtab)->__pyx_base.malloc_chunk(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_chrom_pos_parser)); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 577, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":578
 *         chrom_pos_parser = VCFChromPosParser(**kwds)
 *         chrom_pos_parser.malloc_chunk()
 *         self.chrom_pos_parser = chrom_pos_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_id(self, fields, types):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_chrom_pos_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_chrom_pos_parser));
  __Pyx_GOTREF(__pyx_v_self->chrom_pos_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->chrom_pos_parser));
  __pyx_v_self->chrom_pos_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_chrom_pos_parser);

  /* "variant_tools/io_vcf_read.pyx":557
 *                 self.region_end = int(range_tokens[1])
 * 
 *     def _init_chrom_pos(self, fields, types):             # <<<<<<<<<<<<<<
 *         """Setup CHROM and POS parser."""
 *         kwds = dict(dtype=None, chunk_length=self.chunk_length,
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_chrom_pos", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_kwds);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF((PyObject *)__pyx_v_chrom_pos_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":580
 *         self.chrom_pos_parser = chrom_pos_parser
 * 
 *     def _init_id(self, fields, types):             # <<<<<<<<<<<<<<
 *         """Setup ID parser."""
 *         if ID_FIELD in fields:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_7_init_id(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_6_init_id[] = "Setup ID parser.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_7_init_id(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_id (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_id", 1, 2, 2, 1); __PYX_ERR(0, 580, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_id") < 0)) __PYX_ERR(0, 580, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_id", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 580, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_6_init_id(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_6_init_id(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types) {
  PyObject *__pyx_v_t = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_id_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("_init_id", 0);

  /* "variant_tools/io_vcf_read.pyx":582
 *     def _init_id(self, fields, types):
 *         """Setup ID parser."""
 *         if ID_FIELD in fields:             # <<<<<<<<<<<<<<
 *             t = types[ID_FIELD]
 *             t = check_string_dtype(t)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ID_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":583
 *         """Setup ID parser."""
 *         if ID_FIELD in fields:
 *             t = types[ID_FIELD]             # <<<<<<<<<<<<<<
 *             t = check_string_dtype(t)
 *             if t.kind == 'S':
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ID_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_t = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":584
 *         if ID_FIELD in fields:
 *             t = types[ID_FIELD]
 *             t = check_string_dtype(t)             # <<<<<<<<<<<<<<
 *             if t.kind == 'S':
 *                 id_parser = VCFIDStringParser(dtype=t, chunk_length=self.chunk_length)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v_t) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_t);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_t, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":585
 *             t = types[ID_FIELD]
 *             t = check_string_dtype(t)
 *             if t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 id_parser = VCFIDStringParser(dtype=t, chunk_length=self.chunk_length)
 *             else:
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_4, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 585, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (__pyx_t_3) {

      /* "variant_tools/io_vcf_read.pyx":586
 *             t = check_string_dtype(t)
 *             if t.kind == 'S':
 *                 id_parser = VCFIDStringParser(dtype=t, chunk_length=self.chunk_length)             # <<<<<<<<<<<<<<
 *             else:
 *                 id_parser = VCFIDObjectParser(chunk_length=self.chunk_length)
 */
      __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 586, __pyx_L1_error)
      __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_chunk_length, __pyx_t_1) < 0) __PYX_ERR(0, 586, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_v_id_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":585
 *             t = types[ID_FIELD]
 *             t = check_string_dtype(t)
 *             if t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 id_parser = VCFIDStringParser(dtype=t, chunk_length=self.chunk_length)
 *             else:
 */
      goto __pyx_L4;
    }

    /* "variant_tools/io_vcf_read.pyx":588
 *                 id_parser = VCFIDStringParser(dtype=t, chunk_length=self.chunk_length)
 *             else:
 *                 id_parser = VCFIDObjectParser(chunk_length=self.chunk_length)             # <<<<<<<<<<<<<<
 *             fields.remove(ID_FIELD)
 *         else:
 */
    /*else*/ {
      __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_chunk_length, __pyx_t_4) < 0) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_id_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_4);
      __pyx_t_4 = 0;
    }
    __pyx_L4:;

    /* "variant_tools/io_vcf_read.pyx":589
 *             else:
 *                 id_parser = VCFIDObjectParser(chunk_length=self.chunk_length)
 *             fields.remove(ID_FIELD)             # <<<<<<<<<<<<<<
 *         else:
 *             id_parser = VCFSkipFieldParser(key=b'ID')
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ID_FIELD); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":582
 *     def _init_id(self, fields, types):
 *         """Setup ID parser."""
 *         if ID_FIELD in fields:             # <<<<<<<<<<<<<<
 *             t = types[ID_FIELD]
 *             t = check_string_dtype(t)
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":591
 *             fields.remove(ID_FIELD)
 *         else:
 *             id_parser = VCFSkipFieldParser(key=b'ID')             # <<<<<<<<<<<<<<
 *         id_parser.malloc_chunk()
 *         self.id_parser = id_parser
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_key, __pyx_n_b_ID) < 0) __PYX_ERR(0, 591, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_id_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":592
 *         else:
 *             id_parser = VCFSkipFieldParser(key=b'ID')
 *         id_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.id_parser = id_parser
 * 
 */
  __pyx_t_7 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_id_parser->__pyx_vtab)->malloc_chunk(__pyx_v_id_parser); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 592, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":593
 *             id_parser = VCFSkipFieldParser(key=b'ID')
 *         id_parser.malloc_chunk()
 *         self.id_parser = id_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_ref(self, fields, types):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_id_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_id_parser));
  __Pyx_GOTREF(__pyx_v_self->id_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->id_parser));
  __pyx_v_self->id_parser = __pyx_v_id_parser;

  /* "variant_tools/io_vcf_read.pyx":580
 *         self.chrom_pos_parser = chrom_pos_parser
 * 
 *     def _init_id(self, fields, types):             # <<<<<<<<<<<<<<
 *         """Setup ID parser."""
 *         if ID_FIELD in fields:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF((PyObject *)__pyx_v_id_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":595
 *         self.id_parser = id_parser
 * 
 *     def _init_ref(self, fields, types):             # <<<<<<<<<<<<<<
 *         # setup REF parser
 *         t = types.get(REF_FIELD, None)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_9_init_ref(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_9_init_ref(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_ref (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_ref", 1, 2, 2, 1); __PYX_ERR(0, 595, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_ref") < 0)) __PYX_ERR(0, 595, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_ref", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 595, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_ref", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_8_init_ref(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_8_init_ref(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types) {
  PyObject *__pyx_v_t = NULL;
  int __pyx_v_store;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_ref_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("_init_ref", 0);

  /* "variant_tools/io_vcf_read.pyx":597
 *     def _init_ref(self, fields, types):
 *         # setup REF parser
 *         t = types.get(REF_FIELD, None)             # <<<<<<<<<<<<<<
 *         store = False
 *         if REF_FIELD in fields:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_types, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_REF_FIELD); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, Py_None};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, Py_None};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_4) {
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_t_3);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, Py_None);
    __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_t = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":598
 *         # setup REF parser
 *         t = types.get(REF_FIELD, None)
 *         store = False             # <<<<<<<<<<<<<<
 *         if REF_FIELD in fields:
 *             store = True
 */
  __pyx_v_store = 0;

  /* "variant_tools/io_vcf_read.pyx":599
 *         t = types.get(REF_FIELD, None)
 *         store = False
 *         if REF_FIELD in fields:             # <<<<<<<<<<<<<<
 *             store = True
 *             fields.remove(REF_FIELD)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_REF_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 599, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "variant_tools/io_vcf_read.pyx":600
 *         store = False
 *         if REF_FIELD in fields:
 *             store = True             # <<<<<<<<<<<<<<
 *             fields.remove(REF_FIELD)
 *             t = check_string_dtype(t)
 */
    __pyx_v_store = 1;

    /* "variant_tools/io_vcf_read.pyx":601
 *         if REF_FIELD in fields:
 *             store = True
 *             fields.remove(REF_FIELD)             # <<<<<<<<<<<<<<
 *             t = check_string_dtype(t)
 *         if t is not None and t.kind == 'S':
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_REF_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":602
 *             store = True
 *             fields.remove(REF_FIELD)
 *             t = check_string_dtype(t)             # <<<<<<<<<<<<<<
 *         if t is not None and t.kind == 'S':
 *             ref_parser = VCFRefStringParser(dtype=t, chunk_length=self.chunk_length, store=store)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_v_t) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_t);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_t, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":599
 *         t = types.get(REF_FIELD, None)
 *         store = False
 *         if REF_FIELD in fields:             # <<<<<<<<<<<<<<
 *             store = True
 *             fields.remove(REF_FIELD)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":603
 *             fields.remove(REF_FIELD)
 *             t = check_string_dtype(t)
 *         if t is not None and t.kind == 'S':             # <<<<<<<<<<<<<<
 *             ref_parser = VCFRefStringParser(dtype=t, chunk_length=self.chunk_length, store=store)
 *         else:
 */
  __pyx_t_7 = (__pyx_v_t != Py_None);
  __pyx_t_9 = (__pyx_t_7 != 0);
  if (__pyx_t_9) {
  } else {
    __pyx_t_8 = __pyx_t_9;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_9 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8 = __pyx_t_9;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_8) {

    /* "variant_tools/io_vcf_read.pyx":604
 *             t = check_string_dtype(t)
 *         if t is not None and t.kind == 'S':
 *             ref_parser = VCFRefStringParser(dtype=t, chunk_length=self.chunk_length, store=store)             # <<<<<<<<<<<<<<
 *         else:
 *             ref_parser = VCFRefObjectParser(chunk_length=self.chunk_length, store=store)
 */
    __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 604, __pyx_L1_error)
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_chunk_length, __pyx_t_2) < 0) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_store); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store, __pyx_t_2) < 0) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_ref_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":603
 *             fields.remove(REF_FIELD)
 *             t = check_string_dtype(t)
 *         if t is not None and t.kind == 'S':             # <<<<<<<<<<<<<<
 *             ref_parser = VCFRefStringParser(dtype=t, chunk_length=self.chunk_length, store=store)
 *         else:
 */
    goto __pyx_L4;
  }

  /* "variant_tools/io_vcf_read.pyx":606
 *             ref_parser = VCFRefStringParser(dtype=t, chunk_length=self.chunk_length, store=store)
 *         else:
 *             ref_parser = VCFRefObjectParser(chunk_length=self.chunk_length, store=store)             # <<<<<<<<<<<<<<
 *         ref_parser.malloc_chunk()
 *         self.ref_parser = ref_parser
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_t_1) < 0) __PYX_ERR(0, 606, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_store); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_store, __pyx_t_1) < 0) __PYX_ERR(0, 606, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_ref_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "variant_tools/io_vcf_read.pyx":607
 *         else:
 *             ref_parser = VCFRefObjectParser(chunk_length=self.chunk_length, store=store)
 *         ref_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.ref_parser = ref_parser
 * 
 */
  __pyx_t_5 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_ref_parser->__pyx_vtab)->malloc_chunk(__pyx_v_ref_parser); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 607, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":608
 *             ref_parser = VCFRefObjectParser(chunk_length=self.chunk_length, store=store)
 *         ref_parser.malloc_chunk()
 *         self.ref_parser = ref_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_alt(self, fields, types, numbers):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_ref_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_ref_parser));
  __Pyx_GOTREF(__pyx_v_self->ref_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->ref_parser));
  __pyx_v_self->ref_parser = __pyx_v_ref_parser;

  /* "variant_tools/io_vcf_read.pyx":595
 *         self.id_parser = id_parser
 * 
 *     def _init_ref(self, fields, types):             # <<<<<<<<<<<<<<
 *         # setup REF parser
 *         t = types.get(REF_FIELD, None)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_ref", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF((PyObject *)__pyx_v_ref_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":610
 *         self.ref_parser = ref_parser
 * 
 *     def _init_alt(self, fields, types, numbers):             # <<<<<<<<<<<<<<
 *         """Setup ALT parser."""
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_11_init_alt(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_10_init_alt[] = "Setup ALT parser.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_11_init_alt(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_alt (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_numbers,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_alt", 1, 3, 3, 1); __PYX_ERR(0, 610, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_alt", 1, 3, 3, 2); __PYX_ERR(0, 610, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_alt") < 0)) __PYX_ERR(0, 610, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_alt", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 610, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_alt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_10_init_alt(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types, __pyx_v_numbers);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_10_init_alt(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers) {
  int __pyx_v_store_alt;
  int __pyx_v_store_numalt;
  int __pyx_v_store_svlen;
  int __pyx_v_store_is_snp;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_v_n = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_alt_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("_init_alt", 0);

  /* "variant_tools/io_vcf_read.pyx":613
 *         """Setup ALT parser."""
 * 
 *         store_alt = False             # <<<<<<<<<<<<<<
 *         store_numalt = False
 *         store_svlen = False
 */
  __pyx_v_store_alt = 0;

  /* "variant_tools/io_vcf_read.pyx":614
 * 
 *         store_alt = False
 *         store_numalt = False             # <<<<<<<<<<<<<<
 *         store_svlen = False
 *         store_is_snp = False
 */
  __pyx_v_store_numalt = 0;

  /* "variant_tools/io_vcf_read.pyx":615
 *         store_alt = False
 *         store_numalt = False
 *         store_svlen = False             # <<<<<<<<<<<<<<
 *         store_is_snp = False
 *         t = types.get(ALT_FIELD, None)
 */
  __pyx_v_store_svlen = 0;

  /* "variant_tools/io_vcf_read.pyx":616
 *         store_numalt = False
 *         store_svlen = False
 *         store_is_snp = False             # <<<<<<<<<<<<<<
 *         t = types.get(ALT_FIELD, None)
 *         n = numbers.get(ALT_FIELD, 1)
 */
  __pyx_v_store_is_snp = 0;

  /* "variant_tools/io_vcf_read.pyx":617
 *         store_svlen = False
 *         store_is_snp = False
 *         t = types.get(ALT_FIELD, None)             # <<<<<<<<<<<<<<
 *         n = numbers.get(ALT_FIELD, 1)
 *         if ALT_FIELD in fields:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_types, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ALT_FIELD); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, Py_None};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_3, Py_None};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_4) {
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_t_3);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, Py_None);
    __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_t = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":618
 *         store_is_snp = False
 *         t = types.get(ALT_FIELD, None)
 *         n = numbers.get(ALT_FIELD, 1)             # <<<<<<<<<<<<<<
 *         if ALT_FIELD in fields:
 *             store_alt = True
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_numbers, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ALT_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_6, __pyx_int_1};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_6, __pyx_int_1};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_4 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 618, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_5, __pyx_t_6);
    __Pyx_INCREF(__pyx_int_1);
    __Pyx_GIVEREF(__pyx_int_1);
    PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_5, __pyx_int_1);
    __pyx_t_6 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":619
 *         t = types.get(ALT_FIELD, None)
 *         n = numbers.get(ALT_FIELD, 1)
 *         if ALT_FIELD in fields:             # <<<<<<<<<<<<<<
 *             store_alt = True
 *             fields.remove(ALT_FIELD)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ALT_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "variant_tools/io_vcf_read.pyx":620
 *         n = numbers.get(ALT_FIELD, 1)
 *         if ALT_FIELD in fields:
 *             store_alt = True             # <<<<<<<<<<<<<<
 *             fields.remove(ALT_FIELD)
 *         if 'variants/numalt' in fields:
 */
    __pyx_v_store_alt = 1;

    /* "variant_tools/io_vcf_read.pyx":621
 *         if ALT_FIELD in fields:
 *             store_alt = True
 *             fields.remove(ALT_FIELD)             # <<<<<<<<<<<<<<
 *         if 'variants/numalt' in fields:
 *             store_numalt = True
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ALT_FIELD); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":619
 *         t = types.get(ALT_FIELD, None)
 *         n = numbers.get(ALT_FIELD, 1)
 *         if ALT_FIELD in fields:             # <<<<<<<<<<<<<<
 *             store_alt = True
 *             fields.remove(ALT_FIELD)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":622
 *             store_alt = True
 *             fields.remove(ALT_FIELD)
 *         if 'variants/numalt' in fields:             # <<<<<<<<<<<<<<
 *             store_numalt = True
 *             fields.remove('variants/numalt')
 */
  __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_kp_s_variants_numalt, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 622, __pyx_L1_error)
  __pyx_t_7 = (__pyx_t_8 != 0);
  if (__pyx_t_7) {

    /* "variant_tools/io_vcf_read.pyx":623
 *             fields.remove(ALT_FIELD)
 *         if 'variants/numalt' in fields:
 *             store_numalt = True             # <<<<<<<<<<<<<<
 *             fields.remove('variants/numalt')
 *         if 'variants/svlen' in fields:
 */
    __pyx_v_store_numalt = 1;

    /* "variant_tools/io_vcf_read.pyx":624
 *         if 'variants/numalt' in fields:
 *             store_numalt = True
 *             fields.remove('variants/numalt')             # <<<<<<<<<<<<<<
 *         if 'variants/svlen' in fields:
 *             store_svlen = True
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_kp_s_variants_numalt) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s_variants_numalt);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":622
 *             store_alt = True
 *             fields.remove(ALT_FIELD)
 *         if 'variants/numalt' in fields:             # <<<<<<<<<<<<<<
 *             store_numalt = True
 *             fields.remove('variants/numalt')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":625
 *             store_numalt = True
 *             fields.remove('variants/numalt')
 *         if 'variants/svlen' in fields:             # <<<<<<<<<<<<<<
 *             store_svlen = True
 *             fields.remove('variants/svlen')
 */
  __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_kp_s_variants_svlen, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 625, __pyx_L1_error)
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "variant_tools/io_vcf_read.pyx":626
 *             fields.remove('variants/numalt')
 *         if 'variants/svlen' in fields:
 *             store_svlen = True             # <<<<<<<<<<<<<<
 *             fields.remove('variants/svlen')
 *         if 'variants/is_snp' in fields:
 */
    __pyx_v_store_svlen = 1;

    /* "variant_tools/io_vcf_read.pyx":627
 *         if 'variants/svlen' in fields:
 *             store_svlen = True
 *             fields.remove('variants/svlen')             # <<<<<<<<<<<<<<
 *         if 'variants/is_snp' in fields:
 *             store_is_snp = True
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_kp_s_variants_svlen) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s_variants_svlen);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":625
 *             store_numalt = True
 *             fields.remove('variants/numalt')
 *         if 'variants/svlen' in fields:             # <<<<<<<<<<<<<<
 *             store_svlen = True
 *             fields.remove('variants/svlen')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":628
 *             store_svlen = True
 *             fields.remove('variants/svlen')
 *         if 'variants/is_snp' in fields:             # <<<<<<<<<<<<<<
 *             store_is_snp = True
 *             fields.remove('variants/is_snp')
 */
  __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_kp_s_variants_is_snp, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 628, __pyx_L1_error)
  __pyx_t_7 = (__pyx_t_8 != 0);
  if (__pyx_t_7) {

    /* "variant_tools/io_vcf_read.pyx":629
 *             fields.remove('variants/svlen')
 *         if 'variants/is_snp' in fields:
 *             store_is_snp = True             # <<<<<<<<<<<<<<
 *             fields.remove('variants/is_snp')
 * 
 */
    __pyx_v_store_is_snp = 1;

    /* "variant_tools/io_vcf_read.pyx":630
 *         if 'variants/is_snp' in fields:
 *             store_is_snp = True
 *             fields.remove('variants/is_snp')             # <<<<<<<<<<<<<<
 * 
 *         if store_alt or store_numalt or store_svlen or store_is_snp:
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_kp_s_variants_is_snp) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s_variants_is_snp);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":628
 *             store_svlen = True
 *             fields.remove('variants/svlen')
 *         if 'variants/is_snp' in fields:             # <<<<<<<<<<<<<<
 *             store_is_snp = True
 *             fields.remove('variants/is_snp')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":632
 *             fields.remove('variants/is_snp')
 * 
 *         if store_alt or store_numalt or store_svlen or store_is_snp:             # <<<<<<<<<<<<<<
 *             if store_alt:
 *                 t = check_string_dtype(t)
 */
  __pyx_t_8 = (__pyx_v_store_alt != 0);
  if (!__pyx_t_8) {
  } else {
    __pyx_t_7 = __pyx_t_8;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_8 = (__pyx_v_store_numalt != 0);
  if (!__pyx_t_8) {
  } else {
    __pyx_t_7 = __pyx_t_8;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_8 = (__pyx_v_store_svlen != 0);
  if (!__pyx_t_8) {
  } else {
    __pyx_t_7 = __pyx_t_8;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_8 = (__pyx_v_store_is_snp != 0);
  __pyx_t_7 = __pyx_t_8;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_7) {

    /* "variant_tools/io_vcf_read.pyx":633
 * 
 *         if store_alt or store_numalt or store_svlen or store_is_snp:
 *             if store_alt:             # <<<<<<<<<<<<<<
 *                 t = check_string_dtype(t)
 *             if t is not None and t.kind == 'S':
 */
    __pyx_t_7 = (__pyx_v_store_alt != 0);
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":634
 *         if store_alt or store_numalt or store_svlen or store_is_snp:
 *             if store_alt:
 *                 t = check_string_dtype(t)             # <<<<<<<<<<<<<<
 *             if t is not None and t.kind == 'S':
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,
 */
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
        }
      }
      __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v_t) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_t);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_t, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":633
 * 
 *         if store_alt or store_numalt or store_svlen or store_is_snp:
 *             if store_alt:             # <<<<<<<<<<<<<<
 *                 t = check_string_dtype(t)
 *             if t is not None and t.kind == 'S':
 */
    }

    /* "variant_tools/io_vcf_read.pyx":635
 *             if store_alt:
 *                 t = check_string_dtype(t)
 *             if t is not None and t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,
 *                                                 store_alt=store_alt, store_numalt=store_numalt,
 */
    __pyx_t_8 = (__pyx_v_t != Py_None);
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L14_bool_binop_done;
    }
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 635, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = __pyx_t_9;
    __pyx_L14_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":636
 *                 t = check_string_dtype(t)
 *             if t is not None and t.kind == 'S':
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,             # <<<<<<<<<<<<<<
 *                                                 store_alt=store_alt, store_numalt=store_numalt,
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 */
      __pyx_t_1 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_chunk_length, __pyx_t_2) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":637
 *             if t is not None and t.kind == 'S':
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,
 *                                                 store_alt=store_alt, store_numalt=store_numalt,             # <<<<<<<<<<<<<<
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 *             else:
 */
      __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_store_alt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store_alt, __pyx_t_2) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_store_numalt); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store_numalt, __pyx_t_2) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":638
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,
 *                                                 store_alt=store_alt, store_numalt=store_numalt,
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)             # <<<<<<<<<<<<<<
 *             else:
 *                 alt_parser = VCFAltObjectParser(number=n, chunk_length=self.chunk_length, store_alt=store_alt,
 */
      __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_store_svlen); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store_svlen, __pyx_t_2) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_store_is_snp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_store_is_snp, __pyx_t_2) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":636
 *                 t = check_string_dtype(t)
 *             if t is not None and t.kind == 'S':
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,             # <<<<<<<<<<<<<<
 *                                                 store_alt=store_alt, store_numalt=store_numalt,
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 */
      __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_alt_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":635
 *             if store_alt:
 *                 t = check_string_dtype(t)
 *             if t is not None and t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 alt_parser = VCFAltStringParser(dtype=t, number=n, chunk_length=self.chunk_length,
 *                                                 store_alt=store_alt, store_numalt=store_numalt,
 */
      goto __pyx_L13;
    }

    /* "variant_tools/io_vcf_read.pyx":640
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 *             else:
 *                 alt_parser = VCFAltObjectParser(number=n, chunk_length=self.chunk_length, store_alt=store_alt,             # <<<<<<<<<<<<<<
 *                                                 store_numalt=store_numalt,
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 */
    /*else*/ {
      __pyx_t_2 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 640, __pyx_L1_error)
      __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_t_1) < 0) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_store_alt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_store_alt, __pyx_t_1) < 0) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":641
 *             else:
 *                 alt_parser = VCFAltObjectParser(number=n, chunk_length=self.chunk_length, store_alt=store_alt,
 *                                                 store_numalt=store_numalt,             # <<<<<<<<<<<<<<
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 *         else:
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_store_numalt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 641, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_store_numalt, __pyx_t_1) < 0) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":642
 *                 alt_parser = VCFAltObjectParser(number=n, chunk_length=self.chunk_length, store_alt=store_alt,
 *                                                 store_numalt=store_numalt,
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)             # <<<<<<<<<<<<<<
 *         else:
 *             alt_parser = VCFSkipFieldParser(key=b'ALT')
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_store_svlen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 642, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_store_svlen, __pyx_t_1) < 0) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_store_is_snp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 642, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_store_is_snp, __pyx_t_1) < 0) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":640
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 *             else:
 *                 alt_parser = VCFAltObjectParser(number=n, chunk_length=self.chunk_length, store_alt=store_alt,             # <<<<<<<<<<<<<<
 *                                                 store_numalt=store_numalt,
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 */
      __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_alt_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
      __pyx_t_1 = 0;
    }
    __pyx_L13:;

    /* "variant_tools/io_vcf_read.pyx":632
 *             fields.remove('variants/is_snp')
 * 
 *         if store_alt or store_numalt or store_svlen or store_is_snp:             # <<<<<<<<<<<<<<
 *             if store_alt:
 *                 t = check_string_dtype(t)
 */
    goto __pyx_L7;
  }

  /* "variant_tools/io_vcf_read.pyx":644
 *                                                 store_svlen=store_svlen, store_is_snp=store_is_snp)
 *         else:
 *             alt_parser = VCFSkipFieldParser(key=b'ALT')             # <<<<<<<<<<<<<<
 * 
 *         alt_parser.malloc_chunk()
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_key, __pyx_n_b_ALT) < 0) __PYX_ERR(0, 644, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_alt_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L7:;

  /* "variant_tools/io_vcf_read.pyx":646
 *             alt_parser = VCFSkipFieldParser(key=b'ALT')
 * 
 *         alt_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.alt_parser = alt_parser
 * 
 */
  __pyx_t_5 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_alt_parser->__pyx_vtab)->malloc_chunk(__pyx_v_alt_parser); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 646, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":647
 * 
 *         alt_parser.malloc_chunk()
 *         self.alt_parser = alt_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_qual(self, fields, types, fills):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_alt_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_alt_parser));
  __Pyx_GOTREF(__pyx_v_self->alt_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->alt_parser));
  __pyx_v_self->alt_parser = __pyx_v_alt_parser;

  /* "variant_tools/io_vcf_read.pyx":610
 *         self.ref_parser = ref_parser
 * 
 *     def _init_alt(self, fields, types, numbers):             # <<<<<<<<<<<<<<
 *         """Setup ALT parser."""
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_alt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF((PyObject *)__pyx_v_alt_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":649
 *         self.alt_parser = alt_parser
 * 
 *     def _init_qual(self, fields, types, fills):             # <<<<<<<<<<<<<<
 *         """Setup QUAL parser."""
 *         if QUAL_FIELD in fields:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_13_init_qual(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_12_init_qual[] = "Setup QUAL parser.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_13_init_qual(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_fills = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_qual (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_fills,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_qual", 1, 3, 3, 1); __PYX_ERR(0, 649, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_qual", 1, 3, 3, 2); __PYX_ERR(0, 649, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_qual") < 0)) __PYX_ERR(0, 649, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
    __pyx_v_fills = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_qual", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 649, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_qual", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_12_init_qual(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_12_init_qual(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_fills) {
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_v_fill = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_qual_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("_init_qual", 0);

  /* "variant_tools/io_vcf_read.pyx":651
 *     def _init_qual(self, fields, types, fills):
 *         """Setup QUAL parser."""
 *         if QUAL_FIELD in fields:             # <<<<<<<<<<<<<<
 *             if QUAL_FIELD in types:
 *                 t = types[QUAL_FIELD]
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_QUAL_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_v_fields, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 651, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":652
 *         """Setup QUAL parser."""
 *         if QUAL_FIELD in fields:
 *             if QUAL_FIELD in types:             # <<<<<<<<<<<<<<
 *                 t = types[QUAL_FIELD]
 *                 if t != np.dtype('float32'):
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_QUAL_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_v_types, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 652, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":653
 *         if QUAL_FIELD in fields:
 *             if QUAL_FIELD in types:
 *                 t = types[QUAL_FIELD]             # <<<<<<<<<<<<<<
 *                 if t != np.dtype('float32'):
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_QUAL_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 653, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_t = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "variant_tools/io_vcf_read.pyx":654
 *             if QUAL_FIELD in types:
 *                 t = types[QUAL_FIELD]
 *                 if t != np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)
 *             fill = fills.get(QUAL_FIELD, -1)
 */
      __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 654, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 654, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 654, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_2) {

        /* "variant_tools/io_vcf_read.pyx":655
 *                 t = types[QUAL_FIELD]
 *                 if t != np.dtype('float32'):
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)             # <<<<<<<<<<<<<<
 *             fill = fills.get(QUAL_FIELD, -1)
 *             qual_parser = VCFQualParser(chunk_length=self.chunk_length, fill=fill)
 */
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_warnings); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 655, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_warn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 655, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyString_FormatSafe(__pyx_kp_s_only_float32_supported_for_QUAL, __pyx_v_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 655, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_6 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4);
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 655, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":654
 *             if QUAL_FIELD in types:
 *                 t = types[QUAL_FIELD]
 *                 if t != np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)
 *             fill = fills.get(QUAL_FIELD, -1)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":652
 *         """Setup QUAL parser."""
 *         if QUAL_FIELD in fields:
 *             if QUAL_FIELD in types:             # <<<<<<<<<<<<<<
 *                 t = types[QUAL_FIELD]
 *                 if t != np.dtype('float32'):
 */
    }

    /* "variant_tools/io_vcf_read.pyx":656
 *                 if t != np.dtype('float32'):
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)
 *             fill = fills.get(QUAL_FIELD, -1)             # <<<<<<<<<<<<<<
 *             qual_parser = VCFQualParser(chunk_length=self.chunk_length, fill=fill)
 *             fields.remove(QUAL_FIELD)
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_QUAL_FIELD); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = NULL;
    __pyx_t_7 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
        __pyx_t_7 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_int_neg_1};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_int_neg_1};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else
    #endif
    {
      __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 656, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (__pyx_t_6) {
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4);
      __Pyx_INCREF(__pyx_int_neg_1);
      __Pyx_GIVEREF(__pyx_int_neg_1);
      PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_int_neg_1);
      __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_fill = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":657
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)
 *             fill = fills.get(QUAL_FIELD, -1)
 *             qual_parser = VCFQualParser(chunk_length=self.chunk_length, fill=fill)             # <<<<<<<<<<<<<<
 *             fields.remove(QUAL_FIELD)
 *         else:
 */
    __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_chunk_length, __pyx_t_5) < 0) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 657, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_qual_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":658
 *             fill = fills.get(QUAL_FIELD, -1)
 *             qual_parser = VCFQualParser(chunk_length=self.chunk_length, fill=fill)
 *             fields.remove(QUAL_FIELD)             # <<<<<<<<<<<<<<
 *         else:
 *             qual_parser = VCFSkipFieldParser(key=b'QUAL')
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_QUAL_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_4, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":651
 *     def _init_qual(self, fields, types, fills):
 *         """Setup QUAL parser."""
 *         if QUAL_FIELD in fields:             # <<<<<<<<<<<<<<
 *             if QUAL_FIELD in types:
 *                 t = types[QUAL_FIELD]
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":660
 *             fields.remove(QUAL_FIELD)
 *         else:
 *             qual_parser = VCFSkipFieldParser(key=b'QUAL')             # <<<<<<<<<<<<<<
 *         qual_parser.malloc_chunk()
 *         self.qual_parser = qual_parser
 */
  /*else*/ {
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_key, __pyx_n_b_QUAL) < 0) __PYX_ERR(0, 660, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_qual_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":661
 *         else:
 *             qual_parser = VCFSkipFieldParser(key=b'QUAL')
 *         qual_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.qual_parser = qual_parser
 * 
 */
  __pyx_t_7 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_qual_parser->__pyx_vtab)->malloc_chunk(__pyx_v_qual_parser); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 661, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":662
 *             qual_parser = VCFSkipFieldParser(key=b'QUAL')
 *         qual_parser.malloc_chunk()
 *         self.qual_parser = qual_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_filter(self, fields):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_qual_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_qual_parser));
  __Pyx_GOTREF(__pyx_v_self->qual_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->qual_parser));
  __pyx_v_self->qual_parser = __pyx_v_qual_parser;

  /* "variant_tools/io_vcf_read.pyx":649
 *         self.alt_parser = alt_parser
 * 
 *     def _init_qual(self, fields, types, fills):             # <<<<<<<<<<<<<<
 *         """Setup QUAL parser."""
 *         if QUAL_FIELD in fields:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_qual", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_fill);
  __Pyx_XDECREF((PyObject *)__pyx_v_qual_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":664
 *         self.qual_parser = qual_parser
 * 
 *     def _init_filter(self, fields):             # <<<<<<<<<<<<<<
 *         """Setup FILTER parser."""
 *         filter_keys = list()
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_15_init_filter(PyObject *__pyx_v_self, PyObject *__pyx_v_fields); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_14_init_filter[] = "Setup FILTER parser.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_15_init_filter(PyObject *__pyx_v_self, PyObject *__pyx_v_fields) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_filter (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_14_init_filter(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), ((PyObject *)__pyx_v_fields));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_14_init_filter(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields) {
  PyObject *__pyx_v_filter_keys = NULL;
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_k = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_filter_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("_init_filter", 0);

  /* "variant_tools/io_vcf_read.pyx":666
 *     def _init_filter(self, fields):
 *         """Setup FILTER parser."""
 *         filter_keys = list()             # <<<<<<<<<<<<<<
 *         for field in list(fields):
 *             if field.startswith('variants/FILTER_'):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_filter_keys = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":667
 *         """Setup FILTER parser."""
 *         filter_keys = list()
 *         for field in list(fields):             # <<<<<<<<<<<<<<
 *             if field.startswith('variants/FILTER_'):
 *                 k = field[16:]
 */
  __pyx_t_1 = PySequence_List(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 667, __pyx_L1_error)
    #else
    __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":668
 *         filter_keys = list()
 *         for field in list(fields):
 *             if field.startswith('variants/FILTER_'):             # <<<<<<<<<<<<<<
 *                 k = field[16:]
 *                 if not PY2:
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_variants_FILTER) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_variants_FILTER);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 668, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_6) {

      /* "variant_tools/io_vcf_read.pyx":669
 *         for field in list(fields):
 *             if field.startswith('variants/FILTER_'):
 *                 k = field[16:]             # <<<<<<<<<<<<<<
 *                 if not PY2:
 *                     k = k.encode('ascii')
 */
      __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_field, 16, 0, NULL, NULL, &__pyx_slice__11, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 669, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":670
 *             if field.startswith('variants/FILTER_'):
 *                 k = field[16:]
 *                 if not PY2:             # <<<<<<<<<<<<<<
 *                     k = k.encode('ascii')
 *                 filter_keys.append(k)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 670, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 670, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_7 = ((!__pyx_t_6) != 0);
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":671
 *                 k = field[16:]
 *                 if not PY2:
 *                     k = k.encode('ascii')             # <<<<<<<<<<<<<<
 *                 filter_keys.append(k)
 *                 fields.remove(field)
 */
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_k, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 671, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_s_ascii);
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 671, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF_SET(__pyx_v_k, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":670
 *             if field.startswith('variants/FILTER_'):
 *                 k = field[16:]
 *                 if not PY2:             # <<<<<<<<<<<<<<
 *                     k = k.encode('ascii')
 *                 filter_keys.append(k)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":672
 *                 if not PY2:
 *                     k = k.encode('ascii')
 *                 filter_keys.append(k)             # <<<<<<<<<<<<<<
 *                 fields.remove(field)
 *         if filter_keys:
 */
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_filter_keys, __pyx_v_k); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 672, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":673
 *                     k = k.encode('ascii')
 *                 filter_keys.append(k)
 *                 fields.remove(field)             # <<<<<<<<<<<<<<
 *         if filter_keys:
 *             filter_parser = VCFFilterParser(filter_keys=filter_keys, chunk_length=self.chunk_length)
 */
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 673, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_field) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_field);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 673, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":668
 *         filter_keys = list()
 *         for field in list(fields):
 *             if field.startswith('variants/FILTER_'):             # <<<<<<<<<<<<<<
 *                 k = field[16:]
 *                 if not PY2:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":667
 *         """Setup FILTER parser."""
 *         filter_keys = list()
 *         for field in list(fields):             # <<<<<<<<<<<<<<
 *             if field.startswith('variants/FILTER_'):
 *                 k = field[16:]
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":674
 *                 filter_keys.append(k)
 *                 fields.remove(field)
 *         if filter_keys:             # <<<<<<<<<<<<<<
 *             filter_parser = VCFFilterParser(filter_keys=filter_keys, chunk_length=self.chunk_length)
 *         else:
 */
  __pyx_t_7 = (PyList_GET_SIZE(__pyx_v_filter_keys) != 0);
  if (__pyx_t_7) {

    /* "variant_tools/io_vcf_read.pyx":675
 *                 fields.remove(field)
 *         if filter_keys:
 *             filter_parser = VCFFilterParser(filter_keys=filter_keys, chunk_length=self.chunk_length)             # <<<<<<<<<<<<<<
 *         else:
 *             filter_parser = VCFSkipFieldParser(key=b'FILTER')
 */
    __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_filter_keys, __pyx_v_filter_keys) < 0) __PYX_ERR(0, 675, __pyx_L1_error)
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_t_1) < 0) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFilterParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_filter_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":674
 *                 filter_keys.append(k)
 *                 fields.remove(field)
 *         if filter_keys:             # <<<<<<<<<<<<<<
 *             filter_parser = VCFFilterParser(filter_keys=filter_keys, chunk_length=self.chunk_length)
 *         else:
 */
    goto __pyx_L7;
  }

  /* "variant_tools/io_vcf_read.pyx":677
 *             filter_parser = VCFFilterParser(filter_keys=filter_keys, chunk_length=self.chunk_length)
 *         else:
 *             filter_parser = VCFSkipFieldParser(key=b'FILTER')             # <<<<<<<<<<<<<<
 *         filter_parser.malloc_chunk()
 *         self.filter_parser = filter_parser
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_key, __pyx_n_b_FILTER) < 0) __PYX_ERR(0, 677, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_filter_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L7:;

  /* "variant_tools/io_vcf_read.pyx":678
 *         else:
 *             filter_parser = VCFSkipFieldParser(key=b'FILTER')
 *         filter_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.filter_parser = filter_parser
 * 
 */
  __pyx_t_9 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_filter_parser->__pyx_vtab)->malloc_chunk(__pyx_v_filter_parser); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 678, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":679
 *             filter_parser = VCFSkipFieldParser(key=b'FILTER')
 *         filter_parser.malloc_chunk()
 *         self.filter_parser = filter_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_info(self, fields, types, numbers, fills):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_filter_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_filter_parser));
  __Pyx_GOTREF(__pyx_v_self->filter_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->filter_parser));
  __pyx_v_self->filter_parser = __pyx_v_filter_parser;

  /* "variant_tools/io_vcf_read.pyx":664
 *         self.qual_parser = qual_parser
 * 
 *     def _init_filter(self, fields):             # <<<<<<<<<<<<<<
 *         """Setup FILTER parser."""
 *         filter_keys = list()
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_filter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_filter_keys);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XDECREF((PyObject *)__pyx_v_filter_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":681
 *         self.filter_parser = filter_parser
 * 
 *     def _init_info(self, fields, types, numbers, fills):             # <<<<<<<<<<<<<<
 *         # setup INFO parser
 *         info_keys = list()
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_17_init_info(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_17_init_info(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_fills = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_info (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_fills,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_info", 1, 4, 4, 1); __PYX_ERR(0, 681, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_info", 1, 4, 4, 2); __PYX_ERR(0, 681, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_info", 1, 4, 4, 3); __PYX_ERR(0, 681, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_info") < 0)) __PYX_ERR(0, 681, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_fills = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_info", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 681, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_16_init_info(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_16_init_info(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_fills) {
  PyObject *__pyx_v_info_keys = NULL;
  PyObject *__pyx_v_info_types = NULL;
  PyObject *__pyx_v_info_numbers = NULL;
  PyObject *__pyx_v_info_fills = NULL;
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_group = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_key = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_info_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  __Pyx_RefNannySetupContext("_init_info", 0);

  /* "variant_tools/io_vcf_read.pyx":683
 *     def _init_info(self, fields, types, numbers, fills):
 *         # setup INFO parser
 *         info_keys = list()             # <<<<<<<<<<<<<<
 *         info_types = dict()
 *         info_numbers = dict()
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_info_keys = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":684
 *         # setup INFO parser
 *         info_keys = list()
 *         info_types = dict()             # <<<<<<<<<<<<<<
 *         info_numbers = dict()
 *         info_fills = dict()
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_info_types = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":685
 *         info_keys = list()
 *         info_types = dict()
 *         info_numbers = dict()             # <<<<<<<<<<<<<<
 *         info_fills = dict()
 *         # assume any variants fields left are INFO
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_info_numbers = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":686
 *         info_types = dict()
 *         info_numbers = dict()
 *         info_fills = dict()             # <<<<<<<<<<<<<<
 *         # assume any variants fields left are INFO
 *         for field in list(fields):
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_info_fills = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":688
 *         info_fills = dict()
 *         # assume any variants fields left are INFO
 *         for field in list(fields):             # <<<<<<<<<<<<<<
 *             group, name = field.split('/')
 *             if group == 'variants':
 */
  __pyx_t_1 = PySequence_List(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 688, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 688, __pyx_L1_error)
    #else
    __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":689
 *         # assume any variants fields left are INFO
 *         for field in list(fields):
 *             group, name = field.split('/')             # <<<<<<<<<<<<<<
 *             if group == 'variants':
 *                 if not PY2:
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_split); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 689, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s__3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
      PyObject* sequence = __pyx_t_1;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 689, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_4 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_5 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      #else
      __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 689, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 689, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 689, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
      index = 0; __pyx_t_4 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 689, __pyx_L1_error)
      __pyx_t_7 = NULL;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 689, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_group, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":690
 *         for field in list(fields):
 *             group, name = field.split('/')
 *             if group == 'variants':             # <<<<<<<<<<<<<<
 *                 if not PY2:
 *                     key = name.encode('ascii')
 */
    __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_v_group, __pyx_n_s_variants, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 690, __pyx_L1_error)
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":691
 *             group, name = field.split('/')
 *             if group == 'variants':
 *                 if not PY2:             # <<<<<<<<<<<<<<
 *                     key = name.encode('ascii')
 *                 else:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 691, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 691, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_9 = ((!__pyx_t_8) != 0);
      if (__pyx_t_9) {

        /* "variant_tools/io_vcf_read.pyx":692
 *             if group == 'variants':
 *                 if not PY2:
 *                     key = name.encode('ascii')             # <<<<<<<<<<<<<<
 *                 else:
 *                     key = name
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 692, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ascii);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 692, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":691
 *             group, name = field.split('/')
 *             if group == 'variants':
 *                 if not PY2:             # <<<<<<<<<<<<<<
 *                     key = name.encode('ascii')
 *                 else:
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":694
 *                     key = name.encode('ascii')
 *                 else:
 *                     key = name             # <<<<<<<<<<<<<<
 *                 info_keys.append(key)
 *                 fields.remove(field)
 */
      /*else*/ {
        __Pyx_INCREF(__pyx_v_name);
        __Pyx_XDECREF_SET(__pyx_v_key, __pyx_v_name);
      }
      __pyx_L8:;

      /* "variant_tools/io_vcf_read.pyx":695
 *                 else:
 *                     key = name
 *                 info_keys.append(key)             # <<<<<<<<<<<<<<
 *                 fields.remove(field)
 *                 info_types[key] = types[field]
 */
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_info_keys, __pyx_v_key); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 695, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":696
 *                     key = name
 *                 info_keys.append(key)
 *                 fields.remove(field)             # <<<<<<<<<<<<<<
 *                 info_types[key] = types[field]
 *                 info_numbers[key] = numbers[field]
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 696, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_field) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_field);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 696, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":697
 *                 info_keys.append(key)
 *                 fields.remove(field)
 *                 info_types[key] = types[field]             # <<<<<<<<<<<<<<
 *                 info_numbers[key] = numbers[field]
 *                 if field in fills:
 */
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_v_field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 697, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(PyDict_SetItem(__pyx_v_info_types, __pyx_v_key, __pyx_t_1) < 0)) __PYX_ERR(0, 697, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":698
 *                 fields.remove(field)
 *                 info_types[key] = types[field]
 *                 info_numbers[key] = numbers[field]             # <<<<<<<<<<<<<<
 *                 if field in fills:
 *                     info_fills[key] = fills[field]
 */
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_numbers, __pyx_v_field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(PyDict_SetItem(__pyx_v_info_numbers, __pyx_v_key, __pyx_t_1) < 0)) __PYX_ERR(0, 698, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":699
 *                 info_types[key] = types[field]
 *                 info_numbers[key] = numbers[field]
 *                 if field in fills:             # <<<<<<<<<<<<<<
 *                     info_fills[key] = fills[field]
 *         if info_keys:
 */
      __pyx_t_9 = (__Pyx_PySequence_ContainsTF(__pyx_v_field, __pyx_v_fills, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 699, __pyx_L1_error)
      __pyx_t_8 = (__pyx_t_9 != 0);
      if (__pyx_t_8) {

        /* "variant_tools/io_vcf_read.pyx":700
 *                 info_numbers[key] = numbers[field]
 *                 if field in fills:
 *                     info_fills[key] = fills[field]             # <<<<<<<<<<<<<<
 *         if info_keys:
 *             info_parser = VCFInfoParser(info_keys=info_keys,
 */
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_fills, __pyx_v_field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 700, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (unlikely(PyDict_SetItem(__pyx_v_info_fills, __pyx_v_key, __pyx_t_1) < 0)) __PYX_ERR(0, 700, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":699
 *                 info_types[key] = types[field]
 *                 info_numbers[key] = numbers[field]
 *                 if field in fills:             # <<<<<<<<<<<<<<
 *                     info_fills[key] = fills[field]
 *         if info_keys:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":690
 *         for field in list(fields):
 *             group, name = field.split('/')
 *             if group == 'variants':             # <<<<<<<<<<<<<<
 *                 if not PY2:
 *                     key = name.encode('ascii')
 */
    }

    /* "variant_tools/io_vcf_read.pyx":688
 *         info_fills = dict()
 *         # assume any variants fields left are INFO
 *         for field in list(fields):             # <<<<<<<<<<<<<<
 *             group, name = field.split('/')
 *             if group == 'variants':
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":701
 *                 if field in fills:
 *                     info_fills[key] = fills[field]
 *         if info_keys:             # <<<<<<<<<<<<<<
 *             info_parser = VCFInfoParser(info_keys=info_keys,
 *                                         types=info_types,
 */
  __pyx_t_8 = (PyList_GET_SIZE(__pyx_v_info_keys) != 0);
  if (__pyx_t_8) {

    /* "variant_tools/io_vcf_read.pyx":702
 *                     info_fills[key] = fills[field]
 *         if info_keys:
 *             info_parser = VCFInfoParser(info_keys=info_keys,             # <<<<<<<<<<<<<<
 *                                         types=info_types,
 *                                         numbers=info_numbers,
 */
    __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_info_keys, __pyx_v_info_keys) < 0) __PYX_ERR(0, 702, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":703
 *         if info_keys:
 *             info_parser = VCFInfoParser(info_keys=info_keys,
 *                                         types=info_types,             # <<<<<<<<<<<<<<
 *                                         numbers=info_numbers,
 *                                         chunk_length=self.chunk_length,
 */
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_types, __pyx_v_info_types) < 0) __PYX_ERR(0, 702, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":704
 *             info_parser = VCFInfoParser(info_keys=info_keys,
 *                                         types=info_types,
 *                                         numbers=info_numbers,             # <<<<<<<<<<<<<<
 *                                         chunk_length=self.chunk_length,
 *                                         fills=info_fills)
 */
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_numbers, __pyx_v_info_numbers) < 0) __PYX_ERR(0, 702, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":705
 *                                         types=info_types,
 *                                         numbers=info_numbers,
 *                                         chunk_length=self.chunk_length,             # <<<<<<<<<<<<<<
 *                                         fills=info_fills)
 *         else:
 */
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_t_1) < 0) __PYX_ERR(0, 702, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":706
 *                                         numbers=info_numbers,
 *                                         chunk_length=self.chunk_length,
 *                                         fills=info_fills)             # <<<<<<<<<<<<<<
 *         else:
 *             info_parser = VCFSkipFieldParser(key=b'INFO')
 */
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fills, __pyx_v_info_fills) < 0) __PYX_ERR(0, 702, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":702
 *                     info_fills[key] = fills[field]
 *         if info_keys:
 *             info_parser = VCFInfoParser(info_keys=info_keys,             # <<<<<<<<<<<<<<
 *                                         types=info_types,
 *                                         numbers=info_numbers,
 */
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_info_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":701
 *                 if field in fills:
 *                     info_fills[key] = fills[field]
 *         if info_keys:             # <<<<<<<<<<<<<<
 *             info_parser = VCFInfoParser(info_keys=info_keys,
 *                                         types=info_types,
 */
    goto __pyx_L10;
  }

  /* "variant_tools/io_vcf_read.pyx":708
 *                                         fills=info_fills)
 *         else:
 *             info_parser = VCFSkipFieldParser(key=b'INFO')             # <<<<<<<<<<<<<<
 *         info_parser.malloc_chunk()
 *         self.info_parser = info_parser
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_key, __pyx_n_b_INFO) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_info_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L10:;

  /* "variant_tools/io_vcf_read.pyx":709
 *         else:
 *             info_parser = VCFSkipFieldParser(key=b'INFO')
 *         info_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.info_parser = info_parser
 * 
 */
  __pyx_t_11 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_info_parser->__pyx_vtab)->malloc_chunk(__pyx_v_info_parser); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 709, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":710
 *             info_parser = VCFSkipFieldParser(key=b'INFO')
 *         info_parser.malloc_chunk()
 *         self.info_parser = info_parser             # <<<<<<<<<<<<<<
 * 
 *     def _init_format_calldata(self, fields, types, numbers, fills):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_info_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_info_parser));
  __Pyx_GOTREF(__pyx_v_self->info_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->info_parser));
  __pyx_v_self->info_parser = __pyx_v_info_parser;

  /* "variant_tools/io_vcf_read.pyx":681
 *         self.filter_parser = filter_parser
 * 
 *     def _init_info(self, fields, types, numbers, fills):             # <<<<<<<<<<<<<<
 *         # setup INFO parser
 *         info_keys = list()
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_info_keys);
  __Pyx_XDECREF(__pyx_v_info_types);
  __Pyx_XDECREF(__pyx_v_info_numbers);
  __Pyx_XDECREF(__pyx_v_info_fills);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_group);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF((PyObject *)__pyx_v_info_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":712
 *         self.info_parser = info_parser
 * 
 *     def _init_format_calldata(self, fields, types, numbers, fills):             # <<<<<<<<<<<<<<
 *         """Setup FORMAT and calldata parsers."""
 *         format_keys = list()
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_19_init_format_calldata(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_18_init_format_calldata[] = "Setup FORMAT and calldata parsers.";
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_19_init_format_calldata(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_fills = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init_format_calldata (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_fills,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_format_calldata", 1, 4, 4, 1); __PYX_ERR(0, 712, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_format_calldata", 1, 4, 4, 2); __PYX_ERR(0, 712, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_init_format_calldata", 1, 4, 4, 3); __PYX_ERR(0, 712, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_init_format_calldata") < 0)) __PYX_ERR(0, 712, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_fills = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_init_format_calldata", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 712, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_format_calldata", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_18_init_format_calldata(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), __pyx_v_fields, __pyx_v_types, __pyx_v_numbers, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_18_init_format_calldata(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_fills) {
  PyObject *__pyx_v_format_keys = NULL;
  PyObject *__pyx_v_format_types = NULL;
  PyObject *__pyx_v_format_numbers = NULL;
  PyObject *__pyx_v_format_fills = NULL;
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_group = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_key = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_format_parser = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_calldata_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  __Pyx_RefNannySetupContext("_init_format_calldata", 0);

  /* "variant_tools/io_vcf_read.pyx":714
 *     def _init_format_calldata(self, fields, types, numbers, fills):
 *         """Setup FORMAT and calldata parsers."""
 *         format_keys = list()             # <<<<<<<<<<<<<<
 *         format_types = dict()
 *         format_numbers = dict()
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_format_keys = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":715
 *         """Setup FORMAT and calldata parsers."""
 *         format_keys = list()
 *         format_types = dict()             # <<<<<<<<<<<<<<
 *         format_numbers = dict()
 *         format_fills = dict()
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_format_types = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":716
 *         format_keys = list()
 *         format_types = dict()
 *         format_numbers = dict()             # <<<<<<<<<<<<<<
 *         format_fills = dict()
 *         for field in list(fields):
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_format_numbers = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":717
 *         format_types = dict()
 *         format_numbers = dict()
 *         format_fills = dict()             # <<<<<<<<<<<<<<
 *         for field in list(fields):
 *             group, name = field.split('/')
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_format_fills = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":718
 *         format_numbers = dict()
 *         format_fills = dict()
 *         for field in list(fields):             # <<<<<<<<<<<<<<
 *             group, name = field.split('/')
 *             if group == 'calldata':
 */
  __pyx_t_1 = PySequence_List(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 718, __pyx_L1_error)
    #else
    __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":719
 *         format_fills = dict()
 *         for field in list(fields):
 *             group, name = field.split('/')             # <<<<<<<<<<<<<<
 *             if group == 'calldata':
 *                 if not PY2:
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_split); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s__3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
      PyObject* sequence = __pyx_t_1;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 719, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_4 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_5 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      #else
      __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 719, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 719, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 719, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
      index = 0; __pyx_t_4 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 719, __pyx_L1_error)
      __pyx_t_7 = NULL;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 719, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_group, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":720
 *         for field in list(fields):
 *             group, name = field.split('/')
 *             if group == 'calldata':             # <<<<<<<<<<<<<<
 *                 if not PY2:
 *                     key = name.encode('ascii')
 */
    __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_v_group, __pyx_n_s_calldata, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 720, __pyx_L1_error)
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":721
 *             group, name = field.split('/')
 *             if group == 'calldata':
 *                 if not PY2:             # <<<<<<<<<<<<<<
 *                     key = name.encode('ascii')
 *                 else:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 721, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 721, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_9 = ((!__pyx_t_8) != 0);
      if (__pyx_t_9) {

        /* "variant_tools/io_vcf_read.pyx":722
 *             if group == 'calldata':
 *                 if not PY2:
 *                     key = name.encode('ascii')             # <<<<<<<<<<<<<<
 *                 else:
 *                     key = name
 */
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 722, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ascii);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 722, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":721
 *             group, name = field.split('/')
 *             if group == 'calldata':
 *                 if not PY2:             # <<<<<<<<<<<<<<
 *                     key = name.encode('ascii')
 *                 else:
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":724
 *                     key = name.encode('ascii')
 *                 else:
 *                     key = name             # <<<<<<<<<<<<<<
 *                 format_keys.append(key)
 *                 fields.remove(field)
 */
      /*else*/ {
        __Pyx_INCREF(__pyx_v_name);
        __Pyx_XDECREF_SET(__pyx_v_key, __pyx_v_name);
      }
      __pyx_L8:;

      /* "variant_tools/io_vcf_read.pyx":725
 *                 else:
 *                     key = name
 *                 format_keys.append(key)             # <<<<<<<<<<<<<<
 *                 fields.remove(field)
 *                 format_types[key] = types[field]
 */
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_format_keys, __pyx_v_key); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 725, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":726
 *                     key = name
 *                 format_keys.append(key)
 *                 fields.remove(field)             # <<<<<<<<<<<<<<
 *                 format_types[key] = types[field]
 *                 format_numbers[key] = numbers[field]
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_fields, __pyx_n_s_remove); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 726, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_field) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_field);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":727
 *                 format_keys.append(key)
 *                 fields.remove(field)
 *                 format_types[key] = types[field]             # <<<<<<<<<<<<<<
 *                 format_numbers[key] = numbers[field]
 *                 if field in fills:
 */
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_v_field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 727, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(PyDict_SetItem(__pyx_v_format_types, __pyx_v_key, __pyx_t_1) < 0)) __PYX_ERR(0, 727, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":728
 *                 fields.remove(field)
 *                 format_types[key] = types[field]
 *                 format_numbers[key] = numbers[field]             # <<<<<<<<<<<<<<
 *                 if field in fills:
 *                     format_fills[key] = fills[field]
 */
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_numbers, __pyx_v_field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 728, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(PyDict_SetItem(__pyx_v_format_numbers, __pyx_v_key, __pyx_t_1) < 0)) __PYX_ERR(0, 728, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":729
 *                 format_types[key] = types[field]
 *                 format_numbers[key] = numbers[field]
 *                 if field in fills:             # <<<<<<<<<<<<<<
 *                     format_fills[key] = fills[field]
 *         if format_keys:
 */
      __pyx_t_9 = (__Pyx_PySequence_ContainsTF(__pyx_v_field, __pyx_v_fills, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 729, __pyx_L1_error)
      __pyx_t_8 = (__pyx_t_9 != 0);
      if (__pyx_t_8) {

        /* "variant_tools/io_vcf_read.pyx":730
 *                 format_numbers[key] = numbers[field]
 *                 if field in fills:
 *                     format_fills[key] = fills[field]             # <<<<<<<<<<<<<<
 *         if format_keys:
 *             format_parser = VCFFormatParser(format_keys=format_keys)
 */
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_fills, __pyx_v_field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 730, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (unlikely(PyDict_SetItem(__pyx_v_format_fills, __pyx_v_key, __pyx_t_1) < 0)) __PYX_ERR(0, 730, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":729
 *                 format_types[key] = types[field]
 *                 format_numbers[key] = numbers[field]
 *                 if field in fills:             # <<<<<<<<<<<<<<
 *                     format_fills[key] = fills[field]
 *         if format_keys:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":720
 *         for field in list(fields):
 *             group, name = field.split('/')
 *             if group == 'calldata':             # <<<<<<<<<<<<<<
 *                 if not PY2:
 *                     key = name.encode('ascii')
 */
    }

    /* "variant_tools/io_vcf_read.pyx":718
 *         format_numbers = dict()
 *         format_fills = dict()
 *         for field in list(fields):             # <<<<<<<<<<<<<<
 *             group, name = field.split('/')
 *             if group == 'calldata':
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":731
 *                 if field in fills:
 *                     format_fills[key] = fills[field]
 *         if format_keys:             # <<<<<<<<<<<<<<
 *             format_parser = VCFFormatParser(format_keys=format_keys)
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,
 */
  __pyx_t_8 = (PyList_GET_SIZE(__pyx_v_format_keys) != 0);
  if (__pyx_t_8) {

    /* "variant_tools/io_vcf_read.pyx":732
 *                     format_fills[key] = fills[field]
 *         if format_keys:
 *             format_parser = VCFFormatParser(format_keys=format_keys)             # <<<<<<<<<<<<<<
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,
 *                                                 types=format_types,
 */
    __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_format_keys, __pyx_v_format_keys) < 0) __PYX_ERR(0, 732, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFormatParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_format_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":733
 *         if format_keys:
 *             format_parser = VCFFormatParser(format_keys=format_keys)
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,             # <<<<<<<<<<<<<<
 *                                                 types=format_types,
 *                                                 numbers=format_numbers,
 */
    __pyx_t_1 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_format_keys, __pyx_v_format_keys) < 0) __PYX_ERR(0, 733, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":734
 *             format_parser = VCFFormatParser(format_keys=format_keys)
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,
 *                                                 types=format_types,             # <<<<<<<<<<<<<<
 *                                                 numbers=format_numbers,
 *                                                 chunk_length=self.chunk_length,
 */
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_types, __pyx_v_format_types) < 0) __PYX_ERR(0, 733, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":735
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,
 *                                                 types=format_types,
 *                                                 numbers=format_numbers,             # <<<<<<<<<<<<<<
 *                                                 chunk_length=self.chunk_length,
 *                                                 loc_samples=self.loc_samples,
 */
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_numbers, __pyx_v_format_numbers) < 0) __PYX_ERR(0, 733, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":736
 *                                                 types=format_types,
 *                                                 numbers=format_numbers,
 *                                                 chunk_length=self.chunk_length,             # <<<<<<<<<<<<<<
 *                                                 loc_samples=self.loc_samples,
 *                                                 fills=format_fills)
 */
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_chunk_length, __pyx_t_2) < 0) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":737
 *                                                 numbers=format_numbers,
 *                                                 chunk_length=self.chunk_length,
 *                                                 loc_samples=self.loc_samples,             # <<<<<<<<<<<<<<
 *                                                 fills=format_fills)
 *         else:
 */
    __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_self->loc_samples, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 737, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_loc_samples, __pyx_t_2) < 0) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":738
 *                                                 chunk_length=self.chunk_length,
 *                                                 loc_samples=self.loc_samples,
 *                                                 fills=format_fills)             # <<<<<<<<<<<<<<
 *         else:
 *             format_parser = VCFSkipFieldParser(key=b'FORMAT')
 */
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_fills, __pyx_v_format_fills) < 0) __PYX_ERR(0, 733, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":733
 *         if format_keys:
 *             format_parser = VCFFormatParser(format_keys=format_keys)
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,             # <<<<<<<<<<<<<<
 *                                                 types=format_types,
 *                                                 numbers=format_numbers,
 */
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParser), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_calldata_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":731
 *                 if field in fills:
 *                     format_fills[key] = fills[field]
 *         if format_keys:             # <<<<<<<<<<<<<<
 *             format_parser = VCFFormatParser(format_keys=format_keys)
 *             calldata_parser = VCFCallDataParser(format_keys=format_keys,
 */
    goto __pyx_L10;
  }

  /* "variant_tools/io_vcf_read.pyx":740
 *                                                 fills=format_fills)
 *         else:
 *             format_parser = VCFSkipFieldParser(key=b'FORMAT')             # <<<<<<<<<<<<<<
 *             calldata_parser = VCFSkipAllCallDataParser()
 *         format_parser.malloc_chunk()
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_FORMAT) < 0) __PYX_ERR(0, 740, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_format_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":741
 *         else:
 *             format_parser = VCFSkipFieldParser(key=b'FORMAT')
 *             calldata_parser = VCFSkipAllCallDataParser()             # <<<<<<<<<<<<<<
 *         format_parser.malloc_chunk()
 *         calldata_parser.malloc_chunk()
 */
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 741, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_calldata_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L10:;

  /* "variant_tools/io_vcf_read.pyx":742
 *             format_parser = VCFSkipFieldParser(key=b'FORMAT')
 *             calldata_parser = VCFSkipAllCallDataParser()
 *         format_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         calldata_parser.malloc_chunk()
 *         self.format_parser = format_parser
 */
  __pyx_t_11 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_format_parser->__pyx_vtab)->malloc_chunk(__pyx_v_format_parser); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 742, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":743
 *             calldata_parser = VCFSkipAllCallDataParser()
 *         format_parser.malloc_chunk()
 *         calldata_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.format_parser = format_parser
 *         self.calldata_parser = calldata_parser
 */
  __pyx_t_11 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_calldata_parser->__pyx_vtab)->malloc_chunk(__pyx_v_calldata_parser); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 743, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":744
 *         format_parser.malloc_chunk()
 *         calldata_parser.malloc_chunk()
 *         self.format_parser = format_parser             # <<<<<<<<<<<<<<
 *         self.calldata_parser = calldata_parser
 * 
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_format_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_format_parser));
  __Pyx_GOTREF(__pyx_v_self->format_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->format_parser));
  __pyx_v_self->format_parser = __pyx_v_format_parser;

  /* "variant_tools/io_vcf_read.pyx":745
 *         calldata_parser.malloc_chunk()
 *         self.format_parser = format_parser
 *         self.calldata_parser = calldata_parser             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_calldata_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_calldata_parser));
  __Pyx_GOTREF(__pyx_v_self->calldata_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->calldata_parser));
  __pyx_v_self->calldata_parser = __pyx_v_calldata_parser;

  /* "variant_tools/io_vcf_read.pyx":712
 *         self.info_parser = info_parser
 * 
 *     def _init_format_calldata(self, fields, types, numbers, fills):             # <<<<<<<<<<<<<<
 *         """Setup FORMAT and calldata parsers."""
 *         format_keys = list()
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser._init_format_calldata", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_format_keys);
  __Pyx_XDECREF(__pyx_v_format_types);
  __Pyx_XDECREF(__pyx_v_format_numbers);
  __Pyx_XDECREF(__pyx_v_format_fills);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_group);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF((PyObject *)__pyx_v_format_parser);
  __Pyx_XDECREF((PyObject *)__pyx_v_calldata_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":747
 *         self.calldata_parser = calldata_parser
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:             # <<<<<<<<<<<<<<
 *         """Parse to end of current chunk or EOF."""
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_9VCFParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":752
 *         # with nogil:
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if context.state == VCFState.EOF:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":754
 *         while True:
 * 
 *             if context.state == VCFState.EOF:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
    switch (__pyx_v_context->state) {
      case __pyx_e_13variant_tools_11io_vcf_read_EOF:

      /* "variant_tools/io_vcf_read.pyx":755
 * 
 *             if context.state == VCFState.EOF:
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.EOL:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":754
 *         while True:
 * 
 *             if context.state == VCFState.EOF:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_EOL:

      /* "variant_tools/io_vcf_read.pyx":760
 * 
 *                 # handle line terminators
 *                 if stream.c == LF:             # <<<<<<<<<<<<<<
 *                     stream.advance()
 *                 elif stream.c == CR:
 */
      __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":761
 *                 # handle line terminators
 *                 if stream.c == LF:
 *                     stream.advance()             # <<<<<<<<<<<<<<
 *                 elif stream.c == CR:
 *                     stream.advance()
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 761, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":760
 * 
 *                 # handle line terminators
 *                 if stream.c == LF:             # <<<<<<<<<<<<<<
 *                     stream.advance()
 *                 elif stream.c == CR:
 */
        goto __pyx_L5;
      }

      /* "variant_tools/io_vcf_read.pyx":762
 *                 if stream.c == LF:
 *                     stream.advance()
 *                 elif stream.c == CR:             # <<<<<<<<<<<<<<
 *                     stream.advance()
 *                     if stream.c == LF:
 */
      __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":763
 *                     stream.advance()
 *                 elif stream.c == CR:
 *                     stream.advance()             # <<<<<<<<<<<<<<
 *                     if stream.c == LF:
 *                         stream.advance()
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 763, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":764
 *                 elif stream.c == CR:
 *                     stream.advance()
 *                     if stream.c == LF:             # <<<<<<<<<<<<<<
 *                         stream.advance()
 *                 else:
 */
        __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
        if (__pyx_t_1) {

          /* "variant_tools/io_vcf_read.pyx":765
 *                     stream.advance()
 *                     if stream.c == LF:
 *                         stream.advance()             # <<<<<<<<<<<<<<
 *                 else:
 *                     # shouldn't ever happen
 */
          __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 765, __pyx_L1_error)

          /* "variant_tools/io_vcf_read.pyx":764
 *                 elif stream.c == CR:
 *                     stream.advance()
 *                     if stream.c == LF:             # <<<<<<<<<<<<<<
 *                         stream.advance()
 *                 else:
 */
        }

        /* "variant_tools/io_vcf_read.pyx":762
 *                 if stream.c == LF:
 *                     stream.advance()
 *                 elif stream.c == CR:             # <<<<<<<<<<<<<<
 *                     stream.advance()
 *                     if stream.c == LF:
 */
        goto __pyx_L5;
      }

      /* "variant_tools/io_vcf_read.pyx":769
 *                     # shouldn't ever happen
 *                     # with gil:
 *                     warn('unexpected EOL character', context)             # <<<<<<<<<<<<<<
 *                     break
 * 
 */
      /*else*/ {
        __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_unexpected_EOL_character, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 769, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":770
 *                     # with gil:
 *                     warn('unexpected EOL character', context)
 *                     break             # <<<<<<<<<<<<<<
 * 
 *                 # advance state
 */
        goto __pyx_L4_break;
      }
      __pyx_L5:;

      /* "variant_tools/io_vcf_read.pyx":773
 * 
 *                 # advance state
 *                 context.state = VCFState.CHROM             # <<<<<<<<<<<<<<
 * 
 *                 # end of chunk?
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_CHROM;

      /* "variant_tools/io_vcf_read.pyx":776
 * 
 *                 # end of chunk?
 *                 if context.chunk_variant_index + 1 == self.chunk_length:             # <<<<<<<<<<<<<<
 *                     # we're done
 *                     break
 */
      __pyx_t_1 = (((__pyx_v_context->chunk_variant_index + 1) == __pyx_v_self->chunk_length) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":778
 *                 if context.chunk_variant_index + 1 == self.chunk_length:
 *                     # we're done
 *                     break             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.CHROM:
 */
        goto __pyx_L4_break;

        /* "variant_tools/io_vcf_read.pyx":776
 * 
 *                 # end of chunk?
 *                 if context.chunk_variant_index + 1 == self.chunk_length:             # <<<<<<<<<<<<<<
 *                     # we're done
 *                     break
 */
      }

      /* "variant_tools/io_vcf_read.pyx":757
 *                 break
 * 
 *             elif context.state == VCFState.EOL:             # <<<<<<<<<<<<<<
 * 
 *                 # handle line terminators
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_CHROM:

      /* "variant_tools/io_vcf_read.pyx":781
 * 
 *             elif context.state == VCFState.CHROM:
 *                 self.chrom_pos_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.ID:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->chrom_pos_parser->__pyx_vtab)->parse(__pyx_v_self->chrom_pos_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 781, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":780
 *                     break
 * 
 *             elif context.state == VCFState.CHROM:             # <<<<<<<<<<<<<<
 *                 self.chrom_pos_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_ID:

      /* "variant_tools/io_vcf_read.pyx":784
 * 
 *             elif context.state == VCFState.ID:
 *                 self.id_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.REF:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->id_parser->__pyx_vtab)->parse(__pyx_v_self->id_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 784, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":783
 *                 self.chrom_pos_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.ID:             # <<<<<<<<<<<<<<
 *                 self.id_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_REF:

      /* "variant_tools/io_vcf_read.pyx":787
 * 
 *             elif context.state == VCFState.REF:
 *                 self.ref_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.ALT:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->ref_parser->__pyx_vtab)->parse(__pyx_v_self->ref_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 787, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":786
 *                 self.id_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.REF:             # <<<<<<<<<<<<<<
 *                 self.ref_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_ALT:

      /* "variant_tools/io_vcf_read.pyx":790
 * 
 *             elif context.state == VCFState.ALT:
 *                 self.alt_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.QUAL:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->alt_parser->__pyx_vtab)->parse(__pyx_v_self->alt_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 790, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":789
 *                 self.ref_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.ALT:             # <<<<<<<<<<<<<<
 *                 self.alt_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_QUAL:

      /* "variant_tools/io_vcf_read.pyx":793
 * 
 *             elif context.state == VCFState.QUAL:
 *                 self.qual_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.FILTER:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->qual_parser->__pyx_vtab)->parse(__pyx_v_self->qual_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 793, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":792
 *                 self.alt_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.QUAL:             # <<<<<<<<<<<<<<
 *                 self.qual_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_FILTER:

      /* "variant_tools/io_vcf_read.pyx":796
 * 
 *             elif context.state == VCFState.FILTER:
 *                 self.filter_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.INFO:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->filter_parser->__pyx_vtab)->parse(__pyx_v_self->filter_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 796, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":795
 *                 self.qual_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.FILTER:             # <<<<<<<<<<<<<<
 *                 self.filter_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_INFO:

      /* "variant_tools/io_vcf_read.pyx":799
 * 
 *             elif context.state == VCFState.INFO:
 *                 self.info_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.FORMAT:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->info_parser->__pyx_vtab)->parse(__pyx_v_self->info_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 799, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":798
 *                 self.filter_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.INFO:             # <<<<<<<<<<<<<<
 *                 self.info_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_FORMAT:

      /* "variant_tools/io_vcf_read.pyx":802
 * 
 *             elif context.state == VCFState.FORMAT:
 *                 self.format_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             elif context.state == VCFState.CALLDATA:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->format_parser->__pyx_vtab)->parse(__pyx_v_self->format_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 802, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":801
 *                 self.info_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.FORMAT:             # <<<<<<<<<<<<<<
 *                 self.format_parser.parse(stream, context)
 * 
 */
      break;
      case __pyx_e_13variant_tools_11io_vcf_read_CALLDATA:

      /* "variant_tools/io_vcf_read.pyx":805
 * 
 *             elif context.state == VCFState.CALLDATA:
 *                 self.calldata_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->calldata_parser->__pyx_vtab)->parse(__pyx_v_self->calldata_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 805, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":804
 *                 self.format_parser.parse(stream, context)
 * 
 *             elif context.state == VCFState.CALLDATA:             # <<<<<<<<<<<<<<
 *                 self.calldata_parser.parse(stream, context)
 * 
 */
      break;
      default:

      /* "variant_tools/io_vcf_read.pyx":810
 *                 # shouldn't ever happen
 *                 # with gil:
 *                 warn('unexpected parser state', context)             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_unexpected_parser_state, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 810, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":811
 *                 # with gil:
 *                 warn('unexpected parser state', context)
 *                 break             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
      goto __pyx_L4_break;
      break;
    }
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":747
 *         self.calldata_parser = calldata_parser
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:             # <<<<<<<<<<<<<<
 *         """Parse to end of current chunk or EOF."""
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":813
 *                 break
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.chrom_pos_parser.malloc_chunk()
 *         self.id_parser.malloc_chunk()
 */

static int __pyx_f_13variant_tools_11io_vcf_read_9VCFParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":814
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         self.chrom_pos_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.id_parser.malloc_chunk()
 *         self.ref_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->chrom_pos_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->chrom_pos_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 814, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":815
 *     cdef int malloc_chunk(self) except -1:
 *         self.chrom_pos_parser.malloc_chunk()
 *         self.id_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.ref_parser.malloc_chunk()
 *         self.alt_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->id_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->id_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 815, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":816
 *         self.chrom_pos_parser.malloc_chunk()
 *         self.id_parser.malloc_chunk()
 *         self.ref_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.alt_parser.malloc_chunk()
 *         self.qual_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->ref_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->ref_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 816, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":817
 *         self.id_parser.malloc_chunk()
 *         self.ref_parser.malloc_chunk()
 *         self.alt_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.qual_parser.malloc_chunk()
 *         self.filter_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->alt_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->alt_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 817, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":818
 *         self.ref_parser.malloc_chunk()
 *         self.alt_parser.malloc_chunk()
 *         self.qual_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.filter_parser.malloc_chunk()
 *         self.info_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->qual_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->qual_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 818, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":819
 *         self.alt_parser.malloc_chunk()
 *         self.qual_parser.malloc_chunk()
 *         self.filter_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.info_parser.malloc_chunk()
 *         self.format_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->filter_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->filter_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 819, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":820
 *         self.qual_parser.malloc_chunk()
 *         self.filter_parser.malloc_chunk()
 *         self.info_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.format_parser.malloc_chunk()
 *         self.calldata_parser.malloc_chunk()
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->info_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->info_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 820, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":821
 *         self.filter_parser.malloc_chunk()
 *         self.info_parser.malloc_chunk()
 *         self.format_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 *         self.calldata_parser.malloc_chunk()
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->format_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->format_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 821, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":822
 *         self.info_parser.malloc_chunk()
 *         self.format_parser.malloc_chunk()
 *         self.calldata_parser.malloc_chunk()             # <<<<<<<<<<<<<<
 * 
 *     cdef object make_chunk(self, chunk_length):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->calldata_parser->__pyx_vtab)->malloc_chunk(__pyx_v_self->calldata_parser); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 822, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":813
 *                 break
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.chrom_pos_parser.malloc_chunk()
 *         self.id_parser.malloc_chunk()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":824
 *         self.calldata_parser.malloc_chunk()
 * 
 *     cdef object make_chunk(self, chunk_length):             # <<<<<<<<<<<<<<
 *         if chunk_length > 0:
 *             if chunk_length < self.chunk_length:
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read_9VCFParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v_chunk_length) {
  PyObject *__pyx_v_limit = NULL;
  PyObject *__pyx_v_chunk = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk __pyx_t_5;
  __Pyx_RefNannySetupContext("make_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":825
 * 
 *     cdef object make_chunk(self, chunk_length):
 *         if chunk_length > 0:             # <<<<<<<<<<<<<<
 *             if chunk_length < self.chunk_length:
 *                 limit = chunk_length
 */
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_chunk_length, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 825, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":826
 *     cdef object make_chunk(self, chunk_length):
 *         if chunk_length > 0:
 *             if chunk_length < self.chunk_length:             # <<<<<<<<<<<<<<
 *                 limit = chunk_length
 *             else:
 */
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_chunk_length, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":827
 *         if chunk_length > 0:
 *             if chunk_length < self.chunk_length:
 *                 limit = chunk_length             # <<<<<<<<<<<<<<
 *             else:
 *                 limit = None
 */
      __Pyx_INCREF(__pyx_v_chunk_length);
      __pyx_v_limit = __pyx_v_chunk_length;

      /* "variant_tools/io_vcf_read.pyx":826
 *     cdef object make_chunk(self, chunk_length):
 *         if chunk_length > 0:
 *             if chunk_length < self.chunk_length:             # <<<<<<<<<<<<<<
 *                 limit = chunk_length
 *             else:
 */
      goto __pyx_L4;
    }

    /* "variant_tools/io_vcf_read.pyx":829
 *                 limit = chunk_length
 *             else:
 *                 limit = None             # <<<<<<<<<<<<<<
 *             chunk = dict()
 *             self.chrom_pos_parser.make_chunk(chunk, limit=limit)
 */
    /*else*/ {
      __Pyx_INCREF(Py_None);
      __pyx_v_limit = Py_None;
    }
    __pyx_L4:;

    /* "variant_tools/io_vcf_read.pyx":830
 *             else:
 *                 limit = None
 *             chunk = dict()             # <<<<<<<<<<<<<<
 *             self.chrom_pos_parser.make_chunk(chunk, limit=limit)
 *             self.id_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 830, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_chunk = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":831
 *                 limit = None
 *             chunk = dict()
 *             self.chrom_pos_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.id_parser.make_chunk(chunk, limit=limit)
 *             self.ref_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->chrom_pos_parser->__pyx_vtab)->make_chunk(__pyx_v_self->chrom_pos_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 831, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":832
 *             chunk = dict()
 *             self.chrom_pos_parser.make_chunk(chunk, limit=limit)
 *             self.id_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.ref_parser.make_chunk(chunk, limit=limit)
 *             self.alt_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->id_parser->__pyx_vtab)->make_chunk(__pyx_v_self->id_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 832, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":833
 *             self.chrom_pos_parser.make_chunk(chunk, limit=limit)
 *             self.id_parser.make_chunk(chunk, limit=limit)
 *             self.ref_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.alt_parser.make_chunk(chunk, limit=limit)
 *             self.qual_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->ref_parser->__pyx_vtab)->make_chunk(__pyx_v_self->ref_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 833, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":834
 *             self.id_parser.make_chunk(chunk, limit=limit)
 *             self.ref_parser.make_chunk(chunk, limit=limit)
 *             self.alt_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.qual_parser.make_chunk(chunk, limit=limit)
 *             self.filter_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->alt_parser->__pyx_vtab)->make_chunk(__pyx_v_self->alt_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 834, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":835
 *             self.ref_parser.make_chunk(chunk, limit=limit)
 *             self.alt_parser.make_chunk(chunk, limit=limit)
 *             self.qual_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.filter_parser.make_chunk(chunk, limit=limit)
 *             self.info_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->qual_parser->__pyx_vtab)->make_chunk(__pyx_v_self->qual_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 835, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":836
 *             self.alt_parser.make_chunk(chunk, limit=limit)
 *             self.qual_parser.make_chunk(chunk, limit=limit)
 *             self.filter_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.info_parser.make_chunk(chunk, limit=limit)
 *             self.calldata_parser.make_chunk(chunk, limit=limit)
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->filter_parser->__pyx_vtab)->make_chunk(__pyx_v_self->filter_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 836, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":837
 *             self.qual_parser.make_chunk(chunk, limit=limit)
 *             self.filter_parser.make_chunk(chunk, limit=limit)
 *             self.info_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             self.calldata_parser.make_chunk(chunk, limit=limit)
 *             return chunk
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->info_parser->__pyx_vtab)->make_chunk(__pyx_v_self->info_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 837, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":838
 *             self.filter_parser.make_chunk(chunk, limit=limit)
 *             self.info_parser.make_chunk(chunk, limit=limit)
 *             self.calldata_parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 *             return chunk
 * 
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self->calldata_parser->__pyx_vtab)->make_chunk(__pyx_v_self->calldata_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 838, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":839
 *             self.info_parser.make_chunk(chunk, limit=limit)
 *             self.calldata_parser.make_chunk(chunk, limit=limit)
 *             return chunk             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_chunk);
    __pyx_r = __pyx_v_chunk;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":825
 * 
 *     cdef object make_chunk(self, chunk_length):
 *         if chunk_length > 0:             # <<<<<<<<<<<<<<
 *             if chunk_length < self.chunk_length:
 *                 limit = chunk_length
 */
  }

  /* "variant_tools/io_vcf_read.pyx":842
 * 
 *         else:
 *             return None             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;
  }

  /* "variant_tools/io_vcf_read.pyx":824
 *         self.calldata_parser.malloc_chunk()
 * 
 *     cdef object make_chunk(self, chunk_length):             # <<<<<<<<<<<<<<
 *         if chunk_length > 0:
 *             if chunk_length < self.chunk_length:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_limit);
  __Pyx_XDECREF(__pyx_v_chunk);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_20__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_20__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.alt_parser, self.calldata_parser, self.chrom_pos_parser, self.chunk_length, self.filter_parser, self.format_parser, self.id_parser, self.info_parser, self.loc_samples, self.qual_parser, self.ref_parser, self.region_begin, self.region_chrom, self.region_end)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_self->loc_samples, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->region_begin); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->region_end); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(14); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->alt_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->alt_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_v_self->alt_parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->calldata_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->calldata_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->calldata_parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->chrom_pos_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->chrom_pos_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_v_self->chrom_pos_parser));
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->filter_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->filter_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_v_self->filter_parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->format_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->format_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 5, ((PyObject *)__pyx_v_self->format_parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->id_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->id_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_v_self->id_parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->info_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->info_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->info_parser));
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 8, __pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->qual_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->qual_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 9, ((PyObject *)__pyx_v_self->qual_parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->ref_parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->ref_parser));
  PyTuple_SET_ITEM(__pyx_t_5, 10, ((PyObject *)__pyx_v_self->ref_parser));
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 11, __pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->region_chrom);
  __Pyx_GIVEREF(__pyx_v_self->region_chrom);
  PyTuple_SET_ITEM(__pyx_t_5, 12, __pyx_v_self->region_chrom);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 13, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.alt_parser, self.calldata_parser, self.chrom_pos_parser, self.chunk_length, self.filter_parser, self.format_parser, self.id_parser, self.info_parser, self.loc_samples, self.qual_parser, self.ref_parser, self.region_begin, self.region_chrom, self.region_end)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.alt_parser, self.calldata_parser, self.chrom_pos_parser, self.chunk_length, self.filter_parser, self.format_parser, self.id_parser, self.info_parser, self.loc_samples, self.qual_parser, self.ref_parser, self.region_begin, self.region_chrom, self.region_end)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.alt_parser is not None or self.calldata_parser is not None or self.chrom_pos_parser is not None or self.filter_parser is not None or self.format_parser is not None or self.id_parser is not None or self.info_parser is not None or self.qual_parser is not None or self.ref_parser is not None or self.region_chrom is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.alt_parser, self.calldata_parser, self.chrom_pos_parser, self.chunk_length, self.filter_parser, self.format_parser, self.id_parser, self.info_parser, self.loc_samples, self.qual_parser, self.ref_parser, self.region_begin, self.region_chrom, self.region_end)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.alt_parser is not None or self.calldata_parser is not None or self.chrom_pos_parser is not None or self.filter_parser is not None or self.format_parser is not None or self.id_parser is not None or self.info_parser is not None or self.qual_parser is not None or self.ref_parser is not None or self.region_chrom is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->alt_parser) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->calldata_parser) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (((PyObject *)__pyx_v_self->chrom_pos_parser) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->filter_parser) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (((PyObject *)__pyx_v_self->format_parser) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->id_parser) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (((PyObject *)__pyx_v_self->info_parser) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->qual_parser) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (((PyObject *)__pyx_v_self->ref_parser) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->region_chrom != ((PyObject*)Py_None));
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.alt_parser is not None or self.calldata_parser is not None or self.chrom_pos_parser is not None or self.filter_parser is not None or self.format_parser is not None or self.id_parser is not None or self.info_parser is not None or self.qual_parser is not None or self.ref_parser is not None or self.region_chrom is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.alt_parser is not None or self.calldata_parser is not None or self.chrom_pos_parser is not None or self.filter_parser is not None or self.format_parser is not None or self.id_parser is not None or self.info_parser is not None or self.qual_parser is not None or self.ref_parser is not None or self.region_chrom is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFParser); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_72589021);
    __Pyx_GIVEREF(__pyx_int_72589021);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_72589021);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.alt_parser is not None or self.calldata_parser is not None or self.chrom_pos_parser is not None or self.filter_parser is not None or self.format_parser is not None or self.id_parser is not None or self.info_parser is not None or self.qual_parser is not None or self.ref_parser is not None or self.region_chrom is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, None), state
 *     else:
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_72589021);
    __Pyx_GIVEREF(__pyx_int_72589021);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_72589021);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_22__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_9VCFParser_22__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFParser, (type(self), 0x4539edd, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":857
 *         np.ndarray values
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=None, chunk_length=0):             # <<<<<<<<<<<<<<
 *         self.key = key
 *         if dtype is not None:
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_number = 0;
  PyObject *__pyx_v_fill = 0;
  PyObject *__pyx_v_chunk_length = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_dtype,&__pyx_n_s_number,&__pyx_n_s_fill,&__pyx_n_s_chunk_length,0};
    PyObject* values[5] = {0,0,0,0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    values[2] = ((PyObject *)__pyx_int_1);
    values[3] = ((PyObject *)Py_None);
    values[4] = ((PyObject *)__pyx_int_0);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_number);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fill);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 857, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_key = values[0];
    __pyx_v_dtype = values[1];
    __pyx_v_number = values[2];
    __pyx_v_fill = values[3];
    __pyx_v_chunk_length = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 857, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFieldParserBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self), __pyx_v_key, __pyx_v_dtype, __pyx_v_number, __pyx_v_fill, __pyx_v_chunk_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_fill, PyObject *__pyx_v_chunk_length) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_dtype);

  /* "variant_tools/io_vcf_read.pyx":858
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=None, chunk_length=0):
 *         self.key = key             # <<<<<<<<<<<<<<
 *         if dtype is not None:
 *             dtype = np.dtype(dtype)
 */
  if (!(likely(PyBytes_CheckExact(__pyx_v_key))||((__pyx_v_key) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_key)->tp_name), 0))) __PYX_ERR(0, 858, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_key;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->key);
  __Pyx_DECREF(__pyx_v_self->key);
  __pyx_v_self->key = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":859
 *     def __init__(self, key=None, dtype=None, number=1, fill=None, chunk_length=0):
 *         self.key = key
 *         if dtype is not None:             # <<<<<<<<<<<<<<
 *             dtype = np.dtype(dtype)
 *             self.itemsize = dtype.itemsize
 */
  __pyx_t_2 = (__pyx_v_dtype != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":860
 *         self.key = key
 *         if dtype is not None:
 *             dtype = np.dtype(dtype)             # <<<<<<<<<<<<<<
 *             self.itemsize = dtype.itemsize
 *         else:
 */
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_v_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_dtype, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":861
 *         if dtype is not None:
 *             dtype = np.dtype(dtype)
 *             self.itemsize = dtype.itemsize             # <<<<<<<<<<<<<<
 *         else:
 *             self.itemsize = 0
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->itemsize = __pyx_t_4;

    /* "variant_tools/io_vcf_read.pyx":859
 *     def __init__(self, key=None, dtype=None, number=1, fill=None, chunk_length=0):
 *         self.key = key
 *         if dtype is not None:             # <<<<<<<<<<<<<<
 *             dtype = np.dtype(dtype)
 *             self.itemsize = dtype.itemsize
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":863
 *             self.itemsize = dtype.itemsize
 *         else:
 *             self.itemsize = 0             # <<<<<<<<<<<<<<
 *         self.dtype = dtype
 *         self.number = number
 */
  /*else*/ {
    __pyx_v_self->itemsize = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":864
 *         else:
 *             self.itemsize = 0
 *         self.dtype = dtype             # <<<<<<<<<<<<<<
 *         self.number = number
 *         self.fill = fill
 */
  if (!(likely(((__pyx_v_dtype) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtype, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(0, 864, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_dtype;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->dtype));
  __pyx_v_self->dtype = ((PyArray_Descr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":865
 *             self.itemsize = 0
 *         self.dtype = dtype
 *         self.number = number             # <<<<<<<<<<<<<<
 *         self.fill = fill
 *         self.chunk_length = chunk_length
 */
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_number); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
  __pyx_v_self->number = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":866
 *         self.dtype = dtype
 *         self.number = number
 *         self.fill = fill             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 * 
 */
  __Pyx_INCREF(__pyx_v_fill);
  __Pyx_GIVEREF(__pyx_v_fill);
  __Pyx_GOTREF(__pyx_v_self->fill);
  __Pyx_DECREF(__pyx_v_self->fill);
  __pyx_v_self->fill = __pyx_v_fill;

  /* "variant_tools/io_vcf_read.pyx":867
 *         self.number = number
 *         self.fill = fill
 *         self.chunk_length = chunk_length             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_chunk_length); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 867, __pyx_L1_error)
  __pyx_v_self->chunk_length = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":857
 *         np.ndarray values
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=None, chunk_length=0):             # <<<<<<<<<<<<<<
 *         self.key = key
 *         if dtype is not None:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFieldParserBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dtype);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":869
 *         self.chunk_length = chunk_length
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("parse", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":872
 *         pass
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":875
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'variants/' + self.key
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":876
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'variants/' + self.key
 *         else:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 876, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":877
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:
 *             field = 'variants/' + self.key             # <<<<<<<<<<<<<<
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_v_self->key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":876
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'variants/' + self.key
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":879
 *             field = 'variants/' + self.key
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *         values = self.values
 *         if self.values.ndim > 1 and self.number == 1:
 */
  /*else*/ {
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_self->key);
    __Pyx_GIVEREF(__pyx_v_self->key);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->key);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":880
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')
 *         values = self.values             # <<<<<<<<<<<<<<
 *         if self.values.ndim > 1 and self.number == 1:
 *             values = values.squeeze(axis=1)
 */
  __pyx_t_1 = ((PyObject *)__pyx_v_self->values);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_values = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":881
 *             field = 'variants/' + str(self.key, 'ascii')
 *         values = self.values
 *         if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=1)
 *         chunk[field] = values[:limit]
 */
  __pyx_t_4 = ((__pyx_v_self->values->nd > 1) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = ((__pyx_v_self->number == 1) != 0);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":882
 *         values = self.values
 *         if self.values.ndim > 1 and self.number == 1:
 *             values = values.squeeze(axis=1)             # <<<<<<<<<<<<<<
 *         chunk[field] = values[:limit]
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 882, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":881
 *             field = 'variants/' + str(self.key, 'ascii')
 *         values = self.values
 *         if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=1)
 *         chunk[field] = values[:limit]
 */
  }

  /* "variant_tools/io_vcf_read.pyx":883
 *         if self.values.ndim > 1 and self.number == 1:
 *             values = values.squeeze(axis=1)
 *         chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_5) < 0)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":875
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'variants/' + self.key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFieldParserBase.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->dtype));
  __Pyx_INCREF(__pyx_v_self->fill);
  __Pyx_GIVEREF(__pyx_v_self->fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->key);
  __Pyx_GIVEREF(__pyx_v_self->key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFFieldParserBas); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFFieldParserBase__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFFieldParserBas); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFieldParserBase.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFFieldParserBase__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFFieldParserBase_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFFieldParserBase__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFFieldParserBase__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFFieldParserBase, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFFieldParserBase__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFieldParserBase.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":889
 *     """Parser to skip a tab-delimited field."""
 * 
 *     def __init__(self, key):             # <<<<<<<<<<<<<<
 *         super(VCFSkipFieldParser, self).__init__(key=key)
 * 
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 889, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_key = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 889, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipFieldParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *)__pyx_v_self), __pyx_v_key);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":890
 * 
 *     def __init__(self, key):
 *         super(VCFSkipFieldParser, self).__init__(key=key)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_v_key) < 0) __PYX_ERR(0, 890, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":889
 *     """Parser to skip a tab-delimited field."""
 * 
 *     def __init__(self, key):             # <<<<<<<<<<<<<<
 *         super(VCFSkipFieldParser, self).__init__(key=key)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipFieldParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":892
 *         super(VCFSkipFieldParser, self).__init__(key=key)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":894
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":896
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":897
 * 
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":898
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":896
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":900
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":901
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":902
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":900
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":904
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 stream.advance()
 *                 context.state += 1
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":905
 * 
 *             elif stream.c == TAB:
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 context.state += 1
 *                 break
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 905, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":906
 *             elif stream.c == TAB:
 *                 stream.advance()
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":907
 *                 stream.advance()
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":904
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 stream.advance()
 *                 context.state += 1
 */
    }

    /* "variant_tools/io_vcf_read.pyx":910
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 910, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":892
 *         super(VCFSkipFieldParser, self).__init__(key=key)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipFieldParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":912
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":915
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk *__pyx_optional_args) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
  }

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFSkipFieldParse); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFSkipFieldParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFSkipFieldParse); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipFieldParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFSkipFieldParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFSkipFieldParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipFieldParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFSkipFieldParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFSkipFieldParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipFieldParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":919
 * 
 * 
 * def check_string_dtype(dtype):             # <<<<<<<<<<<<<<
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_3check_string_dtype(PyObject *__pyx_self, PyObject *__pyx_v_dtype); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_3check_string_dtype = {"check_string_dtype", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_3check_string_dtype, METH_O, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_3check_string_dtype(PyObject *__pyx_self, PyObject *__pyx_v_dtype) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("check_string_dtype (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_2check_string_dtype(__pyx_self, ((PyObject *)__pyx_v_dtype));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_2check_string_dtype(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dtype) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("check_string_dtype", 0);
  __Pyx_INCREF(__pyx_v_dtype);

  /* "variant_tools/io_vcf_read.pyx":920
 * 
 * def check_string_dtype(dtype):
 *     dtype = np.dtype(dtype)             # <<<<<<<<<<<<<<
 *     if dtype.kind not in ['S', 'O']:
 *         raise ValueError("expected string ('S') or object ('O') dtype, found: %r" % dtype)
 */
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_v_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_dtype, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":921
 * def check_string_dtype(dtype):
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:             # <<<<<<<<<<<<<<
 *         raise ValueError("expected string ('S') or object ('O') dtype, found: %r" % dtype)
 *     return dtype
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_S, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 921, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_O, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 921, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (unlikely(__pyx_t_3)) {

    /* "variant_tools/io_vcf_read.pyx":922
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:
 *         raise ValueError("expected string ('S') or object ('O') dtype, found: %r" % dtype)             # <<<<<<<<<<<<<<
 *     return dtype
 * 
 */
    __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_expected_string_S_or_object_O_dt, __pyx_v_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 922, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":921
 * def check_string_dtype(dtype):
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:             # <<<<<<<<<<<<<<
 *         raise ValueError("expected string ('S') or object ('O') dtype, found: %r" % dtype)
 *     return dtype
 */
  }

  /* "variant_tools/io_vcf_read.pyx":923
 *     if dtype.kind not in ['S', 'O']:
 *         raise ValueError("expected string ('S') or object ('O') dtype, found: %r" % dtype)
 *     return dtype             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_dtype);
  __pyx_r = __pyx_v_dtype;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":919
 * 
 * 
 * def check_string_dtype(dtype):             # <<<<<<<<<<<<<<
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.check_string_dtype", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dtype);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":926
 * 
 * 
 * cdef int vcf_read_field(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                         VCFContext context,
 *                         CharVector* dest) except -1:  # nogil
 */

static int __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_dest) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("vcf_read_field", 0);

  /* "variant_tools/io_vcf_read.pyx":931
 * 
 *     # setup temp vector to store value
 *     CharVector_clear(dest)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear(__pyx_v_dest);

  /* "variant_tools/io_vcf_read.pyx":933
 *     CharVector_clear(dest)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":935
 *     while True:
 * 
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             break
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":936
 * 
 *         if stream.c == 0:
 *             context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":937
 *         if stream.c == 0:
 *             context.state = VCFState.EOF
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":935
 *     while True:
 * 
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":939
 *             break
 * 
 *         elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOL
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":940
 * 
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":941
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == TAB:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":939
 *             break
 * 
 *         elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOL
 *             break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":943
 *             break
 * 
 *         elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *             stream.advance()
 *             # leave it to caller to advance state
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":944
 * 
 *         elif stream.c == TAB:
 *             stream.advance()             # <<<<<<<<<<<<<<
 *             # leave it to caller to advance state
 *             break
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 944, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":946
 *             stream.advance()
 *             # leave it to caller to advance state
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":943
 *             break
 * 
 *         elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *             stream.advance()
 *             # leave it to caller to advance state
 */
    }

    /* "variant_tools/io_vcf_read.pyx":949
 * 
 *         else:
 *             CharVector_append(dest, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         # advance input stream
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append(__pyx_v_dest, __pyx_v_stream->c);
    }

    /* "variant_tools/io_vcf_read.pyx":952
 * 
 *         # advance input stream
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 952, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":926
 * 
 * 
 * cdef int vcf_read_field(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                         VCFContext context,
 *                         CharVector* dest) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_read_field", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":955
 * 
 * 
 * cdef int vcf_parse_missing(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                            VCFContext context) except -1:  # nogil
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_vcf_parse_missing(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("vcf_parse_missing", 0);

  /* "variant_tools/io_vcf_read.pyx":958
 *                            VCFContext context) except -1:  # nogil
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":960
 *     while True:
 * 
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             break
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":961
 * 
 *         if stream.c == 0:
 *             context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":962
 *         if stream.c == 0:
 *             context.state = VCFState.EOF
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":960
 *     while True:
 * 
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":964
 *             break
 * 
 *         elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOL
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":965
 * 
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":966
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == TAB:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":964
 *             break
 * 
 *         elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOL
 *             break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":968
 *             break
 * 
 *         elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *             # advance input stream beyond tab
 *             stream.advance()
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":970
 *         elif stream.c == TAB:
 *             # advance input stream beyond tab
 *             stream.advance()             # <<<<<<<<<<<<<<
 *             context.state += 1
 *             break
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 970, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":971
 *             # advance input stream beyond tab
 *             stream.advance()
 *             context.state += 1             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":972
 *             stream.advance()
 *             context.state += 1
 *             break             # <<<<<<<<<<<<<<
 * 
 *         # advance input stream
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":968
 *             break
 * 
 *         elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *             # advance input stream beyond tab
 *             stream.advance()
 */
    }

    /* "variant_tools/io_vcf_read.pyx":975
 * 
 *         # advance input stream
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 975, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":955
 * 
 * 
 * cdef int vcf_parse_missing(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                            VCFContext context) except -1:  # nogil
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_parse_missing", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":978
 * 
 * 
 * cdef int vcf_skip_variant(InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *     # skip to EOL or EOF
 *     while True:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_vcf_skip_variant(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("vcf_skip_variant", 0);

  /* "variant_tools/io_vcf_read.pyx":980
 * cdef int vcf_skip_variant(InputStreamBase stream, VCFContext context) except -1:  # nogil
 *     # skip to EOL or EOF
 *     while True:             # <<<<<<<<<<<<<<
 *         if stream.c == 0:
 *             context.state = VCFState.EOF
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":981
 *     # skip to EOL or EOF
 *     while True:
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             break
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":982
 *     while True:
 *         if stream.c == 0:
 *             context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *             break
 *         elif stream.c == LF or stream.c == CR:
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":983
 *         if stream.c == 0:
 *             context.state = VCFState.EOF
 *             break             # <<<<<<<<<<<<<<
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":981
 *     # skip to EOL or EOF
 *     while True:
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":984
 *             context.state = VCFState.EOF
 *             break
 *         elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOL
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":985
 *             break
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *             break
 *         # advance input stream
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":986
 *         elif stream.c == LF or stream.c == CR:
 *             context.state = VCFState.EOL
 *             break             # <<<<<<<<<<<<<<
 *         # advance input stream
 *         stream.advance()
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":984
 *             context.state = VCFState.EOF
 *             break
 *         elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOL
 *             break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":988
 *             break
 *         # advance input stream
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 988, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":978
 * 
 * 
 * cdef int vcf_skip_variant(InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *     # skip to EOL or EOF
 *     while True:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_skip_variant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1004
 *         np.ndarray pos_values
 * 
 *     def __init__(self, dtype, store_chrom, store_pos, chunk_length, region_chrom,             # <<<<<<<<<<<<<<
 *                  region_begin, region_end):
 *         if store_chrom:
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_store_chrom = 0;
  PyObject *__pyx_v_store_pos = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_region_chrom = 0;
  PyObject *__pyx_v_region_begin = 0;
  PyObject *__pyx_v_region_end = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dtype,&__pyx_n_s_store_chrom,&__pyx_n_s_store_pos,&__pyx_n_s_chunk_length,&__pyx_n_s_region_chrom,&__pyx_n_s_region_begin,&__pyx_n_s_region_end,0};
    PyObject* values[7] = {0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_chrom)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 1); __PYX_ERR(0, 1004, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_pos)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 2); __PYX_ERR(0, 1004, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 3); __PYX_ERR(0, 1004, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_region_chrom)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 4); __PYX_ERR(0, 1004, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_region_begin)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 5); __PYX_ERR(0, 1004, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_region_end)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 6); __PYX_ERR(0, 1004, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1004, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
    }
    __pyx_v_dtype = values[0];
    __pyx_v_store_chrom = values[1];
    __pyx_v_store_pos = values[2];
    __pyx_v_chunk_length = values[3];
    __pyx_v_region_chrom = values[4];
    __pyx_v_region_begin = values[5];
    __pyx_v_region_end = values[6];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1004, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)__pyx_v_self), __pyx_v_dtype, __pyx_v_store_chrom, __pyx_v_store_pos, __pyx_v_chunk_length, __pyx_v_region_chrom, __pyx_v_region_begin, __pyx_v_region_end);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_store_chrom, PyObject *__pyx_v_store_pos, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_region_chrom, PyObject *__pyx_v_region_begin, PyObject *__pyx_v_region_end) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  char *__pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_dtype);

  /* "variant_tools/io_vcf_read.pyx":1006
 *     def __init__(self, dtype, store_chrom, store_pos, chunk_length, region_chrom,
 *                  region_begin, region_end):
 *         if store_chrom:             # <<<<<<<<<<<<<<
 *             dtype = check_string_dtype(dtype)
 *         super(VCFChromPosParser, self).__init__(key=b'CHROM', dtype=dtype, number=1, chunk_length=chunk_length)
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_chrom); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1006, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1007
 *                  region_begin, region_end):
 *         if store_chrom:
 *             dtype = check_string_dtype(dtype)             # <<<<<<<<<<<<<<
 *         super(VCFChromPosParser, self).__init__(key=b'CHROM', dtype=dtype, number=1, chunk_length=chunk_length)
 *         self.store_chrom = store_chrom
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1007, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_dtype) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_dtype);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1007, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_dtype, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1006
 *     def __init__(self, dtype, store_chrom, store_pos, chunk_length, region_chrom,
 *                  region_begin, region_end):
 *         if store_chrom:             # <<<<<<<<<<<<<<
 *             dtype = check_string_dtype(dtype)
 *         super(VCFChromPosParser, self).__init__(key=b'CHROM', dtype=dtype, number=1, chunk_length=chunk_length)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1008
 *         if store_chrom:
 *             dtype = check_string_dtype(dtype)
 *         super(VCFChromPosParser, self).__init__(key=b'CHROM', dtype=dtype, number=1, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *         self.store_chrom = store_chrom
 *         self.store_pos = store_pos
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_key, __pyx_n_b_CHROM) < 0) __PYX_ERR(0, 1008, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_v_dtype) < 0) __PYX_ERR(0, 1008, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_int_1) < 0) __PYX_ERR(0, 1008, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1008, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1009
 *             dtype = check_string_dtype(dtype)
 *         super(VCFChromPosParser, self).__init__(key=b'CHROM', dtype=dtype, number=1, chunk_length=chunk_length)
 *         self.store_chrom = store_chrom             # <<<<<<<<<<<<<<
 *         self.store_pos = store_pos
 *         if region_chrom:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_chrom); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1009, __pyx_L1_error)
  __pyx_v_self->store_chrom = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1010
 *         super(VCFChromPosParser, self).__init__(key=b'CHROM', dtype=dtype, number=1, chunk_length=chunk_length)
 *         self.store_chrom = store_chrom
 *         self.store_pos = store_pos             # <<<<<<<<<<<<<<
 *         if region_chrom:
 *             self.region_chrom = <char*> region_chrom
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_pos); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1010, __pyx_L1_error)
  __pyx_v_self->store_pos = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1011
 *         self.store_chrom = store_chrom
 *         self.store_pos = store_pos
 *         if region_chrom:             # <<<<<<<<<<<<<<
 *             self.region_chrom = <char*> region_chrom
 *             self.region_begin = region_begin
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_region_chrom); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1011, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1012
 *         self.store_pos = store_pos
 *         if region_chrom:
 *             self.region_chrom = <char*> region_chrom             # <<<<<<<<<<<<<<
 *             self.region_begin = region_begin
 *             self.region_end = region_end
 */
    __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_region_chrom); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1012, __pyx_L1_error)
    __pyx_v_self->region_chrom = ((char *)__pyx_t_5);

    /* "variant_tools/io_vcf_read.pyx":1013
 *         if region_chrom:
 *             self.region_chrom = <char*> region_chrom
 *             self.region_begin = region_begin             # <<<<<<<<<<<<<<
 *             self.region_end = region_end
 *         else:
 */
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_region_begin); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1013, __pyx_L1_error)
    __pyx_v_self->region_begin = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":1014
 *             self.region_chrom = <char*> region_chrom
 *             self.region_begin = region_begin
 *             self.region_end = region_end             # <<<<<<<<<<<<<<
 *         else:
 *             self.region_chrom = NULL
 */
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_region_end); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1014, __pyx_L1_error)
    __pyx_v_self->region_end = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":1011
 *         self.store_chrom = store_chrom
 *         self.store_pos = store_pos
 *         if region_chrom:             # <<<<<<<<<<<<<<
 *             self.region_chrom = <char*> region_chrom
 *             self.region_begin = region_begin
 */
    goto __pyx_L4;
  }

  /* "variant_tools/io_vcf_read.pyx":1016
 *             self.region_end = region_end
 *         else:
 *             self.region_chrom = NULL             # <<<<<<<<<<<<<<
 *             self.region_begin = 0
 *             self.region_end = 0
 */
  /*else*/ {
    __pyx_v_self->region_chrom = NULL;

    /* "variant_tools/io_vcf_read.pyx":1017
 *         else:
 *             self.region_chrom = NULL
 *             self.region_begin = 0             # <<<<<<<<<<<<<<
 *             self.region_end = 0
 * 
 */
    __pyx_v_self->region_begin = 0;

    /* "variant_tools/io_vcf_read.pyx":1018
 *             self.region_chrom = NULL
 *             self.region_begin = 0
 *             self.region_end = 0             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
    __pyx_v_self->region_end = 0;
  }
  __pyx_L4:;

  /* "variant_tools/io_vcf_read.pyx":1004
 *         np.ndarray pos_values
 * 
 *     def __init__(self, dtype, store_chrom, store_pos, chunk_length, region_chrom,             # <<<<<<<<<<<<<<
 *                  region_begin, region_end):
 *         if store_chrom:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dtype);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1020
 *             self.region_end = 0
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t i, n, cmp
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_n;
  Py_ssize_t __pyx_v_cmp;
  Py_ssize_t __pyx_v_memory_offset;
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  long __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1027
 * 
 *         # reset context
 *         CharVector_clear(&context.chrom)             # <<<<<<<<<<<<<<
 *         context.pos = 0
 *         context.ref_len = 0
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->chrom));

  /* "variant_tools/io_vcf_read.pyx":1028
 *         # reset context
 *         CharVector_clear(&context.chrom)
 *         context.pos = 0             # <<<<<<<<<<<<<<
 *         context.ref_len = 0
 * 
 */
  __pyx_v_context->pos = 0;

  /* "variant_tools/io_vcf_read.pyx":1029
 *         CharVector_clear(&context.chrom)
 *         context.pos = 0
 *         context.ref_len = 0             # <<<<<<<<<<<<<<
 * 
 *         # check for EOF early - important to handle file with no final line terminator
 */
  __pyx_v_context->ref_len = 0;

  /* "variant_tools/io_vcf_read.pyx":1032
 * 
 *         # check for EOF early - important to handle file with no final line terminator
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             return 0
 */
  __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1033
 *         # check for EOF early - important to handle file with no final line terminator
 *         if stream.c == 0:
 *             context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

    /* "variant_tools/io_vcf_read.pyx":1034
 *         if stream.c == 0:
 *             context.state = VCFState.EOF
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # read chrom
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1032
 * 
 *         # check for EOF early - important to handle file with no final line terminator
 *         if stream.c == 0:             # <<<<<<<<<<<<<<
 *             context.state = VCFState.EOF
 *             return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1037
 * 
 *         # read chrom
 *         vcf_read_field(stream, context, &context.chrom)             # <<<<<<<<<<<<<<
 *         if context.chrom.size == 0:
 *             # with gil:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(__pyx_v_stream, __pyx_v_context, (&__pyx_v_context->chrom)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1037, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1038
 *         # read chrom
 *         vcf_read_field(stream, context, &context.chrom)
 *         if context.chrom.size == 0:             # <<<<<<<<<<<<<<
 *             # with gil:
 *             warn('empty CHROM', context)
 */
  __pyx_t_1 = ((__pyx_v_context->chrom.size == 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1040
 *         if context.chrom.size == 0:
 *             # with gil:
 *             warn('empty CHROM', context)             # <<<<<<<<<<<<<<
 *         CharVector_terminate(&context.chrom)
 * 
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_empty_CHROM, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1040, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1038
 *         # read chrom
 *         vcf_read_field(stream, context, &context.chrom)
 *         if context.chrom.size == 0:             # <<<<<<<<<<<<<<
 *             # with gil:
 *             warn('empty CHROM', context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1041
 *             # with gil:
 *             warn('empty CHROM', context)
 *         CharVector_terminate(&context.chrom)             # <<<<<<<<<<<<<<
 * 
 *         # read pos
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate((&__pyx_v_context->chrom));

  /* "variant_tools/io_vcf_read.pyx":1044
 * 
 *         # read pos
 *         if context.state == VCFState.CHROM:             # <<<<<<<<<<<<<<
 *             context.state += 1
 *             # read pos
 */
  __pyx_t_1 = ((__pyx_v_context->state == __pyx_e_13variant_tools_11io_vcf_read_CHROM) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1045
 *         # read pos
 *         if context.state == VCFState.CHROM:
 *             context.state += 1             # <<<<<<<<<<<<<<
 *             # read pos
 *             vcf_read_field(stream, context, &context.temp)
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1047
 *             context.state += 1
 *             # read pos
 *             vcf_read_field(stream, context, &context.temp)             # <<<<<<<<<<<<<<
 *             if context.temp.size == 0:
 *                 # with gil:
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(__pyx_v_stream, __pyx_v_context, (&__pyx_v_context->temp)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1047, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1048
 *             # read pos
 *             vcf_read_field(stream, context, &context.temp)
 *             if context.temp.size == 0:             # <<<<<<<<<<<<<<
 *                 # with gil:
 *                 warn('empty POS', context)
 */
    __pyx_t_1 = ((__pyx_v_context->temp.size == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1050
 *             if context.temp.size == 0:
 *                 # with gil:
 *                 warn('empty POS', context)             # <<<<<<<<<<<<<<
 *             else:
 *                 vcf_strtol(&context.temp, context, &context.pos)
 */
      __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_empty_POS, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1050, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1048
 *             # read pos
 *             vcf_read_field(stream, context, &context.temp)
 *             if context.temp.size == 0:             # <<<<<<<<<<<<<<
 *                 # with gil:
 *                 warn('empty POS', context)
 */
      goto __pyx_L6;
    }

    /* "variant_tools/io_vcf_read.pyx":1052
 *                 warn('empty POS', context)
 *             else:
 *                 vcf_strtol(&context.temp, context, &context.pos)             # <<<<<<<<<<<<<<
 * 
 *         if context.state == VCFState.POS:
 */
    /*else*/ {
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_context->pos)); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 1052, __pyx_L1_error)
    }
    __pyx_L6:;

    /* "variant_tools/io_vcf_read.pyx":1044
 * 
 *         # read pos
 *         if context.state == VCFState.CHROM:             # <<<<<<<<<<<<<<
 *             context.state += 1
 *             # read pos
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1054
 *                 vcf_strtol(&context.temp, context, &context.pos)
 * 
 *         if context.state == VCFState.POS:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  __pyx_t_1 = ((__pyx_v_context->state == __pyx_e_13variant_tools_11io_vcf_read_POS) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1055
 * 
 *         if context.state == VCFState.POS:
 *             context.state += 1             # <<<<<<<<<<<<<<
 * 
 *         # handle region
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1054
 *                 vcf_strtol(&context.temp, context, &context.pos)
 * 
 *         if context.state == VCFState.POS:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1058
 * 
 *         # handle region
 *         if self.region_chrom is not NULL:             # <<<<<<<<<<<<<<
 * 
 *             # compare with region chrom
 */
  __pyx_t_1 = ((__pyx_v_self->region_chrom != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1061
 * 
 *             # compare with region chrom
 *             cmp = strcmp(context.chrom.data, self.region_chrom)             # <<<<<<<<<<<<<<
 * 
 *             if cmp < 0:
 */
    __pyx_v_cmp = strcmp(__pyx_v_context->chrom.data, __pyx_v_self->region_chrom);

    /* "variant_tools/io_vcf_read.pyx":1063
 *             cmp = strcmp(context.chrom.data, self.region_chrom)
 * 
 *             if cmp < 0:             # <<<<<<<<<<<<<<
 *                 vcf_skip_variant(stream, context)
 *                 return 0
 */
    __pyx_t_1 = ((__pyx_v_cmp < 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1064
 * 
 *             if cmp < 0:
 *                 vcf_skip_variant(stream, context)             # <<<<<<<<<<<<<<
 *                 return 0
 * 
 */
      __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_skip_variant(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1064, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1065
 *             if cmp < 0:
 *                 vcf_skip_variant(stream, context)
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *             if cmp > 0:
 */
      __pyx_r = 0;
      goto __pyx_L0;

      /* "variant_tools/io_vcf_read.pyx":1063
 *             cmp = strcmp(context.chrom.data, self.region_chrom)
 * 
 *             if cmp < 0:             # <<<<<<<<<<<<<<
 *                 vcf_skip_variant(stream, context)
 *                 return 0
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1067
 *                 return 0
 * 
 *             if cmp > 0:             # <<<<<<<<<<<<<<
 *                 # we're done
 *                 context.state = EOF
 */
    __pyx_t_1 = ((__pyx_v_cmp > 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1069
 *             if cmp > 0:
 *                 # we're done
 *                 context.state = EOF             # <<<<<<<<<<<<<<
 *                 return 0
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1070
 *                 # we're done
 *                 context.state = EOF
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *             if self.region_begin > 0 and context.pos < self.region_begin:
 */
      __pyx_r = 0;
      goto __pyx_L0;

      /* "variant_tools/io_vcf_read.pyx":1067
 *                 return 0
 * 
 *             if cmp > 0:             # <<<<<<<<<<<<<<
 *                 # we're done
 *                 context.state = EOF
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1072
 *                 return 0
 * 
 *             if self.region_begin > 0 and context.pos < self.region_begin:             # <<<<<<<<<<<<<<
 *                 vcf_skip_variant(stream, context)
 *                 return 0
 */
    __pyx_t_4 = ((__pyx_v_self->region_begin > 0) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L12_bool_binop_done;
    }
    __pyx_t_4 = ((__pyx_v_context->pos < __pyx_v_self->region_begin) != 0);
    __pyx_t_1 = __pyx_t_4;
    __pyx_L12_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1073
 * 
 *             if self.region_begin > 0 and context.pos < self.region_begin:
 *                 vcf_skip_variant(stream, context)             # <<<<<<<<<<<<<<
 *                 return 0
 * 
 */
      __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_skip_variant(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1073, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1074
 *             if self.region_begin > 0 and context.pos < self.region_begin:
 *                 vcf_skip_variant(stream, context)
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *             if 0 < self.region_end < context.pos:
 */
      __pyx_r = 0;
      goto __pyx_L0;

      /* "variant_tools/io_vcf_read.pyx":1072
 *                 return 0
 * 
 *             if self.region_begin > 0 and context.pos < self.region_begin:             # <<<<<<<<<<<<<<
 *                 vcf_skip_variant(stream, context)
 *                 return 0
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1076
 *                 return 0
 * 
 *             if 0 < self.region_end < context.pos:             # <<<<<<<<<<<<<<
 *                 # we're done
 *                 context.state = EOF
 */
    __pyx_t_1 = (0 < __pyx_v_self->region_end);
    if (__pyx_t_1) {
      __pyx_t_1 = (__pyx_v_self->region_end < __pyx_v_context->pos);
    }
    __pyx_t_4 = (__pyx_t_1 != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":1078
 *             if 0 < self.region_end < context.pos:
 *                 # we're done
 *                 context.state = EOF             # <<<<<<<<<<<<<<
 *                 return 0
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1079
 *                 # we're done
 *                 context.state = EOF
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *         # setup context
 */
      __pyx_r = 0;
      goto __pyx_L0;

      /* "variant_tools/io_vcf_read.pyx":1076
 *                 return 0
 * 
 *             if 0 < self.region_end < context.pos:             # <<<<<<<<<<<<<<
 *                 # we're done
 *                 context.state = EOF
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1058
 * 
 *         # handle region
 *         if self.region_chrom is not NULL:             # <<<<<<<<<<<<<<
 * 
 *             # compare with region chrom
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1082
 * 
 *         # setup context
 *         context.sample_index = 0             # <<<<<<<<<<<<<<
 *         context.sample_field_index = 0
 *         context.sample_output_index = -1
 */
  __pyx_v_context->sample_index = 0;

  /* "variant_tools/io_vcf_read.pyx":1083
 *         # setup context
 *         context.sample_index = 0
 *         context.sample_field_index = 0             # <<<<<<<<<<<<<<
 *         context.sample_output_index = -1
 *         context.variant_index += 1
 */
  __pyx_v_context->sample_field_index = 0;

  /* "variant_tools/io_vcf_read.pyx":1084
 *         context.sample_index = 0
 *         context.sample_field_index = 0
 *         context.sample_output_index = -1             # <<<<<<<<<<<<<<
 *         context.variant_index += 1
 *         context.chunk_variant_index += 1
 */
  __pyx_v_context->sample_output_index = -1L;

  /* "variant_tools/io_vcf_read.pyx":1085
 *         context.sample_field_index = 0
 *         context.sample_output_index = -1
 *         context.variant_index += 1             # <<<<<<<<<<<<<<
 *         context.chunk_variant_index += 1
 * 
 */
  __pyx_v_context->variant_index = (__pyx_v_context->variant_index + 1);

  /* "variant_tools/io_vcf_read.pyx":1086
 *         context.sample_output_index = -1
 *         context.variant_index += 1
 *         context.chunk_variant_index += 1             # <<<<<<<<<<<<<<
 * 
 *         # store in chunk
 */
  __pyx_v_context->chunk_variant_index = (__pyx_v_context->chunk_variant_index + 1);

  /* "variant_tools/io_vcf_read.pyx":1089
 * 
 *         # store in chunk
 *         if self.store_chrom:             # <<<<<<<<<<<<<<
 * 
 *             if self.dtype.kind == 'S':
 */
  __pyx_t_4 = (__pyx_v_self->store_chrom != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1091
 *         if self.store_chrom:
 * 
 *             if self.dtype.kind == 'S':             # <<<<<<<<<<<<<<
 * 
 *                 # initialise memory index
 */
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.dtype->kind == 'S') != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":1094
 * 
 *                 # initialise memory index
 *                 memory_offset = context.chunk_variant_index * self.itemsize             # <<<<<<<<<<<<<<
 * 
 *                 # figure out how many characters to store
 */
      __pyx_v_memory_offset = (__pyx_v_context->chunk_variant_index * __pyx_v_self->__pyx_base.itemsize);

      /* "variant_tools/io_vcf_read.pyx":1097
 * 
 *                 # figure out how many characters to store
 *                 n = min(context.chrom.size - 1, self.itemsize)             # <<<<<<<<<<<<<<
 * 
 *                 # store characters
 */
      __pyx_t_3 = __pyx_v_self->__pyx_base.itemsize;
      __pyx_t_5 = (__pyx_v_context->chrom.size - 1);
      if (((__pyx_t_3 < __pyx_t_5) != 0)) {
        __pyx_t_6 = __pyx_t_3;
      } else {
        __pyx_t_6 = __pyx_t_5;
      }
      __pyx_v_n = __pyx_t_6;

      /* "variant_tools/io_vcf_read.pyx":1100
 * 
 *                 # store characters
 *                 for i in range(n):             # <<<<<<<<<<<<<<
 *                     self.chrom_memory[memory_offset + i] = context.chrom.data[i]
 * 
 */
      __pyx_t_6 = __pyx_v_n;
      __pyx_t_3 = __pyx_t_6;
      for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_3; __pyx_t_5+=1) {
        __pyx_v_i = __pyx_t_5;

        /* "variant_tools/io_vcf_read.pyx":1101
 *                 # store characters
 *                 for i in range(n):
 *                     self.chrom_memory[memory_offset + i] = context.chrom.data[i]             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
        __pyx_t_7 = (__pyx_v_memory_offset + __pyx_v_i);
        *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->chrom_memory.data + __pyx_t_7 * __pyx_v_self->chrom_memory.strides[0]) )) = (__pyx_v_context->chrom.data[__pyx_v_i]);
      }

      /* "variant_tools/io_vcf_read.pyx":1091
 *         if self.store_chrom:
 * 
 *             if self.dtype.kind == 'S':             # <<<<<<<<<<<<<<
 * 
 *                 # initialise memory index
 */
      goto __pyx_L16;
    }

    /* "variant_tools/io_vcf_read.pyx":1106
 *                 # with gil:
 *                 # N.B., don't include terminating null byte
 *                 v = CharVector_to_pystr_sized(&context.chrom, context.chrom.size - 1)             # <<<<<<<<<<<<<<
 *                 self.chrom_values[context.chunk_variant_index] = v
 * 
 */
    /*else*/ {
      __pyx_t_8 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr_sized((&__pyx_v_context->chrom), (__pyx_v_context->chrom.size - 1)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1106, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_v_v = __pyx_t_8;
      __pyx_t_8 = 0;

      /* "variant_tools/io_vcf_read.pyx":1107
 *                 # N.B., don't include terminating null byte
 *                 v = CharVector_to_pystr_sized(&context.chrom, context.chrom.size - 1)
 *                 self.chrom_values[context.chunk_variant_index] = v             # <<<<<<<<<<<<<<
 * 
 *         if self.store_pos:
 */
      if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_self->chrom_values), __pyx_v_context->chunk_variant_index, __pyx_v_v, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0) < 0)) __PYX_ERR(0, 1107, __pyx_L1_error)
    }
    __pyx_L16:;

    /* "variant_tools/io_vcf_read.pyx":1089
 * 
 *         # store in chunk
 *         if self.store_chrom:             # <<<<<<<<<<<<<<
 * 
 *             if self.dtype.kind == 'S':
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1109
 *                 self.chrom_values[context.chunk_variant_index] = v
 * 
 *         if self.store_pos:             # <<<<<<<<<<<<<<
 *             self.pos_memory[context.chunk_variant_index] = context.pos
 * 
 */
  __pyx_t_4 = (__pyx_v_self->store_pos != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1110
 * 
 *         if self.store_pos:
 *             self.pos_memory[context.chunk_variant_index] = context.pos             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_9 = __pyx_v_context->pos;
    __pyx_t_10 = __pyx_v_context->chunk_variant_index;
    *((__pyx_t_5numpy_int32_t *) ( /* dim=0 */ (__pyx_v_self->pos_memory.data + __pyx_t_10 * __pyx_v_self->pos_memory.strides[0]) )) = __pyx_t_9;

    /* "variant_tools/io_vcf_read.pyx":1109
 *                 self.chrom_values[context.chunk_variant_index] = v
 * 
 *         if self.store_pos:             # <<<<<<<<<<<<<<
 *             self.pos_memory[context.chunk_variant_index] = context.pos
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1020
 *             self.region_end = 0
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t i, n, cmp
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1112
 *             self.pos_memory[context.chunk_variant_index] = context.pos
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_chrom:
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_memviewslice __pyx_t_6 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_7 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1113
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store_chrom:             # <<<<<<<<<<<<<<
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             if self.dtype.kind == 'S':
 */
  __pyx_t_1 = (__pyx_v_self->store_chrom != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1114
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store_chrom:
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *             if self.dtype.kind == 'S':
 *                 self.chrom_memory = self.chrom_values.view('u1')
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1114, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->chrom_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->chrom_values));
    __pyx_v_self->chrom_values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1115
 *         if self.store_chrom:
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             if self.dtype.kind == 'S':             # <<<<<<<<<<<<<<
 *                 self.chrom_memory = self.chrom_values.view('u1')
 *             else:
 */
    __pyx_t_1 = ((__pyx_v_self->__pyx_base.dtype->kind == 'S') != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1116
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             if self.dtype.kind == 'S':
 *                 self.chrom_memory = self.chrom_values.view('u1')             # <<<<<<<<<<<<<<
 *             else:
 *                 self.chrom_values.fill('')
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->chrom_values), __pyx_n_s_view); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
        }
      }
      __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_u1);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(0, 1116, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __PYX_XDEC_MEMVIEW(&__pyx_v_self->chrom_memory, 0);
      __pyx_v_self->chrom_memory = __pyx_t_6;
      __pyx_t_6.memview = NULL;
      __pyx_t_6.data = NULL;

      /* "variant_tools/io_vcf_read.pyx":1115
 *         if self.store_chrom:
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             if self.dtype.kind == 'S':             # <<<<<<<<<<<<<<
 *                 self.chrom_memory = self.chrom_values.view('u1')
 *             else:
 */
      goto __pyx_L4;
    }

    /* "variant_tools/io_vcf_read.pyx":1118
 *                 self.chrom_memory = self.chrom_values.view('u1')
 *             else:
 *                 self.chrom_values.fill('')             # <<<<<<<<<<<<<<
 *         if self.store_pos:
 *             self.pos_values = np.zeros(self.chunk_length, dtype='int32')
 */
    /*else*/ {
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->chrom_values), __pyx_n_s_fill); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1118, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
        }
      }
      __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s__6);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1118, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __pyx_L4:;

    /* "variant_tools/io_vcf_read.pyx":1113
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store_chrom:             # <<<<<<<<<<<<<<
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             if self.dtype.kind == 'S':
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1119
 *             else:
 *                 self.chrom_values.fill('')
 *         if self.store_pos:             # <<<<<<<<<<<<<<
 *             self.pos_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.pos_memory = self.pos_values
 */
  __pyx_t_1 = (__pyx_v_self->store_pos != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1120
 *                 self.chrom_values.fill('')
 *         if self.store_pos:
 *             self.pos_values = np.zeros(self.chunk_length, dtype='int32')             # <<<<<<<<<<<<<<
 *             self.pos_memory = self.pos_values
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_n_s_int32) < 0) __PYX_ERR(0, 1120, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->pos_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->pos_values));
    __pyx_v_self->pos_values = ((PyArrayObject *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":1121
 *         if self.store_pos:
 *             self.pos_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.pos_memory = self.pos_values             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_7 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->pos_values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_7.memview)) __PYX_ERR(0, 1121, __pyx_L1_error)
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->pos_memory, 0);
    __pyx_v_self->pos_memory = __pyx_t_7;
    __pyx_t_7.memview = NULL;
    __pyx_t_7.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1119
 *             else:
 *                 self.chrom_values.fill('')
 *         if self.store_pos:             # <<<<<<<<<<<<<<
 *             self.pos_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.pos_memory = self.pos_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1112
 *             self.pos_memory[context.chunk_variant_index] = context.pos
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_chrom:
 *             self.chrom_values = np.zeros(self.chunk_length, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __PYX_XDEC_MEMVIEW(&__pyx_t_6, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_7, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1123
 *             self.pos_memory = self.pos_values
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_chrom:
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1124
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_chrom:             # <<<<<<<<<<<<<<
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 *         if self.store_pos:
 */
  __pyx_t_1 = (__pyx_v_self->store_chrom != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1125
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_chrom:
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_pos:
 *             chunk[POS_FIELD] = self.pos_values[:limit]
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->chrom_values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CHROM_FIELD); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_t_3, __pyx_t_2) < 0)) __PYX_ERR(0, 1125, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1124
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_chrom:             # <<<<<<<<<<<<<<
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 *         if self.store_pos:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1126
 *         if self.store_chrom:
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 *         if self.store_pos:             # <<<<<<<<<<<<<<
 *             chunk[POS_FIELD] = self.pos_values[:limit]
 * 
 */
  __pyx_t_1 = (__pyx_v_self->store_pos != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1127
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 *         if self.store_pos:
 *             chunk[POS_FIELD] = self.pos_values[:limit]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->pos_values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_POS_FIELD); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_t_3, __pyx_t_2) < 0)) __PYX_ERR(0, 1127, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1126
 *         if self.store_chrom:
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 *         if self.store_pos:             # <<<<<<<<<<<<<<
 *             chunk[POS_FIELD] = self.pos_values[:limit]
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1123
 *             self.pos_memory = self.pos_values
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_chrom:
 *             chunk[CHROM_FIELD] = self.chrom_values[:limit]
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chrom_memory, self.chrom_values, self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.pos_memory, self.pos_values, self.region_begin, self.region_chrom, self.region_end, self.store_chrom, self.store_pos, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_v_self->chrom_memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_self->pos_memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_self->region_begin); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyBytes_FromString(__pyx_v_self->region_chrom); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyInt_FromSsize_t(__pyx_v_self->region_end); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyBool_FromLong(__pyx_v_self->store_chrom); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyBool_FromLong(__pyx_v_self->store_pos); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = PyTuple_New(16); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->chrom_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->chrom_values));
  PyTuple_SET_ITEM(__pyx_t_11, 1, ((PyObject *)__pyx_v_self->chrom_values));
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_11, 3, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_11, 4, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_11, 5, __pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_11, 6, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_11, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_11, 8, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->pos_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pos_values));
  PyTuple_SET_ITEM(__pyx_t_11, 9, ((PyObject *)__pyx_v_self->pos_values));
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_11, 10, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_11, 11, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_11, 12, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_9);
  PyTuple_SET_ITEM(__pyx_t_11, 13, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_11, 14, __pyx_t_10);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_11, 15, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_9 = 0;
  __pyx_t_10 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_11);
  __pyx_t_11 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chrom_memory, self.chrom_values, self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.pos_memory, self.pos_values, self.region_begin, self.region_chrom, self.region_end, self.store_chrom, self.store_pos, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_11 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_v__dict = __pyx_t_11;
  __pyx_t_11 = 0;

  /* "(tree fragment)":7
 *     state = (self.chrom_memory, self.chrom_values, self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.pos_memory, self.pos_values, self.region_begin, self.region_chrom, self.region_end, self.store_chrom, self.store_pos, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_12 = (__pyx_v__dict != Py_None);
  __pyx_t_13 = (__pyx_t_12 != 0);
  if (__pyx_t_13) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v__dict);
    __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_10));
    __pyx_t_10 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.chrom_values is not None or self.dtype is not None or self.fill is not None or self.key is not None or self.pos_values is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chrom_memory, self.chrom_values, self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.pos_memory, self.pos_values, self.region_begin, self.region_chrom, self.region_end, self.store_chrom, self.store_pos, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.chrom_values is not None or self.dtype is not None or self.fill is not None or self.key is not None or self.pos_values is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, None), state
 */
  /*else*/ {
    __pyx_t_12 = (((PyObject *)__pyx_v_self->chrom_values) != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    if (!__pyx_t_14) {
    } else {
      __pyx_t_13 = __pyx_t_14;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_14 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_12 = (__pyx_t_14 != 0);
    if (!__pyx_t_12) {
    } else {
      __pyx_t_13 = __pyx_t_12;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_12 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    if (!__pyx_t_14) {
    } else {
      __pyx_t_13 = __pyx_t_14;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_14 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_12 = (__pyx_t_14 != 0);
    if (!__pyx_t_12) {
    } else {
      __pyx_t_13 = __pyx_t_12;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_12 = (((PyObject *)__pyx_v_self->pos_values) != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    if (!__pyx_t_14) {
    } else {
      __pyx_t_13 = __pyx_t_14;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_14 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_12 = (__pyx_t_14 != 0);
    __pyx_t_13 = __pyx_t_12;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_13;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.chrom_values is not None or self.dtype is not None or self.fill is not None or self.key is not None or self.pos_values is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, None), state
 *     else:
 */
  __pyx_t_13 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_13) {

    /* "(tree fragment)":13
 *         use_setstate = self.chrom_values is not None or self.dtype is not None or self.fill is not None or self.key is not None or self.pos_values is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_pyx_unpickle_VCFChromPosParser); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_11, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_191757588);
    __Pyx_GIVEREF(__pyx_int_191757588);
    PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_int_191757588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_11, 2, Py_None);
    __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_10);
    PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_11);
    PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_11);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_state);
    __pyx_t_10 = 0;
    __pyx_t_11 = 0;
    __pyx_r = __pyx_t_9;
    __pyx_t_9 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.chrom_values is not None or self.dtype is not None or self.fill is not None or self.key is not None or self.pos_values is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, None), state
 *     else:
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFChromPosParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_pyx_unpickle_VCFChromPosParser); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_11, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_191757588);
    __Pyx_GIVEREF(__pyx_int_191757588);
    PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_int_191757588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_v_state);
    __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_11);
    PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_11);
    __pyx_t_9 = 0;
    __pyx_t_11 = 0;
    __pyx_r = __pyx_t_10;
    __pyx_t_10 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFChromPosParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFChromPosParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFChromPosParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChromPosParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFChromPosParser, (type(self), 0xb6dfd14, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFChromPosParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFChromPosParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1134
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, dtype, chunk_length):             # <<<<<<<<<<<<<<
 *         super(VCFIDStringParser, self).__init__(key=b'ID', dtype=dtype, number=1, chunk_length=chunk_length)
 * 
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_chunk_length = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dtype,&__pyx_n_s_chunk_length,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 1134, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1134, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_dtype = values[0];
    __pyx_v_chunk_length = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1134, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *)__pyx_v_self), __pyx_v_dtype, __pyx_v_chunk_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_chunk_length) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1135
 * 
 *     def __init__(self, dtype, chunk_length):
 *         super(VCFIDStringParser, self).__init__(key=b'ID', dtype=dtype, number=1, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_ID) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_v_dtype) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_int_1) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1134
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, dtype, chunk_length):             # <<<<<<<<<<<<<<
 *         super(VCFIDStringParser, self).__init__(key=b'ID', dtype=dtype, number=1, chunk_length=chunk_length)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1137
 *         super(VCFIDStringParser, self).__init__(key=b'ID', dtype=dtype, number=1, chunk_length=chunk_length)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index into memory view
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_memory_index;
  Py_ssize_t __pyx_v_chars_stored;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  char __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1140
 *         cdef:
 *             # index into memory view
 *             Py_ssize_t memory_index = context.chunk_variant_index * self.itemsize             # <<<<<<<<<<<<<<
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0
 */
  __pyx_v_memory_index = (__pyx_v_context->chunk_variant_index * __pyx_v_self->__pyx_base.itemsize);

  /* "variant_tools/io_vcf_read.pyx":1142
 *             Py_ssize_t memory_index = context.chunk_variant_index * self.itemsize
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_v_chars_stored = 0;

  /* "variant_tools/io_vcf_read.pyx":1144
 *             Py_ssize_t chars_stored = 0
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":1146
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1147
 * 
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1148
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":1146
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1150
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1151
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":1152
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":1150
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1154
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond tab
 *                 stream.advance()
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1156
 *             elif stream.c == TAB:
 *                 # advance input stream beyond tab
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 # advance to next field
 *                 context.state += 1
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1156, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1158
 *                 stream.advance()
 *                 # advance to next field
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":1159
 *                 # advance to next field
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif chars_stored < self.itemsize:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":1154
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond tab
 *                 stream.advance()
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1161
 *                 break
 * 
 *             elif chars_stored < self.itemsize:             # <<<<<<<<<<<<<<
 *                 # store value
 *                 self.memory[memory_index] = stream.c
 */
    __pyx_t_1 = ((__pyx_v_chars_stored < __pyx_v_self->__pyx_base.itemsize) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1163
 *             elif chars_stored < self.itemsize:
 *                 # store value
 *                 self.memory[memory_index] = stream.c             # <<<<<<<<<<<<<<
 *                 # advance memory index
 *                 memory_index += 1
 */
      __pyx_t_4 = __pyx_v_stream->c;
      __pyx_t_5 = __pyx_v_memory_index;
      *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_5 * __pyx_v_self->memory.strides[0]) )) = __pyx_t_4;

      /* "variant_tools/io_vcf_read.pyx":1165
 *                 self.memory[memory_index] = stream.c
 *                 # advance memory index
 *                 memory_index += 1             # <<<<<<<<<<<<<<
 *                 # advance number of characters stored
 *                 chars_stored += 1
 */
      __pyx_v_memory_index = (__pyx_v_memory_index + 1);

      /* "variant_tools/io_vcf_read.pyx":1167
 *                 memory_index += 1
 *                 # advance number of characters stored
 *                 chars_stored += 1             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
      __pyx_v_chars_stored = (__pyx_v_chars_stored + 1);

      /* "variant_tools/io_vcf_read.pyx":1161
 *                 break
 * 
 *             elif chars_stored < self.itemsize:             # <<<<<<<<<<<<<<
 *                 # store value
 *                 self.memory[memory_index] = stream.c
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1170
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1170, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":1137
 *         super(VCFIDStringParser, self).__init__(key=b'ID', dtype=dtype, number=1, chunk_length=chunk_length)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index into memory view
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDStringParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1172
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values.view('u1')
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1173
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.zeros(self.chunk_length, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values.view('u1')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1173, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1174
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values.view('u1')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_view); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_s_u1);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":1172
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values.view('u1')
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDStringParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFIDStringParser); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFIDStringParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFIDStringParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDStringParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFIDStringParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFIDStringParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDStringParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFIDStringParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFIDStringParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDStringParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1179
 * cdef class VCFIDObjectParser(VCFFieldParserBase):
 * 
 *     def __init__(self, chunk_length):             # <<<<<<<<<<<<<<
 *         super(VCFIDObjectParser, self).__init__(key=b'ID', dtype=np.dtype('object'), number=1,
 *                                                 chunk_length=chunk_length)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_chunk_length = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_chunk_length,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1179, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_chunk_length = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1179, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *)__pyx_v_self), __pyx_v_chunk_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk_length) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1180
 * 
 *     def __init__(self, chunk_length):
 *         super(VCFIDObjectParser, self).__init__(key=b'ID', dtype=np.dtype('object'), number=1,             # <<<<<<<<<<<<<<
 *                                                 chunk_length=chunk_length)
 * 
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_ID) < 0) __PYX_ERR(0, 1180, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_int_1) < 0) __PYX_ERR(0, 1180, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1181
 *     def __init__(self, chunk_length):
 *         super(VCFIDObjectParser, self).__init__(key=b'ID', dtype=np.dtype('object'), number=1,
 *                                                 chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1180, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1180
 * 
 *     def __init__(self, chunk_length):
 *         super(VCFIDObjectParser, self).__init__(key=b'ID', dtype=np.dtype('object'), number=1,             # <<<<<<<<<<<<<<
 *                                                 chunk_length=chunk_length)
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1179
 * cdef class VCFIDObjectParser(VCFFieldParserBase):
 * 
 *     def __init__(self, chunk_length):             # <<<<<<<<<<<<<<
 *         super(VCFIDObjectParser, self).__init__(key=b'ID', dtype=np.dtype('object'), number=1,
 *                                                 chunk_length=chunk_length)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1183
 *                                                 chunk_length=chunk_length)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         vcf_read_field(stream, context, &context.temp)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1185
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 * 
 *         vcf_read_field(stream, context, &context.temp)             # <<<<<<<<<<<<<<
 * 
 *         # with gil:
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(__pyx_v_stream, __pyx_v_context, (&__pyx_v_context->temp)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1185, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1188
 * 
 *         # with gil:
 *         v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *         self.values[context.chunk_variant_index] = v
 * 
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_v = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":1189
 *         # with gil:
 *         v = CharVector_to_pystr(&context.temp)
 *         self.values[context.chunk_variant_index] = v             # <<<<<<<<<<<<<<
 * 
 *         if context.state == VCFState.ID:
 */
  if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_v_context->chunk_variant_index, __pyx_v_v, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0) < 0)) __PYX_ERR(0, 1189, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1191
 *         self.values[context.chunk_variant_index] = v
 * 
 *         if context.state == VCFState.ID:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_context->state == __pyx_e_13variant_tools_11io_vcf_read_ID) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1192
 * 
 *         if context.state == VCFState.ID:
 *             context.state += 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1191
 *         self.values[context.chunk_variant_index] = v
 * 
 *         if context.state == VCFState.ID:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1183
 *                                                 chunk_length=chunk_length)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         vcf_read_field(stream, context, &context.temp)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDObjectParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1194
 *             context.state += 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.values.fill('')
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFIDObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1195
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.values.fill('')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1195, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1196
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.values.fill('')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_fill); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_s__6);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1194
 *             context.state += 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.values.fill('')
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDObjectParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFIDObjectParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFIDObjectParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFIDObjectParser); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDObjectParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFIDObjectParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFIDObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFIDObjectParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDObjectParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFIDObjectParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFIDObjectParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFIDObjectParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1205
 *         bint store
 * 
 *     def __init__(self, dtype, chunk_length, store):             # <<<<<<<<<<<<<<
 *         if store:
 *             dtype = check_string_dtype(dtype)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_store = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dtype,&__pyx_n_s_chunk_length,&__pyx_n_s_store,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 1205, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 1205, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1205, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_dtype = values[0];
    __pyx_v_chunk_length = values[1];
    __pyx_v_store = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1205, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *)__pyx_v_self), __pyx_v_dtype, __pyx_v_chunk_length, __pyx_v_store);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_dtype);

  /* "variant_tools/io_vcf_read.pyx":1206
 * 
 *     def __init__(self, dtype, chunk_length, store):
 *         if store:             # <<<<<<<<<<<<<<
 *             dtype = check_string_dtype(dtype)
 *         super(VCFRefStringParser, self).__init__(key=b'REF', dtype=dtype, number=1, chunk_length=chunk_length)
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1206, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1207
 *     def __init__(self, dtype, chunk_length, store):
 *         if store:
 *             dtype = check_string_dtype(dtype)             # <<<<<<<<<<<<<<
 *         super(VCFRefStringParser, self).__init__(key=b'REF', dtype=dtype, number=1, chunk_length=chunk_length)
 *         self.store = store
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_dtype) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_dtype);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_dtype, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1206
 * 
 *     def __init__(self, dtype, chunk_length, store):
 *         if store:             # <<<<<<<<<<<<<<
 *             dtype = check_string_dtype(dtype)
 *         super(VCFRefStringParser, self).__init__(key=b'REF', dtype=dtype, number=1, chunk_length=chunk_length)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1208
 *         if store:
 *             dtype = check_string_dtype(dtype)
 *         super(VCFRefStringParser, self).__init__(key=b'REF', dtype=dtype, number=1, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *         self.store = store
 * 
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_key, __pyx_n_b_REF) < 0) __PYX_ERR(0, 1208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_v_dtype) < 0) __PYX_ERR(0, 1208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_int_1) < 0) __PYX_ERR(0, 1208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1208, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1209
 *             dtype = check_string_dtype(dtype)
 *         super(VCFRefStringParser, self).__init__(key=b'REF', dtype=dtype, number=1, chunk_length=chunk_length)
 *         self.store = store             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1209, __pyx_L1_error)
  __pyx_v_self->store = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1205
 *         bint store
 * 
 *     def __init__(self, dtype, chunk_length, store):             # <<<<<<<<<<<<<<
 *         if store:
 *             dtype = check_string_dtype(dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dtype);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1211
 *         self.store = store
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index into memory view
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_memory_index;
  Py_ssize_t __pyx_v_chars_stored;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  char __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1214
 *         cdef:
 *             # index into memory view
 *             Py_ssize_t memory_index = context.chunk_variant_index * self.itemsize             # <<<<<<<<<<<<<<
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0
 */
  __pyx_v_memory_index = (__pyx_v_context->chunk_variant_index * __pyx_v_self->__pyx_base.itemsize);

  /* "variant_tools/io_vcf_read.pyx":1216
 *             Py_ssize_t memory_index = context.chunk_variant_index * self.itemsize
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_v_chars_stored = 0;

  /* "variant_tools/io_vcf_read.pyx":1218
 *             Py_ssize_t chars_stored = 0
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":1220
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1221
 * 
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1222
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":1220
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1224
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1225
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":1226
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":1224
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1228
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond tab
 *                 stream.advance()
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1230
 *             elif stream.c == TAB:
 *                 # advance input stream beyond tab
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 # advance to next field
 *                 context.state += 1
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1230, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1232
 *                 stream.advance()
 *                 # advance to next field
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":1233
 *                 # advance to next field
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":1228
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond tab
 *                 stream.advance()
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1236
 * 
 *             else:
 *                 if stream.c != PERIOD:             # <<<<<<<<<<<<<<
 *                     context.ref_len += 1
 *                 if self.store and chars_stored < self.itemsize:
 */
    /*else*/ {
      __pyx_t_1 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1237
 *             else:
 *                 if stream.c != PERIOD:
 *                     context.ref_len += 1             # <<<<<<<<<<<<<<
 *                 if self.store and chars_stored < self.itemsize:
 *                     # store value
 */
        __pyx_v_context->ref_len = (__pyx_v_context->ref_len + 1);

        /* "variant_tools/io_vcf_read.pyx":1236
 * 
 *             else:
 *                 if stream.c != PERIOD:             # <<<<<<<<<<<<<<
 *                     context.ref_len += 1
 *                 if self.store and chars_stored < self.itemsize:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1238
 *                 if stream.c != PERIOD:
 *                     context.ref_len += 1
 *                 if self.store and chars_stored < self.itemsize:             # <<<<<<<<<<<<<<
 *                     # store value
 *                     self.memory[memory_index] = stream.c
 */
      __pyx_t_2 = (__pyx_v_self->store != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L10_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_chars_stored < __pyx_v_self->__pyx_base.itemsize) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L10_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1240
 *                 if self.store and chars_stored < self.itemsize:
 *                     # store value
 *                     self.memory[memory_index] = stream.c             # <<<<<<<<<<<<<<
 *                     # advance number of characters stored
 *                     chars_stored += 1
 */
        __pyx_t_4 = __pyx_v_stream->c;
        __pyx_t_5 = __pyx_v_memory_index;
        *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_5 * __pyx_v_self->memory.strides[0]) )) = __pyx_t_4;

        /* "variant_tools/io_vcf_read.pyx":1242
 *                     self.memory[memory_index] = stream.c
 *                     # advance number of characters stored
 *                     chars_stored += 1             # <<<<<<<<<<<<<<
 *                     # advance memory index
 *                     memory_index += 1
 */
        __pyx_v_chars_stored = (__pyx_v_chars_stored + 1);

        /* "variant_tools/io_vcf_read.pyx":1244
 *                     chars_stored += 1
 *                     # advance memory index
 *                     memory_index += 1             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
        __pyx_v_memory_index = (__pyx_v_memory_index + 1);

        /* "variant_tools/io_vcf_read.pyx":1238
 *                 if stream.c != PERIOD:
 *                     context.ref_len += 1
 *                 if self.store and chars_stored < self.itemsize:             # <<<<<<<<<<<<<<
 *                     # store value
 *                     self.memory[memory_index] = stream.c
 */
      }
    }

    /* "variant_tools/io_vcf_read.pyx":1247
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1247, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":1211
 *         self.store = store
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index into memory view
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1249
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_memviewslice __pyx_t_6 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1250
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             self.memory = self.values.view('u1')
 */
  __pyx_t_1 = (__pyx_v_self->store != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1251
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store:
 *             self.values = np.zeros(self.chunk_length, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *             self.memory = self.values.view('u1')
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1251, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
    __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1252
 *         if self.store:
 *             self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             self.memory = self.values.view('u1')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_view); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_u1);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(0, 1252, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
    __pyx_v_self->memory = __pyx_t_6;
    __pyx_t_6.memview = NULL;
    __pyx_t_6.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1250
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 *             self.memory = self.values.view('u1')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1249
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             self.values = np.zeros(self.chunk_length, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __PYX_XDEC_MEMVIEW(&__pyx_t_6, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1254
 *             self.memory = self.values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1255
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             chunk[REF_FIELD] = self.values[:limit]
 * 
 */
  __pyx_t_1 = (__pyx_v_self->store != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1256
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->__pyx_base.values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_REF_FIELD); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_t_3, __pyx_t_2) < 0)) __PYX_ERR(0, 1256, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1255
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             chunk[REF_FIELD] = self.values[:limit]
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1254
 *             self.memory = self.values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.store, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_self->store); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.store, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.store, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.store, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFRefStringParse); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_237691741);
    __Pyx_GIVEREF(__pyx_int_237691741);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_237691741);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, None), state
 *     else:
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFRefStringParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFRefStringParse); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_237691741);
    __Pyx_GIVEREF(__pyx_int_237691741);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_237691741);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFRefStringParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFRefStringParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefStringParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFRefStringParser, (type(self), 0xe2ae35d, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFRefStringParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefStringParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1264
 *         bint store
 * 
 *     def __init__(self, chunk_length, store):             # <<<<<<<<<<<<<<
 *         super(VCFRefObjectParser, self).__init__(key=b'REF', dtype=np.dtype('object'), number=1, chunk_length=chunk_length)
 *         self.store = store
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_store = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_chunk_length,&__pyx_n_s_store,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 1264, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1264, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_chunk_length = values[0];
    __pyx_v_store = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1264, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *)__pyx_v_self), __pyx_v_chunk_length, __pyx_v_store);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1265
 * 
 *     def __init__(self, chunk_length, store):
 *         super(VCFRefObjectParser, self).__init__(key=b'REF', dtype=np.dtype('object'), number=1, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *         self.store = store
 * 
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_REF) < 0) __PYX_ERR(0, 1265, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_int_1) < 0) __PYX_ERR(0, 1265, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1265, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1266
 *     def __init__(self, chunk_length, store):
 *         super(VCFRefObjectParser, self).__init__(key=b'REF', dtype=np.dtype('object'), number=1, chunk_length=chunk_length)
 *         self.store = store             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_store); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1266, __pyx_L1_error)
  __pyx_v_self->store = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1264
 *         bint store
 * 
 *     def __init__(self, chunk_length, store):             # <<<<<<<<<<<<<<
 *         super(VCFRefObjectParser, self).__init__(key=b'REF', dtype=np.dtype('object'), number=1, chunk_length=chunk_length)
 *         self.store = store
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1268
 *         self.store = store
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         vcf_read_field(stream, context, &context.temp)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1270
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 * 
 *         vcf_read_field(stream, context, &context.temp)             # <<<<<<<<<<<<<<
 * 
 *         # with gil:
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(__pyx_v_stream, __pyx_v_context, (&__pyx_v_context->temp)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1270, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1273
 * 
 *         # with gil:
 *         v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *         if v != '.':
 *             context.ref_len = len(v)
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_v = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":1274
 *         # with gil:
 *         v = CharVector_to_pystr(&context.temp)
 *         if v != '.':             # <<<<<<<<<<<<<<
 *             context.ref_len = len(v)
 *         if self.store:
 */
  __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_v_v, __pyx_kp_s__13, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1274, __pyx_L1_error)
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1275
 *         v = CharVector_to_pystr(&context.temp)
 *         if v != '.':
 *             context.ref_len = len(v)             # <<<<<<<<<<<<<<
 *         if self.store:
 *             self.values[context.chunk_variant_index] = v
 */
    __pyx_t_4 = PyObject_Length(__pyx_v_v); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1275, __pyx_L1_error)
    __pyx_v_context->ref_len = __pyx_t_4;

    /* "variant_tools/io_vcf_read.pyx":1274
 *         # with gil:
 *         v = CharVector_to_pystr(&context.temp)
 *         if v != '.':             # <<<<<<<<<<<<<<
 *             context.ref_len = len(v)
 *         if self.store:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1276
 *         if v != '.':
 *             context.ref_len = len(v)
 *         if self.store:             # <<<<<<<<<<<<<<
 *             self.values[context.chunk_variant_index] = v
 * 
 */
  __pyx_t_3 = (__pyx_v_self->store != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1277
 *             context.ref_len = len(v)
 *         if self.store:
 *             self.values[context.chunk_variant_index] = v             # <<<<<<<<<<<<<<
 * 
 *         if context.state == VCFState.REF:
 */
    if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_v_context->chunk_variant_index, __pyx_v_v, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0) < 0)) __PYX_ERR(0, 1277, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1276
 *         if v != '.':
 *             context.ref_len = len(v)
 *         if self.store:             # <<<<<<<<<<<<<<
 *             self.values[context.chunk_variant_index] = v
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1279
 *             self.values[context.chunk_variant_index] = v
 * 
 *         if context.state == VCFState.REF:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_context->state == __pyx_e_13variant_tools_11io_vcf_read_REF) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1280
 * 
 *         if context.state == VCFState.REF:
 *             context.state += 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1279
 *             self.values[context.chunk_variant_index] = v
 * 
 *         if context.state == VCFState.REF:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1268
 *         self.store = store
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         vcf_read_field(stream, context, &context.temp)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1282
 *             context.state += 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             self.values = np.empty(self.chunk_length, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1283
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *             self.values.fill('')
 */
  __pyx_t_1 = (__pyx_v_self->store != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1284
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store:
 *             self.values = np.empty(self.chunk_length, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *             self.values.fill('')
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1284, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1284, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
    __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1285
 *         if self.store:
 *             self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *             self.values.fill('')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_fill); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s__6);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1283
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *             self.values.fill('')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1282
 *             context.state += 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             self.values = np.empty(self.chunk_length, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1287
 *             self.values.fill('')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1288
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             chunk[REF_FIELD] = self.values[:limit]
 * 
 */
  __pyx_t_1 = (__pyx_v_self->store != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1289
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->__pyx_base.values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_REF_FIELD); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_t_3, __pyx_t_2) < 0)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1288
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store:             # <<<<<<<<<<<<<<
 *             chunk[REF_FIELD] = self.values[:limit]
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1287
 *             self.values.fill('')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store:
 *             chunk[REF_FIELD] = self.values[:limit]
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.store, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_self->store); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.store, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.store, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.store, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFRefObjectParse); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_132754896);
    __Pyx_GIVEREF(__pyx_int_132754896);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_132754896);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, None), state
 *     else:
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFRefObjectParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFRefObjectParse); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_132754896);
    __Pyx_GIVEREF(__pyx_int_132754896);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_132754896);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFRefObjectParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFRefObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFRefObjectParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefObjectParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFRefObjectParser, (type(self), 0x7e9add0, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFRefObjectParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFRefObjectParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1307
 *         bint store_is_snp
 * 
 *     def __init__(self, dtype, number, chunk_length, store_alt, store_numalt, store_svlen,             # <<<<<<<<<<<<<<
 *                  store_is_snp):
 *         if store_alt:
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_number = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_store_alt = 0;
  PyObject *__pyx_v_store_numalt = 0;
  PyObject *__pyx_v_store_svlen = 0;
  PyObject *__pyx_v_store_is_snp = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dtype,&__pyx_n_s_number,&__pyx_n_s_chunk_length,&__pyx_n_s_store_alt,&__pyx_n_s_store_numalt,&__pyx_n_s_store_svlen,&__pyx_n_s_store_is_snp,0};
    PyObject* values[7] = {0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_number)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 1); __PYX_ERR(0, 1307, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 2); __PYX_ERR(0, 1307, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_alt)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 3); __PYX_ERR(0, 1307, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_numalt)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 4); __PYX_ERR(0, 1307, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_svlen)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 5); __PYX_ERR(0, 1307, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_is_snp)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, 6); __PYX_ERR(0, 1307, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1307, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
    }
    __pyx_v_dtype = values[0];
    __pyx_v_number = values[1];
    __pyx_v_chunk_length = values[2];
    __pyx_v_store_alt = values[3];
    __pyx_v_store_numalt = values[4];
    __pyx_v_store_svlen = values[5];
    __pyx_v_store_is_snp = values[6];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1307, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)__pyx_v_self), __pyx_v_dtype, __pyx_v_number, __pyx_v_chunk_length, __pyx_v_store_alt, __pyx_v_store_numalt, __pyx_v_store_svlen, __pyx_v_store_is_snp);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store_alt, PyObject *__pyx_v_store_numalt, PyObject *__pyx_v_store_svlen, PyObject *__pyx_v_store_is_snp) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_dtype);

  /* "variant_tools/io_vcf_read.pyx":1309
 *     def __init__(self, dtype, number, chunk_length, store_alt, store_numalt, store_svlen,
 *                  store_is_snp):
 *         if store_alt:             # <<<<<<<<<<<<<<
 *             dtype = check_string_dtype(dtype)
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_alt); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1309, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1310
 *                  store_is_snp):
 *         if store_alt:
 *             dtype = check_string_dtype(dtype)             # <<<<<<<<<<<<<<
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,
 *                                                  chunk_length=chunk_length)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_dtype) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_dtype);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_dtype, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1309
 *     def __init__(self, dtype, number, chunk_length, store_alt, store_numalt, store_svlen,
 *                  store_is_snp):
 *         if store_alt:             # <<<<<<<<<<<<<<
 *             dtype = check_string_dtype(dtype)
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1311
 *         if store_alt:
 *             dtype = check_string_dtype(dtype)
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,             # <<<<<<<<<<<<<<
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_key, __pyx_n_b_ALT) < 0) __PYX_ERR(0, 1311, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_v_dtype) < 0) __PYX_ERR(0, 1311, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_number) < 0) __PYX_ERR(0, 1311, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1312
 *             dtype = check_string_dtype(dtype)
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,
 *                                                  chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *         self.store_alt = store_alt
 *         self.store_numalt = store_numalt
 */
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1311, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1311
 *         if store_alt:
 *             dtype = check_string_dtype(dtype)
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,             # <<<<<<<<<<<<<<
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt
 */
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1313
 *         super(VCFAltStringParser, self).__init__(key=b'ALT', dtype=dtype, number=number,
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt             # <<<<<<<<<<<<<<
 *         self.store_numalt = store_numalt
 *         self.store_svlen = store_svlen
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_alt); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1313, __pyx_L1_error)
  __pyx_v_self->store_alt = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1314
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt
 *         self.store_numalt = store_numalt             # <<<<<<<<<<<<<<
 *         self.store_svlen = store_svlen
 *         self.store_is_snp = store_is_snp
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_numalt); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1314, __pyx_L1_error)
  __pyx_v_self->store_numalt = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1315
 *         self.store_alt = store_alt
 *         self.store_numalt = store_numalt
 *         self.store_svlen = store_svlen             # <<<<<<<<<<<<<<
 *         self.store_is_snp = store_is_snp
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_svlen); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1315, __pyx_L1_error)
  __pyx_v_self->store_svlen = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1316
 *         self.store_numalt = store_numalt
 *         self.store_svlen = store_svlen
 *         self.store_is_snp = store_is_snp             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_store_is_snp); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1316, __pyx_L1_error)
  __pyx_v_self->store_is_snp = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":1307
 *         bint store_is_snp
 * 
 *     def __init__(self, dtype, number, chunk_length, store_alt, store_numalt, store_svlen,             # <<<<<<<<<<<<<<
 *                  store_is_snp):
 *         if store_alt:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dtype);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1318
 *         self.store_is_snp = store_is_snp
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index of alt values
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_alt_index;
  Py_ssize_t __pyx_v_memory_offset;
  Py_ssize_t __pyx_v_memory_index;
  Py_ssize_t __pyx_v_chars_stored;
  Py_ssize_t __pyx_v_alt_len;
  int __pyx_v_is_snp;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  char __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  Py_ssize_t __pyx_t_14;
  Py_ssize_t __pyx_t_15;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1321
 *         cdef:
 *             # index of alt values
 *             Py_ssize_t alt_index = 0             # <<<<<<<<<<<<<<
 *             # index into memory view
 *             Py_ssize_t memory_offset, memory_index
 */
  __pyx_v_alt_index = 0;

  /* "variant_tools/io_vcf_read.pyx":1325
 *             Py_ssize_t memory_offset, memory_index
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0             # <<<<<<<<<<<<<<
 *             # size of alt allel
 *             Py_ssize_t alt_len = 0
 */
  __pyx_v_chars_stored = 0;

  /* "variant_tools/io_vcf_read.pyx":1327
 *             Py_ssize_t chars_stored = 0
 *             # size of alt allel
 *             Py_ssize_t alt_len = 0             # <<<<<<<<<<<<<<
 *             # is the variant a SNP?
 *             bint is_snp = context.ref_len == 1
 */
  __pyx_v_alt_len = 0;

  /* "variant_tools/io_vcf_read.pyx":1329
 *             Py_ssize_t alt_len = 0
 *             # is the variant a SNP?
 *             bint is_snp = context.ref_len == 1             # <<<<<<<<<<<<<<
 * 
 *         # bail out early for missing value
 */
  __pyx_v_is_snp = (__pyx_v_context->ref_len == 1);

  /* "variant_tools/io_vcf_read.pyx":1332
 * 
 *         # bail out early for missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1334
 *         if stream.c == PERIOD:
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_parse_missing(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1334, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1335
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # bail out early for empty value
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1332
 * 
 *         # bail out early for missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1338
 * 
 *         # bail out early for empty value
 *         if stream.c == TAB:             # <<<<<<<<<<<<<<
 *             stream.advance()
 *             context.state += 1
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1339
 *         # bail out early for empty value
 *         if stream.c == TAB:
 *             stream.advance()             # <<<<<<<<<<<<<<
 *             context.state += 1
 *             return 0
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1339, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1340
 *         if stream.c == TAB:
 *             stream.advance()
 *             context.state += 1             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1341
 *             stream.advance()
 *             context.state += 1
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # initialise memory offset and index
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1338
 * 
 *         # bail out early for empty value
 *         if stream.c == TAB:             # <<<<<<<<<<<<<<
 *             stream.advance()
 *             context.state += 1
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1344
 * 
 *         # initialise memory offset and index
 *         memory_offset = context.chunk_variant_index * self.itemsize * self.number             # <<<<<<<<<<<<<<
 *         memory_index = memory_offset
 * 
 */
  __pyx_v_memory_offset = ((__pyx_v_context->chunk_variant_index * __pyx_v_self->__pyx_base.itemsize) * __pyx_v_self->__pyx_base.number);

  /* "variant_tools/io_vcf_read.pyx":1345
 *         # initialise memory offset and index
 *         memory_offset = context.chunk_variant_index * self.itemsize * self.number
 *         memory_index = memory_offset             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_v_memory_index = __pyx_v_memory_offset;

  /* "variant_tools/io_vcf_read.pyx":1347
 *         memory_index = memory_offset
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":1349
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1350
 * 
 *             if stream.c == 0:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L8_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1351
 *             if stream.c == 0:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L11_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L11_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1352
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 context.state = VCFState.EOF
 */
        __pyx_t_4 = __pyx_v_context->chunk_variant_index;
        __pyx_t_5 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_4 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1351
 *             if stream.c == 0:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1354
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1355
 *                         alt_len - context.ref_len
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1349
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1357
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L13_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L13_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1358
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L15_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L15_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1359
 *             elif stream.c == LF or stream.c == CR:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L18_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L18_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1360
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 context.state = VCFState.EOL
 */
        __pyx_t_6 = __pyx_v_context->chunk_variant_index;
        __pyx_t_7 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_6 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_7 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1359
 *             elif stream.c == LF or stream.c == CR:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1362
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":1363
 *                         alt_len - context.ref_len
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == TAB:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1357
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1365
 *                 break
 * 
 *             if stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1366
 * 
 *             if stream.c == TAB:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L21_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L21_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1367
 *             if stream.c == TAB:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1368
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 stream.advance()
 */
        __pyx_t_8 = __pyx_v_context->chunk_variant_index;
        __pyx_t_9 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_8 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_9 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1367
 *             if stream.c == TAB:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1370
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 context.state += 1
 *                 break
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1370, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1371
 *                         alt_len - context.ref_len
 *                 stream.advance()
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":1372
 *                 stream.advance()
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1365
 *                 break
 * 
 *             if stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1374
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1375
 * 
 *             elif stream.c == COMMA:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L26_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1376
 *             elif stream.c == COMMA:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L29_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L29_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1377
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 # advance value index
 */
        __pyx_t_10 = __pyx_v_context->chunk_variant_index;
        __pyx_t_11 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_10 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_11 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1376
 *             elif stream.c == COMMA:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1380
 *                         alt_len - context.ref_len
 *                 # advance value index
 *                 alt_index += 1             # <<<<<<<<<<<<<<
 *                 # reset alt_len
 *                 alt_len = 0
 */
      __pyx_v_alt_index = (__pyx_v_alt_index + 1);

      /* "variant_tools/io_vcf_read.pyx":1382
 *                 alt_index += 1
 *                 # reset alt_len
 *                 alt_len = 0             # <<<<<<<<<<<<<<
 *                 # set memory index to beginning of next item
 *                 memory_index = memory_offset + (alt_index * self.itemsize)
 */
      __pyx_v_alt_len = 0;

      /* "variant_tools/io_vcf_read.pyx":1384
 *                 alt_len = 0
 *                 # set memory index to beginning of next item
 *                 memory_index = memory_offset + (alt_index * self.itemsize)             # <<<<<<<<<<<<<<
 *                 # reset chars stored
 *                 chars_stored = 0
 */
      __pyx_v_memory_index = (__pyx_v_memory_offset + (__pyx_v_alt_index * __pyx_v_self->__pyx_base.itemsize));

      /* "variant_tools/io_vcf_read.pyx":1386
 *                 memory_index = memory_offset + (alt_index * self.itemsize)
 *                 # reset chars stored
 *                 chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_v_chars_stored = 0;

      /* "variant_tools/io_vcf_read.pyx":1374
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
      goto __pyx_L20;
    }

    /* "variant_tools/io_vcf_read.pyx":1389
 * 
 *             else:
 *                 if stream.c != PERIOD and stream.c != ASTERISK:             # <<<<<<<<<<<<<<
 *                     alt_len += 1
 *                 if self.store_alt and chars_stored < self.itemsize and alt_index < self.number:
 */
    /*else*/ {
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L32_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_ASTERISK) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L32_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1390
 *             else:
 *                 if stream.c != PERIOD and stream.c != ASTERISK:
 *                     alt_len += 1             # <<<<<<<<<<<<<<
 *                 if self.store_alt and chars_stored < self.itemsize and alt_index < self.number:
 *                     # store value
 */
        __pyx_v_alt_len = (__pyx_v_alt_len + 1);

        /* "variant_tools/io_vcf_read.pyx":1389
 * 
 *             else:
 *                 if stream.c != PERIOD and stream.c != ASTERISK:             # <<<<<<<<<<<<<<
 *                     alt_len += 1
 *                 if self.store_alt and chars_stored < self.itemsize and alt_index < self.number:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1391
 *                 if stream.c != PERIOD and stream.c != ASTERISK:
 *                     alt_len += 1
 *                 if self.store_alt and chars_stored < self.itemsize and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     # store value
 *                     self.memory[memory_index] = stream.c
 */
      __pyx_t_3 = (__pyx_v_self->store_alt != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L35_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_chars_stored < __pyx_v_self->__pyx_base.itemsize) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L35_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L35_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1393
 *                 if self.store_alt and chars_stored < self.itemsize and alt_index < self.number:
 *                     # store value
 *                     self.memory[memory_index] = stream.c             # <<<<<<<<<<<<<<
 *                     # advance number of characters stored
 *                     chars_stored += 1
 */
        __pyx_t_12 = __pyx_v_stream->c;
        __pyx_t_13 = __pyx_v_memory_index;
        *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_13 * __pyx_v_self->memory.strides[0]) )) = __pyx_t_12;

        /* "variant_tools/io_vcf_read.pyx":1395
 *                     self.memory[memory_index] = stream.c
 *                     # advance number of characters stored
 *                     chars_stored += 1             # <<<<<<<<<<<<<<
 *                     # advance memory index
 *                     memory_index += 1
 */
        __pyx_v_chars_stored = (__pyx_v_chars_stored + 1);

        /* "variant_tools/io_vcf_read.pyx":1397
 *                     chars_stored += 1
 *                     # advance memory index
 *                     memory_index += 1             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
        __pyx_v_memory_index = (__pyx_v_memory_index + 1);

        /* "variant_tools/io_vcf_read.pyx":1391
 *                 if stream.c != PERIOD and stream.c != ASTERISK:
 *                     alt_len += 1
 *                 if self.store_alt and chars_stored < self.itemsize and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     # store value
 *                     self.memory[memory_index] = stream.c
 */
      }
    }
    __pyx_L20:;

    /* "variant_tools/io_vcf_read.pyx":1400
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *         if self.store_numalt:
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1400, __pyx_L1_error)
  }
  __pyx_L6_break:;

  /* "variant_tools/io_vcf_read.pyx":1402
 *             stream.advance()
 * 
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:
 */
  __pyx_t_1 = (__pyx_v_self->store_numalt != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1403
 * 
 *         if self.store_numalt:
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1             # <<<<<<<<<<<<<<
 *         if self.store_is_snp:
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 */
    __pyx_t_14 = __pyx_v_context->chunk_variant_index;
    *((__pyx_t_5numpy_int32_t *) ( /* dim=0 */ (__pyx_v_self->numalt_memory.data + __pyx_t_14 * __pyx_v_self->numalt_memory.strides[0]) )) = (__pyx_v_alt_index + 1);

    /* "variant_tools/io_vcf_read.pyx":1402
 *             stream.advance()
 * 
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1404
 *         if self.store_numalt:
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 */
  __pyx_t_1 = (__pyx_v_self->store_is_snp != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1405
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_15 = __pyx_v_context->chunk_variant_index;
    *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->is_snp_memory.data + __pyx_t_15 * __pyx_v_self->is_snp_memory.strides[0]) )) = __pyx_v_is_snp;

    /* "variant_tools/io_vcf_read.pyx":1404
 *         if self.store_numalt:
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1318
 *         self.store_is_snp = store_is_snp
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index of alt values
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1407
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_memviewslice __pyx_t_6 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_7 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_8 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1408
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1409
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')
 *             self.memory = self.values.reshape(-1).view('u1')
 */
  __pyx_t_4 = (__pyx_v_self->store_alt != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1410
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')             # <<<<<<<<<<<<<<
 *             self.memory = self.values.reshape(-1).view('u1')
 *         if self.store_numalt:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
    __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1410, __pyx_L1_error)
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_order, __pyx_n_s_C) < 0) __PYX_ERR(0, 1410, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1410, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
    __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1411
 *         if self.store_alt:
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')
 *             self.memory = self.values.reshape(-1).view('u1')             # <<<<<<<<<<<<<<
 *         if self.store_numalt:
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_reshape); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_2)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_neg_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_neg_1);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_view); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_5 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_1, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_s_u1);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(0, 1411, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
    __pyx_v_self->memory = __pyx_t_6;
    __pyx_t_6.memview = NULL;
    __pyx_t_6.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1409
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')
 *             self.memory = self.values.reshape(-1).view('u1')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1412
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')
 *             self.memory = self.values.reshape(-1).view('u1')
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 */
  __pyx_t_4 = (__pyx_v_self->store_numalt != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1413
 *             self.memory = self.values.reshape(-1).view('u1')
 *         if self.store_numalt:
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')             # <<<<<<<<<<<<<<
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_n_s_int32) < 0) __PYX_ERR(0, 1413, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1413, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->numalt_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->numalt_values));
    __pyx_v_self->numalt_values = ((PyArrayObject *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1414
 *         if self.store_numalt:
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values             # <<<<<<<<<<<<<<
 *         if self.store_svlen:
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 */
    __pyx_t_7 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->numalt_values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_7.memview)) __PYX_ERR(0, 1414, __pyx_L1_error)
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->numalt_memory, 0);
    __pyx_v_self->numalt_memory = __pyx_t_7;
    __pyx_t_7.memview = NULL;
    __pyx_t_7.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1412
 *             self.values = np.zeros(shape, dtype=self.dtype, order='C')
 *             self.memory = self.values.reshape(-1).view('u1')
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1415
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 */
  __pyx_t_4 = (__pyx_v_self->store_svlen != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1416
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:
 *             self.svlen_values = np.zeros(shape, dtype='int32')             # <<<<<<<<<<<<<<
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape);
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_n_s_int32) < 0) __PYX_ERR(0, 1416, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->svlen_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->svlen_values));
    __pyx_v_self->svlen_values = ((PyArrayObject *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":1417
 *         if self.store_svlen:
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values             # <<<<<<<<<<<<<<
 *         if self.store_is_snp:
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 */
    __pyx_t_8 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->svlen_values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_8.memview)) __PYX_ERR(0, 1417, __pyx_L1_error)
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->svlen_memory, 0);
    __pyx_v_self->svlen_memory = __pyx_t_8;
    __pyx_t_8.memview = NULL;
    __pyx_t_8.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1415
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1418
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 */
  __pyx_t_4 = (__pyx_v_self->store_is_snp != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1419
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)             # <<<<<<<<<<<<<<
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, ((PyObject*)&PyBool_Type)) < 0) __PYX_ERR(0, 1419, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1419, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->is_snp_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->is_snp_values));
    __pyx_v_self->is_snp_values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1420
 *         if self.store_is_snp:
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 *             self.is_snp_memory = self.is_snp_values.view('u1')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->is_snp_values), __pyx_n_s_view); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_2)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_5 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_s_u1);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(0, 1420, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->is_snp_memory, 0);
    __pyx_v_self->is_snp_memory = __pyx_t_6;
    __pyx_t_6.memview = NULL;
    __pyx_t_6.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1418
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1407
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __PYX_XDEC_MEMVIEW(&__pyx_t_6, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_7, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_8, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1422
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             if PY2:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1423
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             if PY2:
 *                 field = 'variants/' + self.key
 */
  __pyx_t_1 = (__pyx_v_self->store_alt != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1424
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:
 *             if PY2:             # <<<<<<<<<<<<<<
 *                 field = 'variants/' + self.key
 *             else:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_PY2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1424, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1425
 *         if self.store_alt:
 *             if PY2:
 *                 field = 'variants/' + self.key             # <<<<<<<<<<<<<<
 *             else:
 *                 field = 'variants/' + str(self.key, 'ascii')
 */
      __pyx_t_2 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_v_self->__pyx_base.key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1425, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_field = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1424
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:
 *             if PY2:             # <<<<<<<<<<<<<<
 *                 field = 'variants/' + self.key
 *             else:
 */
      goto __pyx_L4;
    }

    /* "variant_tools/io_vcf_read.pyx":1427
 *                 field = 'variants/' + self.key
 *             else:
 *                 field = 'variants/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:
 */
    /*else*/ {
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1427, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
      __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->__pyx_base.key);
      __Pyx_INCREF(__pyx_n_s_ascii);
      __Pyx_GIVEREF(__pyx_n_s_ascii);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_ascii);
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1427, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1427, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_field = __pyx_t_2;
      __pyx_t_2 = 0;
    }
    __pyx_L4:;

    /* "variant_tools/io_vcf_read.pyx":1428
 *             else:
 *                 field = 'variants/' + str(self.key, 'ascii')
 *             values = self.values             # <<<<<<<<<<<<<<
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 */
    __pyx_t_2 = ((PyObject *)__pyx_v_self->__pyx_base.values);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_values = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1429
 *                 field = 'variants/' + str(self.key, 'ascii')
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.values->nd > 1) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.number == 1) != 0);
    __pyx_t_1 = __pyx_t_4;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1430
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1430, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1430, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 1430, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1430, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":1429
 *                 field = 'variants/' + str(self.key, 'ascii')
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1431
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_numalt:
 *             field = 'variants/numalt'
 */
    __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_5) < 0)) __PYX_ERR(0, 1431, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1423
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             if PY2:
 *                 field = 'variants/' + self.key
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1432
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             field = 'variants/numalt'
 *             values = self.numalt_values
 */
  __pyx_t_1 = (__pyx_v_self->store_numalt != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1433
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:
 *             field = 'variants/numalt'             # <<<<<<<<<<<<<<
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]
 */
    __Pyx_INCREF(__pyx_kp_s_variants_numalt);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_kp_s_variants_numalt);

    /* "variant_tools/io_vcf_read.pyx":1434
 *         if self.store_numalt:
 *             field = 'variants/numalt'
 *             values = self.numalt_values             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:
 */
    __pyx_t_5 = ((PyObject *)__pyx_v_self->numalt_values);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1435
 *             field = 'variants/numalt'
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_svlen:
 *             field = 'variants/svlen'
 */
    __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_5) < 0)) __PYX_ERR(0, 1435, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1432
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             field = 'variants/numalt'
 *             values = self.numalt_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1436
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 */
  __pyx_t_1 = (__pyx_v_self->store_svlen != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1437
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:
 *             field = 'variants/svlen'             # <<<<<<<<<<<<<<
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:
 */
    __Pyx_INCREF(__pyx_kp_s_variants_svlen);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_kp_s_variants_svlen);

    /* "variant_tools/io_vcf_read.pyx":1438
 *         if self.store_svlen:
 *             field = 'variants/svlen'
 *             values = self.svlen_values             # <<<<<<<<<<<<<<
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 */
    __pyx_t_5 = ((PyObject *)__pyx_v_self->svlen_values);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1439
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.values->nd > 1) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L11_bool_binop_done;
    }
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.number == 1) != 0);
    __pyx_t_1 = __pyx_t_4;
    __pyx_L11_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1440
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1440, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1440, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 1440, __pyx_L1_error)
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1440, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1439
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1441
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_is_snp:
 *             field = 'variants/is_snp'
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_2) < 0)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1436
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1442
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values
 */
  __pyx_t_1 = (__pyx_v_self->store_is_snp != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1443
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:
 *             field = 'variants/is_snp'             # <<<<<<<<<<<<<<
 *             values = self.is_snp_values
 *             chunk[field] = values[:limit]
 */
    __Pyx_INCREF(__pyx_kp_s_variants_is_snp);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_kp_s_variants_is_snp);

    /* "variant_tools/io_vcf_read.pyx":1444
 *         if self.store_is_snp:
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 * 
 */
    __pyx_t_2 = ((PyObject *)__pyx_v_self->is_snp_values);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1445
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_2) < 0)) __PYX_ERR(0, 1445, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1442
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1422
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             if PY2:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.memory, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_self->is_snp_memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_self->numalt_memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->store_alt); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyBool_FromLong(__pyx_v_self->store_is_snp); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyBool_FromLong(__pyx_v_self->store_numalt); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyBool_FromLong(__pyx_v_self->store_svlen); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __pyx_memoryview_fromslice(__pyx_v_self->svlen_memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = PyTuple_New(18); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_12, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_12, 3, __pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->is_snp_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->is_snp_values));
  PyTuple_SET_ITEM(__pyx_t_12, 4, ((PyObject *)__pyx_v_self->is_snp_values));
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_12, 5, __pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_12, 6, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_12, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_12, 8, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->numalt_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->numalt_values));
  PyTuple_SET_ITEM(__pyx_t_12, 9, ((PyObject *)__pyx_v_self->numalt_values));
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_12, 10, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_12, 11, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_12, 12, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_9);
  PyTuple_SET_ITEM(__pyx_t_12, 13, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_12, 14, __pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_11);
  PyTuple_SET_ITEM(__pyx_t_12, 15, __pyx_t_11);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->svlen_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->svlen_values));
  PyTuple_SET_ITEM(__pyx_t_12, 16, ((PyObject *)__pyx_v_self->svlen_values));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_12, 17, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_9 = 0;
  __pyx_t_10 = 0;
  __pyx_t_11 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_12);
  __pyx_t_12 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.memory, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_12 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_v__dict = __pyx_t_12;
  __pyx_t_12 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.memory, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_13 = (__pyx_v__dict != Py_None);
  __pyx_t_14 = (__pyx_t_13 != 0);
  if (__pyx_t_14) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v__dict);
    __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_11));
    __pyx_t_11 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.memory, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, None), state
 */
  /*else*/ {
    __pyx_t_13 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_15 = (__pyx_t_13 != 0);
    if (!__pyx_t_15) {
    } else {
      __pyx_t_14 = __pyx_t_15;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_15 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_13 = (__pyx_t_15 != 0);
    if (!__pyx_t_13) {
    } else {
      __pyx_t_14 = __pyx_t_13;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_13 = (((PyObject *)__pyx_v_self->is_snp_values) != Py_None);
    __pyx_t_15 = (__pyx_t_13 != 0);
    if (!__pyx_t_15) {
    } else {
      __pyx_t_14 = __pyx_t_15;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_15 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_13 = (__pyx_t_15 != 0);
    if (!__pyx_t_13) {
    } else {
      __pyx_t_14 = __pyx_t_13;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_13 = (((PyObject *)__pyx_v_self->numalt_values) != Py_None);
    __pyx_t_15 = (__pyx_t_13 != 0);
    if (!__pyx_t_15) {
    } else {
      __pyx_t_14 = __pyx_t_15;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_15 = (((PyObject *)__pyx_v_self->svlen_values) != Py_None);
    __pyx_t_13 = (__pyx_t_15 != 0);
    if (!__pyx_t_13) {
    } else {
      __pyx_t_14 = __pyx_t_13;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_13 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_15 = (__pyx_t_13 != 0);
    __pyx_t_14 = __pyx_t_15;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_14;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, None), state
 *     else:
 */
  __pyx_t_14 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_14) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_pyx_unpickle_VCFAltStringParse); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = PyTuple_New(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_12, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_4027389);
    __Pyx_GIVEREF(__pyx_int_4027389);
    PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_int_4027389);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_12, 2, Py_None);
    __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_11);
    PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_11);
    __Pyx_GIVEREF(__pyx_t_12);
    PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_12);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_state);
    __pyx_t_11 = 0;
    __pyx_t_12 = 0;
    __pyx_r = __pyx_t_10;
    __pyx_t_10 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, None), state
 *     else:
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFAltStringParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_pyx_unpickle_VCFAltStringParse); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_12 = PyTuple_New(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_12, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_4027389);
    __Pyx_GIVEREF(__pyx_int_4027389);
    PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_int_4027389);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_v_state);
    __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_GIVEREF(__pyx_t_10);
    PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_12);
    PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_12);
    __pyx_t_10 = 0;
    __pyx_t_12 = 0;
    __pyx_r = __pyx_t_11;
    __pyx_t_11 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFAltStringParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFAltStringParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltStringParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFAltStringParser, (type(self), 0x03d73fd, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFAltStringParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltStringParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1462
 *         bint store_is_snp
 * 
 *     def __init__(self, number, chunk_length, store_alt, store_numalt, store_svlen, store_is_snp):             # <<<<<<<<<<<<<<
 *         super(VCFAltObjectParser, self).__init__(key=b'ALT', dtype=np.dtype('object'), number=number,
 *                                                  chunk_length=chunk_length)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_number = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_store_alt = 0;
  PyObject *__pyx_v_store_numalt = 0;
  PyObject *__pyx_v_store_svlen = 0;
  PyObject *__pyx_v_store_is_snp = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_number,&__pyx_n_s_chunk_length,&__pyx_n_s_store_alt,&__pyx_n_s_store_numalt,&__pyx_n_s_store_svlen,&__pyx_n_s_store_is_snp,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_number)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); __PYX_ERR(0, 1462, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_alt)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); __PYX_ERR(0, 1462, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_numalt)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); __PYX_ERR(0, 1462, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_svlen)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); __PYX_ERR(0, 1462, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_store_is_snp)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); __PYX_ERR(0, 1462, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1462, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
    }
    __pyx_v_number = values[0];
    __pyx_v_chunk_length = values[1];
    __pyx_v_store_alt = values[2];
    __pyx_v_store_numalt = values[3];
    __pyx_v_store_svlen = values[4];
    __pyx_v_store_is_snp = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1462, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)__pyx_v_self), __pyx_v_number, __pyx_v_chunk_length, __pyx_v_store_alt, __pyx_v_store_numalt, __pyx_v_store_svlen, __pyx_v_store_is_snp);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, PyObject *__pyx_v_number, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_store_alt, PyObject *__pyx_v_store_numalt, PyObject *__pyx_v_store_svlen, PyObject *__pyx_v_store_is_snp) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1463
 * 
 *     def __init__(self, number, chunk_length, store_alt, store_numalt, store_svlen, store_is_snp):
 *         super(VCFAltObjectParser, self).__init__(key=b'ALT', dtype=np.dtype('object'), number=number,             # <<<<<<<<<<<<<<
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_ALT) < 0) __PYX_ERR(0, 1463, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_v_number) < 0) __PYX_ERR(0, 1463, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1464
 *     def __init__(self, number, chunk_length, store_alt, store_numalt, store_svlen, store_is_snp):
 *         super(VCFAltObjectParser, self).__init__(key=b'ALT', dtype=np.dtype('object'), number=number,
 *                                                  chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *         self.store_alt = store_alt
 *         self.store_numalt = store_numalt
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1463, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1463
 * 
 *     def __init__(self, number, chunk_length, store_alt, store_numalt, store_svlen, store_is_snp):
 *         super(VCFAltObjectParser, self).__init__(key=b'ALT', dtype=np.dtype('object'), number=number,             # <<<<<<<<<<<<<<
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1465
 *         super(VCFAltObjectParser, self).__init__(key=b'ALT', dtype=np.dtype('object'), number=number,
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt             # <<<<<<<<<<<<<<
 *         self.store_numalt = store_numalt
 *         self.store_svlen = store_svlen
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_store_alt); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1465, __pyx_L1_error)
  __pyx_v_self->store_alt = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1466
 *                                                  chunk_length=chunk_length)
 *         self.store_alt = store_alt
 *         self.store_numalt = store_numalt             # <<<<<<<<<<<<<<
 *         self.store_svlen = store_svlen
 *         self.store_is_snp = store_is_snp
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_store_numalt); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1466, __pyx_L1_error)
  __pyx_v_self->store_numalt = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1467
 *         self.store_alt = store_alt
 *         self.store_numalt = store_numalt
 *         self.store_svlen = store_svlen             # <<<<<<<<<<<<<<
 *         self.store_is_snp = store_is_snp
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_store_svlen); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1467, __pyx_L1_error)
  __pyx_v_self->store_svlen = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1468
 *         self.store_numalt = store_numalt
 *         self.store_svlen = store_svlen
 *         self.store_is_snp = store_is_snp             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_store_is_snp); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1468, __pyx_L1_error)
  __pyx_v_self->store_is_snp = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1462
 *         bint store_is_snp
 * 
 *     def __init__(self, number, chunk_length, store_alt, store_numalt, store_svlen, store_is_snp):             # <<<<<<<<<<<<<<
 *         super(VCFAltObjectParser, self).__init__(key=b'ALT', dtype=np.dtype('object'), number=number,
 *                                                  chunk_length=chunk_length)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1470
 *         self.store_is_snp = store_is_snp
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index of alt values
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_alt_index;
  Py_ssize_t __pyx_v_alt_len;
  int __pyx_v_is_snp;
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  Py_ssize_t __pyx_t_14;
  Py_ssize_t __pyx_t_15;
  Py_ssize_t __pyx_t_16;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1473
 *         cdef:
 *             # index of alt values
 *             Py_ssize_t alt_index = 0             # <<<<<<<<<<<<<<
 *             # size of alt allele
 *             Py_ssize_t alt_len = 0
 */
  __pyx_v_alt_index = 0;

  /* "variant_tools/io_vcf_read.pyx":1475
 *             Py_ssize_t alt_index = 0
 *             # size of alt allele
 *             Py_ssize_t alt_len = 0             # <<<<<<<<<<<<<<
 *             # is the variant a SNP?
 *             bint is_snp = context.ref_len == 1
 */
  __pyx_v_alt_len = 0;

  /* "variant_tools/io_vcf_read.pyx":1477
 *             Py_ssize_t alt_len = 0
 *             # is the variant a SNP?
 *             bint is_snp = context.ref_len == 1             # <<<<<<<<<<<<<<
 * 
 *         # bail out early for missing value
 */
  __pyx_v_is_snp = (__pyx_v_context->ref_len == 1);

  /* "variant_tools/io_vcf_read.pyx":1480
 * 
 *         # bail out early for missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1482
 *         if stream.c == PERIOD:
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_parse_missing(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1482, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1483
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # bail out early for empty value
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1480
 * 
 *         # bail out early for missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat period as missing value, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1486
 * 
 *         # bail out early for empty value
 *         if stream.c == TAB:             # <<<<<<<<<<<<<<
 *             stream.advance()
 *             context.state += 1
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1487
 *         # bail out early for empty value
 *         if stream.c == TAB:
 *             stream.advance()             # <<<<<<<<<<<<<<
 *             context.state += 1
 *             return 0
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1487, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1488
 *         if stream.c == TAB:
 *             stream.advance()
 *             context.state += 1             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1489
 *             stream.advance()
 *             context.state += 1
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # setup temp
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1486
 * 
 *         # bail out early for empty value
 *         if stream.c == TAB:             # <<<<<<<<<<<<<<
 *             stream.advance()
 *             context.state += 1
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1492
 * 
 *         # setup temp
 *         CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":1494
 *         CharVector_clear(&context.temp)
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":1496
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1497
 * 
 *             if stream.c == 0:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L8_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1498
 *             if stream.c == 0:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L11_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L11_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1499
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:
 */
        __pyx_t_4 = __pyx_v_context->chunk_variant_index;
        __pyx_t_5 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_4 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1498
 *             if stream.c == 0:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1501
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      __pyx_t_3 = (__pyx_v_self->store_alt != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_context->temp.size > 0) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1503
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 context.state = VCFState.EOF
 */
        __pyx_t_6 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1503, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":1504
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
        __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1504, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = PyInt_FromSsize_t(__pyx_v_alt_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1504, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1504, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7);
        __pyx_t_6 = 0;
        __pyx_t_7 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_8, __pyx_v_v) < 0)) __PYX_ERR(0, 1504, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

        /* "variant_tools/io_vcf_read.pyx":1501
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1505
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1506
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1496
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1508
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L17_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L17_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1509
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L19_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L19_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1510
 *             elif stream.c == LF or stream.c == CR:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L22_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L22_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1511
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:
 */
        __pyx_t_9 = __pyx_v_context->chunk_variant_index;
        __pyx_t_10 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_9 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_10 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1510
 *             elif stream.c == LF or stream.c == CR:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1513
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      __pyx_t_3 = (__pyx_v_self->store_alt != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L25_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L25_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_context->temp.size > 0) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L25_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1515
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 context.state = VCFState.EOL
 */
        __pyx_t_8 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1515, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_8);
        __pyx_t_8 = 0;

        /* "variant_tools/io_vcf_read.pyx":1516
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
        __pyx_t_8 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1516, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_7 = PyInt_FromSsize_t(__pyx_v_alt_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1516, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1516, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7);
        __pyx_t_8 = 0;
        __pyx_t_7 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_6, __pyx_v_v) < 0)) __PYX_ERR(0, 1516, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":1513
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1517
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":1518
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == TAB:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1508
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1520
 *                 break
 * 
 *             if stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1521
 * 
 *             if stream.c == TAB:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L29_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L29_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1522
 *             if stream.c == TAB:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L32_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L32_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1523
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:
 */
        __pyx_t_11 = __pyx_v_context->chunk_variant_index;
        __pyx_t_12 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_11 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_12 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1522
 *             if stream.c == TAB:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1525
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      __pyx_t_3 = (__pyx_v_self->store_alt != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L35_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L35_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_context->temp.size > 0) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L35_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1527
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 stream.advance()
 */
        __pyx_t_6 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1527, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":1528
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v             # <<<<<<<<<<<<<<
 *                 stream.advance()
 *                 context.state += 1
 */
        __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1528, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = PyInt_FromSsize_t(__pyx_v_alt_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1528, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1528, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7);
        __pyx_t_6 = 0;
        __pyx_t_7 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_8, __pyx_v_v) < 0)) __PYX_ERR(0, 1528, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

        /* "variant_tools/io_vcf_read.pyx":1525
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1529
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 context.state += 1
 *                 break
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1529, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1530
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 stream.advance()
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":1531
 *                 stream.advance()
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1520
 *                 break
 * 
 *             if stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1533
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1534
 * 
 *             elif stream.c == COMMA:
 *                 is_snp = is_snp and alt_len == 1             # <<<<<<<<<<<<<<
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 */
      __pyx_t_3 = (__pyx_v_is_snp != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L38_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_len == 1) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L38_bool_binop_done:;
      __pyx_v_is_snp = __pyx_t_1;

      /* "variant_tools/io_vcf_read.pyx":1535
 *             elif stream.c == COMMA:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      __pyx_t_3 = (__pyx_v_self->store_svlen != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L41_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L41_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1536
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \             # <<<<<<<<<<<<<<
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number:
 */
        __pyx_t_13 = __pyx_v_context->chunk_variant_index;
        __pyx_t_14 = __pyx_v_alt_index;
        *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->svlen_memory.data + __pyx_t_13 * __pyx_v_self->svlen_memory.strides[0]) ) + __pyx_t_14 * __pyx_v_self->svlen_memory.strides[1]) )) = (__pyx_v_alt_len - __pyx_v_context->ref_len);

        /* "variant_tools/io_vcf_read.pyx":1535
 *             elif stream.c == COMMA:
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1538
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      __pyx_t_3 = (__pyx_v_self->store_alt != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L44_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L44_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1540
 *                 if self.store_alt and alt_index < self.number:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 # advance value index
 */
        __pyx_t_8 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1540, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_8);
        __pyx_t_8 = 0;

        /* "variant_tools/io_vcf_read.pyx":1541
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, alt_index] = v             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 alt_index += 1
 */
        __pyx_t_8 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1541, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_7 = PyInt_FromSsize_t(__pyx_v_alt_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1541, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1541, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7);
        __pyx_t_8 = 0;
        __pyx_t_7 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_6, __pyx_v_v) < 0)) __PYX_ERR(0, 1541, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":1538
 *                     self.svlen_memory[context.chunk_variant_index, alt_index] = \
 *                         alt_len - context.ref_len
 *                 if self.store_alt and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1543
 *                     self.values[context.chunk_variant_index, alt_index] = v
 *                 # advance value index
 *                 alt_index += 1             # <<<<<<<<<<<<<<
 *                 # reset
 *                 CharVector_clear(&context.temp)
 */
      __pyx_v_alt_index = (__pyx_v_alt_index + 1);

      /* "variant_tools/io_vcf_read.pyx":1545
 *                 alt_index += 1
 *                 # reset
 *                 CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *                 alt_len = 0
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":1546
 *                 # reset
 *                 CharVector_clear(&context.temp)
 *                 alt_len = 0             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_v_alt_len = 0;

      /* "variant_tools/io_vcf_read.pyx":1533
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 is_snp = is_snp and alt_len == 1
 *                 if self.store_svlen and alt_index < self.number:
 */
      goto __pyx_L28;
    }

    /* "variant_tools/io_vcf_read.pyx":1549
 * 
 *             else:
 *                 if stream.c != PERIOD and stream.c != ASTERISK:             # <<<<<<<<<<<<<<
 *                     alt_len += 1
 *                 if self.store_alt and alt_index < self.number:
 */
    /*else*/ {
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L47_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_ASTERISK) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L47_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1550
 *             else:
 *                 if stream.c != PERIOD and stream.c != ASTERISK:
 *                     alt_len += 1             # <<<<<<<<<<<<<<
 *                 if self.store_alt and alt_index < self.number:
 *                     CharVector_append(&context.temp, stream.c)
 */
        __pyx_v_alt_len = (__pyx_v_alt_len + 1);

        /* "variant_tools/io_vcf_read.pyx":1549
 * 
 *             else:
 *                 if stream.c != PERIOD and stream.c != ASTERISK:             # <<<<<<<<<<<<<<
 *                     alt_len += 1
 *                 if self.store_alt and alt_index < self.number:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1551
 *                 if stream.c != PERIOD and stream.c != ASTERISK:
 *                     alt_len += 1
 *                 if self.store_alt and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     CharVector_append(&context.temp, stream.c)
 * 
 */
      __pyx_t_3 = (__pyx_v_self->store_alt != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_1 = __pyx_t_3;
        goto __pyx_L50_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_alt_index < __pyx_v_self->__pyx_base.number) != 0);
      __pyx_t_1 = __pyx_t_3;
      __pyx_L50_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1552
 *                     alt_len += 1
 *                 if self.store_alt and alt_index < self.number:
 *                     CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
        __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);

        /* "variant_tools/io_vcf_read.pyx":1551
 *                 if stream.c != PERIOD and stream.c != ASTERISK:
 *                     alt_len += 1
 *                 if self.store_alt and alt_index < self.number:             # <<<<<<<<<<<<<<
 *                     CharVector_append(&context.temp, stream.c)
 * 
 */
      }
    }
    __pyx_L28:;

    /* "variant_tools/io_vcf_read.pyx":1555
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *         if self.store_numalt:
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1555, __pyx_L1_error)
  }
  __pyx_L6_break:;

  /* "variant_tools/io_vcf_read.pyx":1557
 *             stream.advance()
 * 
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:
 */
  __pyx_t_1 = (__pyx_v_self->store_numalt != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1558
 * 
 *         if self.store_numalt:
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1             # <<<<<<<<<<<<<<
 *         if self.store_is_snp:
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 */
    __pyx_t_15 = __pyx_v_context->chunk_variant_index;
    *((__pyx_t_5numpy_int32_t *) ( /* dim=0 */ (__pyx_v_self->numalt_memory.data + __pyx_t_15 * __pyx_v_self->numalt_memory.strides[0]) )) = (__pyx_v_alt_index + 1);

    /* "variant_tools/io_vcf_read.pyx":1557
 *             stream.advance()
 * 
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1559
 *         if self.store_numalt:
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 */
  __pyx_t_1 = (__pyx_v_self->store_is_snp != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1560
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_16 = __pyx_v_context->chunk_variant_index;
    *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->is_snp_memory.data + __pyx_t_16 * __pyx_v_self->is_snp_memory.strides[0]) )) = __pyx_v_is_snp;

    /* "variant_tools/io_vcf_read.pyx":1559
 *         if self.store_numalt:
 *             self.numalt_memory[context.chunk_variant_index] = alt_index + 1
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1470
 *         self.store_is_snp = store_is_snp
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             # index of alt values
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1562
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_memviewslice __pyx_t_6 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_7 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_8 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1563
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1564
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')
 *             self.values.fill('')
 */
  __pyx_t_4 = (__pyx_v_self->store_alt != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1565
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')             # <<<<<<<<<<<<<<
 *             self.values.fill('')
 *         if self.store_numalt:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
    __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1565, __pyx_L1_error)
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_order, __pyx_n_s_C) < 0) __PYX_ERR(0, 1565, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
    __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1566
 *         if self.store_alt:
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')
 *             self.values.fill('')             # <<<<<<<<<<<<<<
 *         if self.store_numalt:
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_fill); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_5 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_s__6);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1564
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')
 *             self.values.fill('')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1567
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')
 *             self.values.fill('')
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 */
  __pyx_t_4 = (__pyx_v_self->store_numalt != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1568
 *             self.values.fill('')
 *         if self.store_numalt:
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')             # <<<<<<<<<<<<<<
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_n_s_int32) < 0) __PYX_ERR(0, 1568, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1568, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->numalt_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->numalt_values));
    __pyx_v_self->numalt_values = ((PyArrayObject *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1569
 *         if self.store_numalt:
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values             # <<<<<<<<<<<<<<
 *         if self.store_svlen:
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 */
    __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->numalt_values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(0, 1569, __pyx_L1_error)
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->numalt_memory, 0);
    __pyx_v_self->numalt_memory = __pyx_t_6;
    __pyx_t_6.memview = NULL;
    __pyx_t_6.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1567
 *             self.values = np.empty(shape, dtype=self.dtype, order='C')
 *             self.values.fill('')
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1570
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 */
  __pyx_t_4 = (__pyx_v_self->store_svlen != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1571
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:
 *             self.svlen_values = np.zeros(shape, dtype='int32')             # <<<<<<<<<<<<<<
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape);
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_n_s_int32) < 0) __PYX_ERR(0, 1571, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1571, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->svlen_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->svlen_values));
    __pyx_v_self->svlen_values = ((PyArrayObject *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":1572
 *         if self.store_svlen:
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values             # <<<<<<<<<<<<<<
 *         if self.store_is_snp:
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 */
    __pyx_t_7 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->svlen_values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_7.memview)) __PYX_ERR(0, 1572, __pyx_L1_error)
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->svlen_memory, 0);
    __pyx_v_self->svlen_memory = __pyx_t_7;
    __pyx_t_7.memview = NULL;
    __pyx_t_7.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1570
 *             self.numalt_values = np.zeros(self.chunk_length, dtype='int32')
 *             self.numalt_memory = self.numalt_values
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1573
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 */
  __pyx_t_4 = (__pyx_v_self->store_is_snp != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":1574
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)             # <<<<<<<<<<<<<<
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
    __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject*)&PyBool_Type)) < 0) __PYX_ERR(0, 1574, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1574, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->is_snp_values);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->is_snp_values));
    __pyx_v_self->is_snp_values = ((PyArrayObject *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1575
 *         if self.store_is_snp:
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 *             self.is_snp_memory = self.is_snp_values.view('u1')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->is_snp_values), __pyx_n_s_view); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_2)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_5 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_s_u1);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_8 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_8.memview)) __PYX_ERR(0, 1575, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_XDEC_MEMVIEW(&__pyx_v_self->is_snp_memory, 0);
    __pyx_v_self->is_snp_memory = __pyx_t_8;
    __pyx_t_8.memview = NULL;
    __pyx_t_8.data = NULL;

    /* "variant_tools/io_vcf_read.pyx":1573
 *             self.svlen_values = np.zeros(shape, dtype='int32')
 *             self.svlen_memory = self.svlen_values
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             self.is_snp_values = np.zeros(self.chunk_length, dtype=bool)
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1562
 *             self.is_snp_memory[context.chunk_variant_index] = is_snp
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         if self.store_alt:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __PYX_XDEC_MEMVIEW(&__pyx_t_6, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_7, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_8, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1577
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             if PY2:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1578
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             if PY2:
 *                 field = 'variants/' + self.key
 */
  __pyx_t_1 = (__pyx_v_self->store_alt != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1579
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:
 *             if PY2:             # <<<<<<<<<<<<<<
 *                 field = 'variants/' + self.key
 *             else:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_PY2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1579, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1580
 *         if self.store_alt:
 *             if PY2:
 *                 field = 'variants/' + self.key             # <<<<<<<<<<<<<<
 *             else:
 *                 field = 'variants/' + str(self.key, 'ascii')
 */
      __pyx_t_2 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_v_self->__pyx_base.key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_field = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1579
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:
 *             if PY2:             # <<<<<<<<<<<<<<
 *                 field = 'variants/' + self.key
 *             else:
 */
      goto __pyx_L4;
    }

    /* "variant_tools/io_vcf_read.pyx":1582
 *                 field = 'variants/' + self.key
 *             else:
 *                 field = 'variants/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:
 */
    /*else*/ {
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
      __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->__pyx_base.key);
      __Pyx_INCREF(__pyx_n_s_ascii);
      __Pyx_GIVEREF(__pyx_n_s_ascii);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_ascii);
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_field = __pyx_t_2;
      __pyx_t_2 = 0;
    }
    __pyx_L4:;

    /* "variant_tools/io_vcf_read.pyx":1583
 *             else:
 *                 field = 'variants/' + str(self.key, 'ascii')
 *             values = self.values             # <<<<<<<<<<<<<<
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 */
    __pyx_t_2 = ((PyObject *)__pyx_v_self->__pyx_base.values);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_values = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1584
 *                 field = 'variants/' + str(self.key, 'ascii')
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.values->nd > 1) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.number == 1) != 0);
    __pyx_t_1 = __pyx_t_4;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1585
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 1585, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":1584
 *                 field = 'variants/' + str(self.key, 'ascii')
 *             values = self.values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1586
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_numalt:
 *             field = 'variants/numalt'
 */
    __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_5) < 0)) __PYX_ERR(0, 1586, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1578
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if self.store_alt:             # <<<<<<<<<<<<<<
 *             if PY2:
 *                 field = 'variants/' + self.key
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1587
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             field = 'variants/numalt'
 *             values = self.numalt_values
 */
  __pyx_t_1 = (__pyx_v_self->store_numalt != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1588
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:
 *             field = 'variants/numalt'             # <<<<<<<<<<<<<<
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]
 */
    __Pyx_INCREF(__pyx_kp_s_variants_numalt);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_kp_s_variants_numalt);

    /* "variant_tools/io_vcf_read.pyx":1589
 *         if self.store_numalt:
 *             field = 'variants/numalt'
 *             values = self.numalt_values             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:
 */
    __pyx_t_5 = ((PyObject *)__pyx_v_self->numalt_values);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1590
 *             field = 'variants/numalt'
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_svlen:
 *             field = 'variants/svlen'
 */
    __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_5) < 0)) __PYX_ERR(0, 1590, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1587
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_numalt:             # <<<<<<<<<<<<<<
 *             field = 'variants/numalt'
 *             values = self.numalt_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1591
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 */
  __pyx_t_1 = (__pyx_v_self->store_svlen != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1592
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:
 *             field = 'variants/svlen'             # <<<<<<<<<<<<<<
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:
 */
    __Pyx_INCREF(__pyx_kp_s_variants_svlen);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_kp_s_variants_svlen);

    /* "variant_tools/io_vcf_read.pyx":1593
 *         if self.store_svlen:
 *             field = 'variants/svlen'
 *             values = self.svlen_values             # <<<<<<<<<<<<<<
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 */
    __pyx_t_5 = ((PyObject *)__pyx_v_self->svlen_values);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":1594
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.values->nd > 1) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_1 = __pyx_t_4;
      goto __pyx_L11_bool_binop_done;
    }
    __pyx_t_4 = ((__pyx_v_self->__pyx_base.number == 1) != 0);
    __pyx_t_1 = __pyx_t_4;
    __pyx_L11_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1595
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1595, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1595, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 1595, __pyx_L1_error)
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1595, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1594
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 *             if self.values.ndim > 1 and self.number == 1:             # <<<<<<<<<<<<<<
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1596
 *             if self.values.ndim > 1 and self.number == 1:
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 *         if self.store_is_snp:
 *             field = 'variants/is_snp'
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_2) < 0)) __PYX_ERR(0, 1596, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1591
 *             values = self.numalt_values
 *             chunk[field] = values[:limit]
 *         if self.store_svlen:             # <<<<<<<<<<<<<<
 *             field = 'variants/svlen'
 *             values = self.svlen_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1597
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values
 */
  __pyx_t_1 = (__pyx_v_self->store_is_snp != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1598
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:
 *             field = 'variants/is_snp'             # <<<<<<<<<<<<<<
 *             values = self.is_snp_values
 *             chunk[field] = values[:limit]
 */
    __Pyx_INCREF(__pyx_kp_s_variants_is_snp);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_kp_s_variants_is_snp);

    /* "variant_tools/io_vcf_read.pyx":1599
 *         if self.store_is_snp:
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values             # <<<<<<<<<<<<<<
 *             chunk[field] = values[:limit]
 * 
 */
    __pyx_t_2 = ((PyObject *)__pyx_v_self->is_snp_values);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1600
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values
 *             chunk[field] = values[:limit]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_values, 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_2) < 0)) __PYX_ERR(0, 1600, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1597
 *                 values = values.squeeze(axis=1)
 *             chunk[field] = values[:limit]
 *         if self.store_is_snp:             # <<<<<<<<<<<<<<
 *             field = 'variants/is_snp'
 *             values = self.is_snp_values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1577
 *             self.is_snp_memory = self.is_snp_values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if self.store_alt:
 *             if PY2:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_self->is_snp_memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_self->numalt_memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->store_alt); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->store_is_snp); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyBool_FromLong(__pyx_v_self->store_numalt); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyBool_FromLong(__pyx_v_self->store_svlen); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_self->svlen_memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = PyTuple_New(17); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_11, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_11, 3, __pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->is_snp_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->is_snp_values));
  PyTuple_SET_ITEM(__pyx_t_11, 4, ((PyObject *)__pyx_v_self->is_snp_values));
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_11, 5, __pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_11, 6, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_11, 7, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->numalt_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->numalt_values));
  PyTuple_SET_ITEM(__pyx_t_11, 8, ((PyObject *)__pyx_v_self->numalt_values));
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_11, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_11, 10, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_11, 11, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_11, 12, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_9);
  PyTuple_SET_ITEM(__pyx_t_11, 13, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_11, 14, __pyx_t_10);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->svlen_values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->svlen_values));
  PyTuple_SET_ITEM(__pyx_t_11, 15, ((PyObject *)__pyx_v_self->svlen_values));
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_11, 16, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_9 = 0;
  __pyx_t_10 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_11);
  __pyx_t_11 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_11 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_v__dict = __pyx_t_11;
  __pyx_t_11 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_12 = (__pyx_v__dict != Py_None);
  __pyx_t_13 = (__pyx_t_12 != 0);
  if (__pyx_t_13) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v__dict);
    __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_10));
    __pyx_t_10 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.is_snp_memory, self.is_snp_values, self.itemsize, self.key, self.numalt_memory, self.numalt_values, self.number, self.store_alt, self.store_is_snp, self.store_numalt, self.store_svlen, self.svlen_memory, self.svlen_values, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, None), state
 */
  /*else*/ {
    __pyx_t_12 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    if (!__pyx_t_14) {
    } else {
      __pyx_t_13 = __pyx_t_14;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_14 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_12 = (__pyx_t_14 != 0);
    if (!__pyx_t_12) {
    } else {
      __pyx_t_13 = __pyx_t_12;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_12 = (((PyObject *)__pyx_v_self->is_snp_values) != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    if (!__pyx_t_14) {
    } else {
      __pyx_t_13 = __pyx_t_14;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_14 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_12 = (__pyx_t_14 != 0);
    if (!__pyx_t_12) {
    } else {
      __pyx_t_13 = __pyx_t_12;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_12 = (((PyObject *)__pyx_v_self->numalt_values) != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    if (!__pyx_t_14) {
    } else {
      __pyx_t_13 = __pyx_t_14;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_14 = (((PyObject *)__pyx_v_self->svlen_values) != Py_None);
    __pyx_t_12 = (__pyx_t_14 != 0);
    if (!__pyx_t_12) {
    } else {
      __pyx_t_13 = __pyx_t_12;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_12 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_14 = (__pyx_t_12 != 0);
    __pyx_t_13 = __pyx_t_14;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_13;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, None), state
 *     else:
 */
  __pyx_t_13 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_13) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_pyx_unpickle_VCFAltObjectParse); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_11, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_27830275);
    __Pyx_GIVEREF(__pyx_int_27830275);
    PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_int_27830275);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_11, 2, Py_None);
    __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_10);
    PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_11);
    PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_11);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_state);
    __pyx_t_10 = 0;
    __pyx_t_11 = 0;
    __pyx_r = __pyx_t_9;
    __pyx_t_9 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.is_snp_values is not None or self.key is not None or self.numalt_values is not None or self.svlen_values is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, None), state
 *     else:
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFAltObjectParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_pyx_unpickle_VCFAltObjectParse); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_11, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_27830275);
    __Pyx_GIVEREF(__pyx_int_27830275);
    PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_int_27830275);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_v_state);
    __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_11);
    PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_11);
    __pyx_t_9 = 0;
    __pyx_t_11 = 0;
    __pyx_r = __pyx_t_10;
    __pyx_t_10 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFAltObjectParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFAltObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFAltObjectParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltObjectParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFAltObjectParser, (type(self), 0x1a8a803, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFAltObjectParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFAltObjectParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1607
 *     cdef np.float32_t[:] memory
 * 
 *     def __init__(self, chunk_length, fill=NAN):             # <<<<<<<<<<<<<<
 *         super(VCFQualParser, self).__init__(key=b'QUAL', dtype='float32', number=1,
 *                                             fill=fill, chunk_length=chunk_length)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_fill = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_chunk_length,&__pyx_n_s_fill,0};
    PyObject* values[2] = {0,0};
    values[1] = __pyx_k__14;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fill);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1607, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_chunk_length = values[0];
    __pyx_v_fill = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1607, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFQualParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *)__pyx_v_self), __pyx_v_chunk_length, __pyx_v_fill);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_fill) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1608
 * 
 *     def __init__(self, chunk_length, fill=NAN):
 *         super(VCFQualParser, self).__init__(key=b'QUAL', dtype='float32', number=1,             # <<<<<<<<<<<<<<
 *                                             fill=fill, chunk_length=chunk_length)
 * 
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_QUAL) < 0) __PYX_ERR(0, 1608, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_n_s_float32) < 0) __PYX_ERR(0, 1608, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_int_1) < 0) __PYX_ERR(0, 1608, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1609
 *     def __init__(self, chunk_length, fill=NAN):
 *         super(VCFQualParser, self).__init__(key=b'QUAL', dtype='float32', number=1,
 *                                             fill=fill, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1608, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1608, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1608
 * 
 *     def __init__(self, chunk_length, fill=NAN):
 *         super(VCFQualParser, self).__init__(key=b'QUAL', dtype='float32', number=1,             # <<<<<<<<<<<<<<
 *                                             fill=fill, chunk_length=chunk_length)
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1607
 *     cdef np.float32_t[:] memory
 * 
 *     def __init__(self, chunk_length, fill=NAN):             # <<<<<<<<<<<<<<
 *         super(VCFQualParser, self).__init__(key=b'QUAL', dtype='float32', number=1,
 *                                             fill=fill, chunk_length=chunk_length)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFQualParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1611
 *                                             fill=fill, chunk_length=chunk_length)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             double value
 */

static int __pyx_f_13variant_tools_11io_vcf_read_13VCFQualParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  double __pyx_v_value;
  Py_ssize_t __pyx_v_parsed;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1617
 * 
 *         # read into temp
 *         vcf_read_field(stream, context, &context.temp)             # <<<<<<<<<<<<<<
 * 
 *         # parse string as floating
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_read_field(__pyx_v_stream, __pyx_v_context, (&__pyx_v_context->temp)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1617, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1620
 * 
 *         # parse string as floating
 *         parsed = vcf_strtod(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *         if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 1620, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":1622
 *         parsed = vcf_strtod(&context.temp, context, &value)
 * 
 *         if parsed > 0:             # <<<<<<<<<<<<<<
 *             # store value
 *             self.memory[context.chunk_variant_index] = value
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1624
 *         if parsed > 0:
 *             # store value
 *             self.memory[context.chunk_variant_index] = value             # <<<<<<<<<<<<<<
 * 
 *         if context.state == VCFState.QUAL:
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    *((__pyx_t_5numpy_float32_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_4 * __pyx_v_self->memory.strides[0]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":1622
 *         parsed = vcf_strtod(&context.temp, context, &value)
 * 
 *         if parsed > 0:             # <<<<<<<<<<<<<<
 *             # store value
 *             self.memory[context.chunk_variant_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1626
 *             self.memory[context.chunk_variant_index] = value
 * 
 *         if context.state == VCFState.QUAL:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_context->state == __pyx_e_13variant_tools_11io_vcf_read_QUAL) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1627
 * 
 *         if context.state == VCFState.QUAL:
 *             context.state += 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1626
 *             self.memory[context.chunk_variant_index] = value
 * 
 *         if context.state == VCFState.QUAL:             # <<<<<<<<<<<<<<
 *             context.state += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1611
 *                                             fill=fill, chunk_length=chunk_length)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             double value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFQualParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1629
 *             context.state += 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.empty(self.chunk_length, dtype='float32')
 *         self.memory = self.values
 */

static int __pyx_f_13variant_tools_11io_vcf_read_13VCFQualParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1630
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.empty(self.chunk_length, dtype='float32')             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = NAN
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_n_s_float32) < 0) __PYX_ERR(0, 1630, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1630, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1631
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.empty(self.chunk_length, dtype='float32')
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = NAN
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_float32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1631, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":1632
 *         self.values = np.empty(self.chunk_length, dtype='float32')
 *         self.memory = self.values
 *         self.memory[:] = NAN             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_float32_t __pyx_temp_scalar = __pyx_v_13variant_tools_11io_vcf_read_NAN;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            *((__pyx_t_5numpy_float32_t *) __pyx_temp_pointer_0) = __pyx_temp_scalar;
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":1629
 *             context.state += 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.empty(self.chunk_length, dtype='float32')
 *         self.memory = self.values
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFQualParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_float32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_float32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFQualParser); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFQualParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFQualParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFQualParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFQualParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFQualParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFQualParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFQualParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFQualParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFQualParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFQualParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1643
 *         char** filter_keys_cstr
 * 
 *     def __cinit__(self, filter_keys, chunk_length):             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t i
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_filter_keys = 0;
  CYTHON_UNUSED PyObject *__pyx_v_chunk_length = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_filter_keys,&__pyx_n_s_chunk_length,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filter_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 1643, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 1643, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_filter_keys = values[0];
    __pyx_v_chunk_length = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1643, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser___cinit__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self), __pyx_v_filter_keys, __pyx_v_chunk_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, PyObject *__pyx_v_filter_keys, CYTHON_UNUSED PyObject *__pyx_v_chunk_length) {
  Py_ssize_t __pyx_v_i;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  char *__pyx_t_7;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "variant_tools/io_vcf_read.pyx":1647
 *             Py_ssize_t i
 *         # N.B., need to keep a reference to these, otherwise C strings will not behave
 *         self.filter_keys = tuple(sorted(filter_keys))             # <<<<<<<<<<<<<<
 *         self.n_filters = len(self.filter_keys)
 *         self.filter_keys_cstr = <char**> malloc(sizeof(char*) * self.n_filters)
 */
  __pyx_t_2 = PySequence_List(__pyx_v_filter_keys); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_3 = PyList_Sort(__pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1647, __pyx_L1_error)
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1647, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_AsTuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->filter_keys);
  __Pyx_DECREF(__pyx_v_self->filter_keys);
  __pyx_v_self->filter_keys = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":1648
 *         # N.B., need to keep a reference to these, otherwise C strings will not behave
 *         self.filter_keys = tuple(sorted(filter_keys))
 *         self.n_filters = len(self.filter_keys)             # <<<<<<<<<<<<<<
 *         self.filter_keys_cstr = <char**> malloc(sizeof(char*) * self.n_filters)
 *         for i in range(self.n_filters):
 */
  __pyx_t_2 = __pyx_v_self->filter_keys;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1648, __pyx_L1_error)
  }
  __pyx_t_4 = PyTuple_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1648, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->n_filters = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1649
 *         self.filter_keys = tuple(sorted(filter_keys))
 *         self.n_filters = len(self.filter_keys)
 *         self.filter_keys_cstr = <char**> malloc(sizeof(char*) * self.n_filters)             # <<<<<<<<<<<<<<
 *         for i in range(self.n_filters):
 *             self.filter_keys_cstr[i] = <char*> self.filter_keys[i]
 */
  __pyx_v_self->filter_keys_cstr = ((char **)malloc(((sizeof(char *)) * __pyx_v_self->n_filters)));

  /* "variant_tools/io_vcf_read.pyx":1650
 *         self.n_filters = len(self.filter_keys)
 *         self.filter_keys_cstr = <char**> malloc(sizeof(char*) * self.n_filters)
 *         for i in range(self.n_filters):             # <<<<<<<<<<<<<<
 *             self.filter_keys_cstr[i] = <char*> self.filter_keys[i]
 * 
 */
  __pyx_t_4 = __pyx_v_self->n_filters;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":1651
 *         self.filter_keys_cstr = <char**> malloc(sizeof(char*) * self.n_filters)
 *         for i in range(self.n_filters):
 *             self.filter_keys_cstr[i] = <char*> self.filter_keys[i]             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, filter_keys, chunk_length):
 */
    if (unlikely(__pyx_v_self->filter_keys == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 1651, __pyx_L1_error)
    }
    __pyx_t_7 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v_self->filter_keys, __pyx_v_i)); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 1651, __pyx_L1_error)
    (__pyx_v_self->filter_keys_cstr[__pyx_v_i]) = ((char *)__pyx_t_7);
  }

  /* "variant_tools/io_vcf_read.pyx":1643
 *         char** filter_keys_cstr
 * 
 *     def __cinit__(self, filter_keys, chunk_length):             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t i
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1653
 *             self.filter_keys_cstr[i] = <char*> self.filter_keys[i]
 * 
 *     def __init__(self, filter_keys, chunk_length):             # <<<<<<<<<<<<<<
 *         super(VCFFilterParser, self).__init__(key=b'FILTER', dtype='bool', number=len(filter_keys), fill=0,
 *                                               chunk_length=chunk_length)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_filter_keys = 0;
  PyObject *__pyx_v_chunk_length = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_filter_keys,&__pyx_n_s_chunk_length,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filter_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 1653, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1653, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_filter_keys = values[0];
    __pyx_v_chunk_length = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1653, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_2__init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self), __pyx_v_filter_keys, __pyx_v_chunk_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, PyObject *__pyx_v_filter_keys, PyObject *__pyx_v_chunk_length) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1654
 * 
 *     def __init__(self, filter_keys, chunk_length):
 *         super(VCFFilterParser, self).__init__(key=b'FILTER', dtype='bool', number=len(filter_keys), fill=0,             # <<<<<<<<<<<<<<
 *                                               chunk_length=chunk_length)
 * 
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFilterParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFilterParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFilterParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_FILTER) < 0) __PYX_ERR(0, 1654, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_n_s_bool) < 0) __PYX_ERR(0, 1654, __pyx_L1_error)
  __pyx_t_3 = PyObject_Length(__pyx_v_filter_keys); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1654, __pyx_L1_error)
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_t_4) < 0) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fill, __pyx_int_0) < 0) __PYX_ERR(0, 1654, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1655
 *     def __init__(self, filter_keys, chunk_length):
 *         super(VCFFilterParser, self).__init__(key=b'FILTER', dtype='bool', number=len(filter_keys), fill=0,
 *                                               chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1654, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1654
 * 
 *     def __init__(self, filter_keys, chunk_length):
 *         super(VCFFilterParser, self).__init__(key=b'FILTER', dtype='bool', number=len(filter_keys), fill=0,             # <<<<<<<<<<<<<<
 *                                               chunk_length=chunk_length)
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1653
 *             self.filter_keys_cstr[i] = <char*> self.filter_keys[i]
 * 
 *     def __init__(self, filter_keys, chunk_length):             # <<<<<<<<<<<<<<
 *         super(VCFFilterParser, self).__init__(key=b'FILTER', dtype='bool', number=len(filter_keys), fill=0,
 *                                               chunk_length=chunk_length)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1657
 *                                               chunk_length=chunk_length)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.filter_keys_cstr is not NULL:
 *             free(self.filter_keys_cstr)
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_5__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_4__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":1658
 * 
 *     def __dealloc__(self):
 *         if self.filter_keys_cstr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.filter_keys_cstr)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->filter_keys_cstr != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1659
 *     def __dealloc__(self):
 *         if self.filter_keys_cstr is not NULL:
 *             free(self.filter_keys_cstr)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
    free(__pyx_v_self->filter_keys_cstr);

    /* "variant_tools/io_vcf_read.pyx":1658
 * 
 *     def __dealloc__(self):
 *         if self.filter_keys_cstr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.filter_keys_cstr)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1657
 *                                               chunk_length=chunk_length)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.filter_keys_cstr is not NULL:
 *             free(self.filter_keys_cstr)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "variant_tools/io_vcf_read.pyx":1661
 *             free(self.filter_keys_cstr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t filter_index
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1666
 * 
 *         # check for explicit missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1668
 *         if stream.c == PERIOD:
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_parse_missing(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1668, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1669
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # reset temporary buffer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1666
 * 
 *         # check for explicit missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1672
 * 
 *         # reset temporary buffer
 *         CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":1674
 *         CharVector_clear(&context.temp)
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":1676
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOF
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1677
 * 
 *             if stream.c == 0:
 *                 self.parse_filter(context)             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_filter(__pyx_v_self, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1677, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1678
 *             if stream.c == 0:
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1679
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L5_break;

      /* "variant_tools/io_vcf_read.pyx":1676
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOF
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1681
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOL
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L7_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1682
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 self.parse_filter(context)             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_filter(__pyx_v_self, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1682, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1683
 *             elif stream.c == LF or stream.c == CR:
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":1684
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L5_break;

      /* "variant_tools/io_vcf_read.pyx":1681
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 self.parse_filter(context)
 *                 context.state = VCFState.EOL
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1686
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 self.parse_filter(context)
 *                 # advance input stream beyond tab
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1687
 * 
 *             elif stream.c == TAB:
 *                 self.parse_filter(context)             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond tab
 *                 stream.advance()
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_filter(__pyx_v_self, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1687, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1689
 *                 self.parse_filter(context)
 *                 # advance input stream beyond tab
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 context.state += 1
 *                 break
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1689, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1690
 *                 # advance input stream beyond tab
 *                 stream.advance()
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":1691
 *                 stream.advance()
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA or stream.c == COLON or stream.c == SEMICOLON:
 */
      goto __pyx_L5_break;

      /* "variant_tools/io_vcf_read.pyx":1686
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 self.parse_filter(context)
 *                 # advance input stream beyond tab
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1693
 *                 break
 * 
 *             elif stream.c == COMMA or stream.c == COLON or stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *                 # some of these delimiters are not strictly kosher, but have seen them
 *                 self.parse_filter(context)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1695
 *             elif stream.c == COMMA or stream.c == COLON or stream.c == SEMICOLON:
 *                 # some of these delimiters are not strictly kosher, but have seen them
 *                 self.parse_filter(context)             # <<<<<<<<<<<<<<
 *                 CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_filter(__pyx_v_self, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1695, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1696
 *                 # some of these delimiters are not strictly kosher, but have seen them
 *                 self.parse_filter(context)
 *                 CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":1693
 *                 break
 * 
 *             elif stream.c == COMMA or stream.c == COLON or stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *                 # some of these delimiters are not strictly kosher, but have seen them
 *                 self.parse_filter(context)
 */
      goto __pyx_L6;
    }

    /* "variant_tools/io_vcf_read.pyx":1699
 * 
 *             else:
 *                 CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L6:;

    /* "variant_tools/io_vcf_read.pyx":1702
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *         return 1
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1702, __pyx_L1_error)
  }
  __pyx_L5_break:;

  /* "variant_tools/io_vcf_read.pyx":1704
 *             stream.advance()
 * 
 *         return 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse_filter(self, VCFContext context) except -1:  # nogil
 */
  __pyx_r = 1;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":1661
 *             free(self.filter_keys_cstr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t filter_index
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1706
 *         return 1
 * 
 *     cdef int parse_filter(self, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t filter_index
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_parse_filter(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_filter_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  __Pyx_RefNannySetupContext("parse_filter", 0);

  /* "variant_tools/io_vcf_read.pyx":1711
 *             Py_ssize_t i
 * 
 *         if context.temp.size == 0:             # <<<<<<<<<<<<<<
 *             # not strictly kosher, treat as missing/empty
 *             return 0
 */
  __pyx_t_1 = ((__pyx_v_context->temp.size == 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1713
 *         if context.temp.size == 0:
 *             # not strictly kosher, treat as missing/empty
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         CharVector_terminate(&context.temp)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1711
 *             Py_ssize_t i
 * 
 *         if context.temp.size == 0:             # <<<<<<<<<<<<<<
 *             # not strictly kosher, treat as missing/empty
 *             return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1715
 *             return 0
 * 
 *         CharVector_terminate(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         # search through filters to find index
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":1718
 * 
 *         # search through filters to find index
 *         filter_index = search_sorted_cstr(context.temp.data, self.filter_keys_cstr, self.n_filters)             # <<<<<<<<<<<<<<
 * 
 *         # store value
 */
  __pyx_v_filter_index = __pyx_f_13variant_tools_11io_vcf_read_search_sorted_cstr(__pyx_v_context->temp.data, __pyx_v_self->filter_keys_cstr, __pyx_v_self->n_filters);

  /* "variant_tools/io_vcf_read.pyx":1721
 * 
 *         # store value
 *         if filter_index >= 0:             # <<<<<<<<<<<<<<
 *             self.memory[context.chunk_variant_index, filter_index] = 1
 * 
 */
  __pyx_t_1 = ((__pyx_v_filter_index >= 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1722
 *         # store value
 *         if filter_index >= 0:
 *             self.memory[context.chunk_variant_index, filter_index] = 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_2 = __pyx_v_context->chunk_variant_index;
    __pyx_t_3 = __pyx_v_filter_index;
    *((__pyx_t_5numpy_uint8_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_2 * __pyx_v_self->memory.strides[0]) ) + __pyx_t_3 * __pyx_v_self->memory.strides[1]) )) = 1;

    /* "variant_tools/io_vcf_read.pyx":1721
 * 
 *         # store value
 *         if filter_index >= 0:             # <<<<<<<<<<<<<<
 *             self.memory[context.chunk_variant_index, filter_index] = 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1706
 *         return 1
 * 
 *     cdef int parse_filter(self, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t filter_index
 */

  /* function exit code */
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1724
 *             self.memory[context.chunk_variant_index, filter_index] = 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_filters)
 *         self.values = np.zeros(shape, dtype=bool)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1725
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_filters)             # <<<<<<<<<<<<<<
 *         self.values = np.zeros(shape, dtype=bool)
 *         self.memory = self.values.view('u1')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->n_filters); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1726
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_filters)
 *         self.values = np.zeros(shape, dtype=bool)             # <<<<<<<<<<<<<<
 *         self.memory = self.values.view('u1')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject*)&PyBool_Type)) < 0) __PYX_ERR(0, 1726, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1727
 *         shape = (self.chunk_length, self.n_filters)
 *         self.values = np.zeros(shape, dtype=bool)
 *         self.memory = self.values.view('u1')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_view); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_s_u1);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint8_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1727, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":1724
 *             self.memory[context.chunk_variant_index, filter_index] = 1
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_filters)
 *         self.values = np.zeros(shape, dtype=bool)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1729
 *         self.memory = self.values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         for i, f in enumerate(self.filter_keys):
 *             if not PY2:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_v_field = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1730
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         for i, f in enumerate(self.filter_keys):             # <<<<<<<<<<<<<<
 *             if not PY2:
 *                 f = str(f, 'ascii')
 */
  __Pyx_INCREF(__pyx_int_0);
  __pyx_t_1 = __pyx_int_0;
  __pyx_t_2 = __pyx_v_self->filter_keys; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
  for (;;) {
    if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 1730, __pyx_L1_error)
    #else
    __pyx_t_4 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":1731
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         for i, f in enumerate(self.filter_keys):
 *             if not PY2:             # <<<<<<<<<<<<<<
 *                 f = str(f, 'ascii')
 *             field = 'variants/FILTER_' + f
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_PY2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1731, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = ((!__pyx_t_5) != 0);
    if (__pyx_t_6) {

      /* "variant_tools/io_vcf_read.pyx":1732
 *         for i, f in enumerate(self.filter_keys):
 *             if not PY2:
 *                 f = str(f, 'ascii')             # <<<<<<<<<<<<<<
 *             field = 'variants/FILTER_' + f
 *             chunk[field] = self.values[:limit, i]
 */
      __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1732, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_v_f);
      __Pyx_GIVEREF(__pyx_v_f);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_f);
      __Pyx_INCREF(__pyx_n_s_ascii);
      __Pyx_GIVEREF(__pyx_n_s_ascii);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_n_s_ascii);
      __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1732, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_f, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "variant_tools/io_vcf_read.pyx":1731
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         for i, f in enumerate(self.filter_keys):
 *             if not PY2:             # <<<<<<<<<<<<<<
 *                 f = str(f, 'ascii')
 *             field = 'variants/FILTER_' + f
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1733
 *             if not PY2:
 *                 f = str(f, 'ascii')
 *             field = 'variants/FILTER_' + f             # <<<<<<<<<<<<<<
 *             chunk[field] = self.values[:limit, i]
 * 
 */
    __pyx_t_7 = PyNumber_Add(__pyx_kp_s_variants_FILTER, __pyx_v_f); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "variant_tools/io_vcf_read.pyx":1734
 *                 f = str(f, 'ascii')
 *             field = 'variants/FILTER_' + f
 *             chunk[field] = self.values[:limit, i]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_7 = PySlice_New(Py_None, __pyx_v_limit, Py_None); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7);
    __Pyx_INCREF(__pyx_v_i);
    __Pyx_GIVEREF(__pyx_v_i);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_i);
    __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_7) < 0)) __PYX_ERR(0, 1734, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "variant_tools/io_vcf_read.pyx":1730
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         for i, f in enumerate(self.filter_keys):             # <<<<<<<<<<<<<<
 *             if not PY2:
 *                 f = str(f, 'ascii')
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1729
 *         self.memory = self.values.view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         for i, f in enumerate(self.filter_keys):
 *             if not PY2:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_6__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_8__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFilterParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFilterParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1752
 *         object fills
 * 
 *     def __cinit__(self, info_keys, types, numbers, chunk_length, fills):             # <<<<<<<<<<<<<<
 * 
 *         # setup INFO keys
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_info_keys = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_fills = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_info_keys,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_chunk_length,&__pyx_n_s_fills,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_info_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 5, 5, 1); __PYX_ERR(0, 1752, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 5, 5, 2); __PYX_ERR(0, 1752, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 5, 5, 3); __PYX_ERR(0, 1752, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 5, 5, 4); __PYX_ERR(0, 1752, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 1752, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
    }
    __pyx_v_info_keys = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_chunk_length = values[3];
    __pyx_v_fills = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1752, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser___cinit__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self), __pyx_v_info_keys, __pyx_v_types, __pyx_v_numbers, __pyx_v_chunk_length, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, PyObject *__pyx_v_info_keys, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_fills) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_info_parsers = NULL;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_v_n = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_parser = NULL;
  PyObject *__pyx_v_fill = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  char *__pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "variant_tools/io_vcf_read.pyx":1756
 *         # setup INFO keys
 *         # N.B., need to keep a reference to these, otherwise C strings will not behave
 *         self.info_keys = tuple(sorted(info_keys))             # <<<<<<<<<<<<<<
 *         self.n_infos = len(self.info_keys)
 * 
 */
  __pyx_t_2 = PySequence_List(__pyx_v_info_keys); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_3 = PyList_Sort(__pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1756, __pyx_L1_error)
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1756, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_AsTuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->info_keys);
  __Pyx_DECREF(__pyx_v_self->info_keys);
  __pyx_v_self->info_keys = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":1757
 *         # N.B., need to keep a reference to these, otherwise C strings will not behave
 *         self.info_keys = tuple(sorted(info_keys))
 *         self.n_infos = len(self.info_keys)             # <<<<<<<<<<<<<<
 * 
 *         # setup INFO keys as C strings for nogil searching
 */
  __pyx_t_2 = __pyx_v_self->info_keys;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1757, __pyx_L1_error)
  }
  __pyx_t_4 = PyTuple_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1757, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->n_infos = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1760
 * 
 *         # setup INFO keys as C strings for nogil searching
 *         self.info_keys_cstr = <char**> malloc(sizeof(char*) * self.n_infos)             # <<<<<<<<<<<<<<
 *         for i in range(self.n_infos):
 *             self.info_keys_cstr[i] = <char*> self.info_keys[i]
 */
  __pyx_v_self->info_keys_cstr = ((char **)malloc(((sizeof(char *)) * __pyx_v_self->n_infos)));

  /* "variant_tools/io_vcf_read.pyx":1761
 *         # setup INFO keys as C strings for nogil searching
 *         self.info_keys_cstr = <char**> malloc(sizeof(char*) * self.n_infos)
 *         for i in range(self.n_infos):             # <<<<<<<<<<<<<<
 *             self.info_keys_cstr[i] = <char*> self.info_keys[i]
 * 
 */
  __pyx_t_4 = __pyx_v_self->n_infos;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":1762
 *         self.info_keys_cstr = <char**> malloc(sizeof(char*) * self.n_infos)
 *         for i in range(self.n_infos):
 *             self.info_keys_cstr[i] = <char*> self.info_keys[i]             # <<<<<<<<<<<<<<
 * 
 *         # setup INFO parsers
 */
    if (unlikely(__pyx_v_self->info_keys == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 1762, __pyx_L1_error)
    }
    __pyx_t_7 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v_self->info_keys, __pyx_v_i)); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 1762, __pyx_L1_error)
    (__pyx_v_self->info_keys_cstr[__pyx_v_i]) = ((char *)__pyx_t_7);
  }

  /* "variant_tools/io_vcf_read.pyx":1765
 * 
 *         # setup INFO parsers
 *         info_parsers = list()             # <<<<<<<<<<<<<<
 *         self.skip_parser = VCFInfoSkipParser(key=None)
 *         for key in self.info_keys:
 */
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_info_parsers = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":1766
 *         # setup INFO parsers
 *         info_parsers = list()
 *         self.skip_parser = VCFInfoSkipParser(key=None)             # <<<<<<<<<<<<<<
 *         for key in self.info_keys:
 *             t = types[key]
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, Py_None) < 0) __PYX_ERR(0, 1766, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->skip_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->skip_parser));
  __pyx_v_self->skip_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1767
 *         info_parsers = list()
 *         self.skip_parser = VCFInfoSkipParser(key=None)
 *         for key in self.info_keys:             # <<<<<<<<<<<<<<
 *             t = types[key]
 *             n = numbers[key]
 */
  if (unlikely(__pyx_v_self->info_keys == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1767, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->info_keys; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1767, __pyx_L1_error)
    #else
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1768
 *         self.skip_parser = VCFInfoSkipParser(key=None)
 *         for key in self.info_keys:
 *             t = types[key]             # <<<<<<<<<<<<<<
 *             n = numbers[key]
 *             if t == np.dtype(bool) or n == 0:
 */
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1769
 *         for key in self.info_keys:
 *             t = types[key]
 *             n = numbers[key]             # <<<<<<<<<<<<<<
 *             if t == np.dtype(bool) or n == 0:
 *                 if t != np.dtype(bool):
 */
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_numbers, __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":1770
 *             t = types[key]
 *             n = numbers[key]
 *             if t == np.dtype(bool) or n == 0:             # <<<<<<<<<<<<<<
 *                 if t != np.dtype(bool):
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 */
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), ((PyObject*)&PyBool_Type)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_9 = PyObject_RichCompare(__pyx_v_t, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 1770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (!__pyx_t_10) {
    } else {
      __pyx_t_8 = __pyx_t_10;
      goto __pyx_L8_bool_binop_done;
    }
    __pyx_t_9 = __Pyx_PyInt_EqObjC(__pyx_v_n, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 1770, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = __pyx_t_10;
    __pyx_L8_bool_binop_done:;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1771
 *             n = numbers[key]
 *             if t == np.dtype(bool) or n == 0:
 *                 if t != np.dtype(bool):             # <<<<<<<<<<<<<<
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 */
      __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), ((PyObject*)&PyBool_Type)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1771, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_2 = PyObject_RichCompare(__pyx_v_t, __pyx_t_9, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1771, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1771, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_8) {

        /* "variant_tools/io_vcf_read.pyx":1772
 *             if t == np.dtype(bool) or n == 0:
 *                 if t != np.dtype(bool):
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t == np.dtype('int8'):
 */
        __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_warnings); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_warn); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_9 = __Pyx_PyString_FormatSafe(__pyx_kp_s_cannot_have_non_bool_dtype_for_f, __pyx_v_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_12 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
          __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11);
          if (likely(__pyx_t_12)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
            __Pyx_INCREF(__pyx_t_12);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_11, function);
          }
        }
        __pyx_t_2 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_12, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":1771
 *             n = numbers[key]
 *             if t == np.dtype(bool) or n == 0:
 *                 if t != np.dtype(bool):             # <<<<<<<<<<<<<<
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1773
 *                 if t != np.dtype(bool):
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int8'):
 *                 fill = fills.get(key, -1)
 */
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_key);
      __pyx_t_11 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1773, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser), __pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_9));
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1770
 *             t = types[key]
 *             n = numbers[key]
 *             if t == np.dtype(bool) or n == 0:             # <<<<<<<<<<<<<<
 *                 if t != np.dtype(bool):
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1774
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt8Parser(key, number=n,
 */
    __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = PyObject_RichCompare(__pyx_v_t, __pyx_t_9, Py_EQ); __Pyx_XGOTREF(__pyx_t_11); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1774, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1774, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1775
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t == np.dtype('int8'):
 *                 fill = fills.get(key, -1)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoInt8Parser(key, number=n,
 *                                            fill=fill, chunk_length=chunk_length)
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1775, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_2 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_9, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_9)) {
        PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1775, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_GOTREF(__pyx_t_11);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) {
        PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1775, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_GOTREF(__pyx_t_11);
      } else
      #endif
      {
        __pyx_t_12 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1775, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (__pyx_t_2) {
          __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_2); __pyx_t_2 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_12, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_13, __pyx_int_neg_1);
        __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1775, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_11);
      __pyx_t_11 = 0;

      /* "variant_tools/io_vcf_read.pyx":1776
 *             elif t == np.dtype('int8'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt8Parser(key, number=n,             # <<<<<<<<<<<<<<
 *                                            fill=fill, chunk_length=chunk_length)
 *             elif t == np.dtype('int16'):
 */
      __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1776, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_key);
      __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1776, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1776, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1777
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt8Parser(key, number=n,
 *                                            fill=fill, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int16'):
 *                 fill = fills.get(key, -1)
 */
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1776, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1776, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1776
 *             elif t == np.dtype('int8'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt8Parser(key, number=n,             # <<<<<<<<<<<<<<
 *                                            fill=fill, chunk_length=chunk_length)
 *             elif t == np.dtype('int16'):
 */
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser), __pyx_t_11, __pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1776, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":1774
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt8Parser(key, number=n,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1778
 *                 parser = VCFInfoInt8Parser(key, number=n,
 *                                            fill=fill, chunk_length=chunk_length)
 *             elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_9 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1778, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1778, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1779
 *                                            fill=fill, chunk_length=chunk_length)
 *             elif t == np.dtype('int16'):
 *                 fill = fills.get(key, -1)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 */
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1779, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_11 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
        __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
        if (likely(__pyx_t_11)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_12, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_12)) {
        PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_12, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1779, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_GOTREF(__pyx_t_9);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_12)) {
        PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_12, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1779, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_GOTREF(__pyx_t_9);
      } else
      #endif
      {
        __pyx_t_2 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1779, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (__pyx_t_11) {
          __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_11); __pyx_t_11 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_13, __pyx_int_neg_1);
        __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_12, __pyx_t_2, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1779, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1780
 *             elif t == np.dtype('int16'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('int32'):
 */
      __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1780, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1780, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1781
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int32'):
 *                 fill = fills.get(key, -1)
 */
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1780, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1780
 *             elif t == np.dtype('int16'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('int32'):
 */
      __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser), __pyx_t_9, __pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1780, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1778
 *                 parser = VCFInfoInt8Parser(key, number=n,
 *                                            fill=fill, chunk_length=chunk_length)
 *             elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1782
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1782, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1782, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1783
 *                                             fill=fill)
 *             elif t == np.dtype('int32'):
 *                 fill = fills.get(key, -1)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1783, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_9)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_2)) {
        PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1783, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_GOTREF(__pyx_t_12);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
        PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1783, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_GOTREF(__pyx_t_12);
      } else
      #endif
      {
        __pyx_t_11 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1783, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        if (__pyx_t_9) {
          __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_13, __pyx_int_neg_1);
        __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1783, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_12);
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":1784
 *             elif t == np.dtype('int32'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('int64'):
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1784, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1784, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1784, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1784, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1785
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int64'):
 *                 fill = fills.get(key, -1)
 */
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1784, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1784
 *             elif t == np.dtype('int32'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('int64'):
 */
      __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser), __pyx_t_12, __pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1784, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_11));
      __pyx_t_11 = 0;

      /* "variant_tools/io_vcf_read.pyx":1782
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1786
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1786, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_t, __pyx_t_11, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1786, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1786, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1787
 *                                             fill=fill)
 *             elif t == np.dtype('int64'):
 *                 fill = fills.get(key, -1)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 */
      __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1787, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_12 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_11, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_11)) {
        PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1787, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_GOTREF(__pyx_t_2);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) {
        PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1787, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_GOTREF(__pyx_t_2);
      } else
      #endif
      {
        __pyx_t_9 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1787, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__pyx_t_12) {
          __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_12); __pyx_t_12 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_13, __pyx_int_neg_1);
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1787, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      }
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1788
 *             elif t == np.dtype('int64'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('uint8'):
 */
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1788, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_key);
      __pyx_t_11 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1788, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1788, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1788, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1789
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint8'):
 *                 fill = fills.get(key, IU8.max)
 */
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1788, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1788
 *             elif t == np.dtype('int64'):
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('uint8'):
 */
      __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser), __pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1788, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_9));
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1786
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1790
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU8.max)
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = PyObject_RichCompare(__pyx_v_t, __pyx_t_9, Py_EQ); __Pyx_XGOTREF(__pyx_t_11); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1790, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1790, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1791
 *                                             fill=fill)
 *             elif t == np.dtype('uint8'):
 *                 fill = fills.get(key, IU8.max)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1791, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IU8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1791, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_max); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1791, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_9, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_9)) {
        PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_t_12};
        __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1791, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) {
        PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_t_12};
        __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1791, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_2) {
          __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_2); __pyx_t_2 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_12);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_13, __pyx_t_12);
        __pyx_t_12 = 0;
        __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_14, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_11);
      __pyx_t_11 = 0;

      /* "variant_tools/io_vcf_read.pyx":1792
 *             elif t == np.dtype('uint8'):
 *                 fill = fills.get(key, IU8.max)
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('uint16'):
 */
      __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_key);
      __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1792, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1792, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1793
 *                 fill = fills.get(key, IU8.max)
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint16'):
 *                 fill = fills.get(key, IU16.max)
 */
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1792, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1792
 *             elif t == np.dtype('uint8'):
 *                 fill = fills.get(key, IU8.max)
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                             fill=fill)
 *             elif t == np.dtype('uint16'):
 */
      __pyx_t_14 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser), __pyx_t_11, __pyx_t_9); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_14));
      __pyx_t_14 = 0;

      /* "variant_tools/io_vcf_read.pyx":1790
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU8.max)
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1794
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU16.max)
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_14 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1794, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __pyx_t_9 = PyObject_RichCompare(__pyx_v_t, __pyx_t_14, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1794, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1794, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1795
 *                                             fill=fill)
 *             elif t == np.dtype('uint16'):
 *                 fill = fills.get(key, IU16.max)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 */
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1795, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_IU16); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1795, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_max); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1795, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __pyx_t_11 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) {
        __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_14);
        if (likely(__pyx_t_11)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_14, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_14)) {
        PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_v_key, __pyx_t_12};
        __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1795, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
        PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_v_key, __pyx_t_12};
        __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1795, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      {
        __pyx_t_2 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1795, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (__pyx_t_11) {
          __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_11); __pyx_t_11 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_12);
        PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_13, __pyx_t_12);
        __pyx_t_12 = 0;
        __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_2, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1795, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1796
 *             elif t == np.dtype('uint16'):
 *                 fill = fills.get(key, IU16.max)
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                              fill=fill)
 *             elif t == np.dtype('uint32'):
 */
      __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_key);
      __pyx_t_14 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1796, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1796, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1797
 *                 fill = fills.get(key, IU16.max)
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint32'):
 *                 fill = fills.get(key, IU32.max)
 */
      if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1796, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1796
 *             elif t == np.dtype('uint16'):
 *                 fill = fills.get(key, IU16.max)
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                              fill=fill)
 *             elif t == np.dtype('uint32'):
 */
      __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser), __pyx_t_9, __pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1794
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU16.max)
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1798
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU32.max)
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_14 = PyObject_RichCompare(__pyx_v_t, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_14); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1798, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_14); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1798, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1799
 *                                              fill=fill)
 *             elif t == np.dtype('uint32'):
 *                 fill = fills.get(key, IU32.max)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_IU32); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_max); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_9)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_2)) {
        PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_v_key, __pyx_t_12};
        __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1799, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
        PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_v_key, __pyx_t_12};
        __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1799, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      {
        __pyx_t_11 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1799, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        if (__pyx_t_9) {
          __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_12);
        PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_13, __pyx_t_12);
        __pyx_t_12 = 0;
        __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1799, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_14);
      __pyx_t_14 = 0;

      /* "variant_tools/io_vcf_read.pyx":1800
 *             elif t == np.dtype('uint32'):
 *                 fill = fills.get(key, IU32.max)
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                              fill=fill)
 *             elif t == np.dtype('uint64'):
 */
      __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1800, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_v_key);
      __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1800, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1800, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1800, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1801
 *                 fill = fills.get(key, IU32.max)
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint64'):
 *                 fill = fills.get(key, IU64.max)
 */
      if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1800, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1800
 *             elif t == np.dtype('uint32'):
 *                 fill = fills.get(key, IU32.max)
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                              fill=fill)
 *             elif t == np.dtype('uint64'):
 */
      __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser), __pyx_t_14, __pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1800, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_11));
      __pyx_t_11 = 0;

      /* "variant_tools/io_vcf_read.pyx":1798
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU32.max)
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1802
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU64.max)
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_t, __pyx_t_11, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1802, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1802, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1803
 *                                              fill=fill)
 *             elif t == np.dtype('uint64'):
 *                 fill = fills.get(key, IU64.max)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 */
      __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1803, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU64); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1803, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1803, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_14 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_11);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_11, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_11)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_12};
        __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1803, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_12};
        __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1803, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      } else
      #endif
      {
        __pyx_t_9 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1803, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_12);
        PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_13, __pyx_t_12);
        __pyx_t_12 = 0;
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1803, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      }
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":1804
 *             elif t == np.dtype('uint64'):
 *                 fill = fills.get(key, IU64.max)
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                              fill=fill)
 *             elif t == np.dtype('float32'):
 */
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_key);
      __pyx_t_11 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1804, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1804, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1805
 *                 fill = fills.get(key, IU64.max)
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('float32'):
 *                 fill = fills.get(key, NAN)
 */
      if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1804, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1804
 *             elif t == np.dtype('uint64'):
 *                 fill = fills.get(key, IU64.max)
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                              fill=fill)
 *             elif t == np.dtype('float32'):
 */
      __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser), __pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_9));
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1802
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU64.max)
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1806
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1806, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = PyObject_RichCompare(__pyx_v_t, __pyx_t_9, Py_EQ); __Pyx_XGOTREF(__pyx_t_11); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1806, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1806, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1807
 *                                              fill=fill)
 *             elif t == np.dtype('float32'):
 *                 fill = fills.get(key, NAN)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1807, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_2 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1807, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_12 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_9);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_9, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_9)) {
        PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_v_key, __pyx_t_2};
        __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1807, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) {
        PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_v_key, __pyx_t_2};
        __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1807, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1807, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_12) {
          __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_12); __pyx_t_12 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_2);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_13, __pyx_t_2);
        __pyx_t_2 = 0;
        __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_14, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1807, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_11);
      __pyx_t_11 = 0;

      /* "variant_tools/io_vcf_read.pyx":1808
 *             elif t == np.dtype('float32'):
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                               fill=fill)
 *             elif t == np.dtype('float64'):
 */
      __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1808, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_key);
      __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1808, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1808, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1808, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1809
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('float64'):
 *                 fill = fills.get(key, NAN)
 */
      if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1808, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1808
 *             elif t == np.dtype('float32'):
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                               fill=fill)
 *             elif t == np.dtype('float64'):
 */
      __pyx_t_14 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser), __pyx_t_11, __pyx_t_9); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1808, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_14));
      __pyx_t_14 = 0;

      /* "variant_tools/io_vcf_read.pyx":1806
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1810
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 *             elif t == np.dtype('float64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 */
    __pyx_t_14 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __pyx_t_9 = PyObject_RichCompare(__pyx_v_t, __pyx_t_14, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1810, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1810, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1811
 *                                               fill=fill)
 *             elif t == np.dtype('float64'):
 *                 fill = fills.get(key, NAN)             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 */
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1811, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_11 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1811, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_2 = NULL;
      __pyx_t_13 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_14, function);
          __pyx_t_13 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_14)) {
        PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_t_11};
        __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1811, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
        PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_t_11};
        __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1811, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      } else
      #endif
      {
        __pyx_t_12 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1811, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (__pyx_t_2) {
          __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_2); __pyx_t_2 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_12, 0+__pyx_t_13, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_11);
        PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_13, __pyx_t_11);
        __pyx_t_11 = 0;
        __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_12, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1811, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      }
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1812
 *             elif t == np.dtype('float64'):
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                               fill=fill)
 *             elif t == np.dtype(bool):
 */
      __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1812, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_key);
      __pyx_t_14 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1812, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1812, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1812, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1813
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype(bool):
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 */
      if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_fill, __pyx_v_fill) < 0) __PYX_ERR(0, 1812, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1812
 *             elif t == np.dtype('float64'):
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,             # <<<<<<<<<<<<<<
 *                                               fill=fill)
 *             elif t == np.dtype(bool):
 */
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser), __pyx_t_9, __pyx_t_14); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1812, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":1810
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 *             elif t == np.dtype('float64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1814
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 *             elif t == np.dtype(bool):             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t.kind == 'S':
 */
    __pyx_t_12 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), ((PyObject*)&PyBool_Type)); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_14 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_14); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1814, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_14); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1814, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1815
 *                                               fill=fill)
 *             elif t == np.dtype(bool):
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *             elif t.kind == 'S':
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)
 */
      __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1815, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1815, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1815, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser), __pyx_t_14, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1815, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_9));
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1814
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 *             elif t == np.dtype(bool):             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t.kind == 'S':
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1816
 *             elif t == np.dtype(bool):
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)
 *             elif t.kind == 'O':
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_9, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1816, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1817
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t.kind == 'S':
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *             elif t.kind == 'O':
 *                 parser = VCFInfoObjectParser(key, number=n, chunk_length=chunk_length)
 */
      __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1817, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1817, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 1817, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1817, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1817, __pyx_L1_error)
      __pyx_t_14 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser), __pyx_t_9, __pyx_t_12); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1817, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_14));
      __pyx_t_14 = 0;

      /* "variant_tools/io_vcf_read.pyx":1816
 *             elif t == np.dtype(bool):
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)
 *             elif t.kind == 'O':
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1818
 *             elif t.kind == 'S':
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)
 *             elif t.kind == 'O':             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoObjectParser(key, number=n, chunk_length=chunk_length)
 *             else:
 */
    __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_14, __pyx_n_s_O, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1818, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    if (__pyx_t_8) {

      /* "variant_tools/io_vcf_read.pyx":1819
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)
 *             elif t.kind == 'O':
 *                 parser = VCFInfoObjectParser(key, number=n, chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *             else:
 *                 parser = VCFInfoSkipParser(key)
 */
      __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1819, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1819, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 1819, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1819, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser), __pyx_t_14, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1819, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_9));
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1818
 *             elif t.kind == 'S':
 *                 parser = VCFInfoStringParser(key, dtype=t, number=n, chunk_length=chunk_length)
 *             elif t.kind == 'O':             # <<<<<<<<<<<<<<
 *                 parser = VCFInfoObjectParser(key, number=n, chunk_length=chunk_length)
 *             else:
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1821
 *                 parser = VCFInfoObjectParser(key, number=n, chunk_length=chunk_length)
 *             else:
 *                 parser = VCFInfoSkipParser(key)             # <<<<<<<<<<<<<<
 *                 warnings.warn('type %s not supported for INFO field %r, field will be skipped' % (t, key))
 *             info_parsers.append(parser)
 */
    /*else*/ {
      __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser), __pyx_v_key); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1821, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_9));
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":1822
 *             else:
 *                 parser = VCFInfoSkipParser(key)
 *                 warnings.warn('type %s not supported for INFO field %r, field will be skipped' % (t, key))             # <<<<<<<<<<<<<<
 *             info_parsers.append(parser)
 *         self.info_parsers = tuple(info_parsers)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_warnings); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_warn); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_12 = PyTuple_New(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_t);
      __Pyx_GIVEREF(__pyx_v_t);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_t);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_v_key);
      __pyx_t_11 = __Pyx_PyString_Format(__pyx_kp_s_type_s_not_supported_for_INFO_fi, __pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_14))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_14);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_14, function);
        }
      }
      __pyx_t_9 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_14, __pyx_t_12, __pyx_t_11) : __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_t_11);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    }
    __pyx_L7:;

    /* "variant_tools/io_vcf_read.pyx":1823
 *                 parser = VCFInfoSkipParser(key)
 *                 warnings.warn('type %s not supported for INFO field %r, field will be skipped' % (t, key))
 *             info_parsers.append(parser)             # <<<<<<<<<<<<<<
 *         self.info_parsers = tuple(info_parsers)
 * 
 */
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_info_parsers, ((PyObject *)__pyx_v_parser)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1823, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1767
 *         info_parsers = list()
 *         self.skip_parser = VCFInfoSkipParser(key=None)
 *         for key in self.info_keys:             # <<<<<<<<<<<<<<
 *             t = types[key]
 *             n = numbers[key]
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1824
 *                 warnings.warn('type %s not supported for INFO field %r, field will be skipped' % (t, key))
 *             info_parsers.append(parser)
 *         self.info_parsers = tuple(info_parsers)             # <<<<<<<<<<<<<<
 * 
 *         # store pointers to parsers for nogil trickery
 */
  __pyx_t_1 = PyList_AsTuple(__pyx_v_info_parsers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->info_parsers);
  __Pyx_DECREF(__pyx_v_self->info_parsers);
  __pyx_v_self->info_parsers = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1827
 * 
 *         # store pointers to parsers for nogil trickery
 *         self.info_parsers_cptr = <PyObject**> malloc(sizeof(PyObject*) * self.n_infos)             # <<<<<<<<<<<<<<
 *         for i in range(self.n_infos):
 *             self.info_parsers_cptr[i] = <PyObject*> self.info_parsers[i]
 */
  __pyx_v_self->info_parsers_cptr = ((PyObject **)malloc(((sizeof(PyObject *)) * __pyx_v_self->n_infos)));

  /* "variant_tools/io_vcf_read.pyx":1828
 *         # store pointers to parsers for nogil trickery
 *         self.info_parsers_cptr = <PyObject**> malloc(sizeof(PyObject*) * self.n_infos)
 *         for i in range(self.n_infos):             # <<<<<<<<<<<<<<
 *             self.info_parsers_cptr[i] = <PyObject*> self.info_parsers[i]
 * 
 */
  __pyx_t_4 = __pyx_v_self->n_infos;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":1829
 *         self.info_parsers_cptr = <PyObject**> malloc(sizeof(PyObject*) * self.n_infos)
 *         for i in range(self.n_infos):
 *             self.info_parsers_cptr[i] = <PyObject*> self.info_parsers[i]             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, info_keys, types, numbers, chunk_length, fills):
 */
    if (unlikely(__pyx_v_self->info_parsers == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 1829, __pyx_L1_error)
    }
    (__pyx_v_self->info_parsers_cptr[__pyx_v_i]) = ((PyObject *)PyTuple_GET_ITEM(__pyx_v_self->info_parsers, __pyx_v_i));
  }

  /* "variant_tools/io_vcf_read.pyx":1752
 *         object fills
 * 
 *     def __cinit__(self, info_keys, types, numbers, chunk_length, fills):             # <<<<<<<<<<<<<<
 * 
 *         # setup INFO keys
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_info_parsers);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF((PyObject *)__pyx_v_parser);
  __Pyx_XDECREF(__pyx_v_fill);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1831
 *             self.info_parsers_cptr[i] = <PyObject*> self.info_parsers[i]
 * 
 *     def __init__(self, info_keys, types, numbers, chunk_length, fills):             # <<<<<<<<<<<<<<
 *         super(VCFInfoParser, self).__init__(key=b'INFO', chunk_length=chunk_length)
 *         self.fills = fills
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_info_keys = 0;
  CYTHON_UNUSED PyObject *__pyx_v_types = 0;
  CYTHON_UNUSED PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_fills = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_info_keys,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_chunk_length,&__pyx_n_s_fills,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_info_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, 1); __PYX_ERR(0, 1831, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, 2); __PYX_ERR(0, 1831, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, 3); __PYX_ERR(0, 1831, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, 4); __PYX_ERR(0, 1831, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1831, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
    }
    __pyx_v_info_keys = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_chunk_length = values[3];
    __pyx_v_fills = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1831, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_2__init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self), __pyx_v_info_keys, __pyx_v_types, __pyx_v_numbers, __pyx_v_chunk_length, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_info_keys, CYTHON_UNUSED PyObject *__pyx_v_types, CYTHON_UNUSED PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_fills) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1832
 * 
 *     def __init__(self, info_keys, types, numbers, chunk_length, fills):
 *         super(VCFInfoParser, self).__init__(key=b'INFO', chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 *         self.fills = fills
 * 
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_INFO) < 0) __PYX_ERR(0, 1832, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 1832, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1833
 *     def __init__(self, info_keys, types, numbers, chunk_length, fills):
 *         super(VCFInfoParser, self).__init__(key=b'INFO', chunk_length=chunk_length)
 *         self.fills = fills             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __Pyx_INCREF(__pyx_v_fills);
  __Pyx_GIVEREF(__pyx_v_fills);
  __Pyx_GOTREF(__pyx_v_self->fills);
  __Pyx_DECREF(__pyx_v_self->fills);
  __pyx_v_self->fills = __pyx_v_fills;

  /* "variant_tools/io_vcf_read.pyx":1831
 *             self.info_parsers_cptr[i] = <PyObject*> self.info_parsers[i]
 * 
 *     def __init__(self, info_keys, types, numbers, chunk_length, fills):             # <<<<<<<<<<<<<<
 *         super(VCFInfoParser, self).__init__(key=b'INFO', chunk_length=chunk_length)
 *         self.fills = fills
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1835
 *         self.fills = fills
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.info_keys_cstr is not NULL:
 *             free(self.info_keys_cstr)
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_5__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_4__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":1836
 * 
 *     def __dealloc__(self):
 *         if self.info_keys_cstr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.info_keys_cstr)
 *         if self.info_parsers_cptr is not NULL:
 */
  __pyx_t_1 = ((__pyx_v_self->info_keys_cstr != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1837
 *     def __dealloc__(self):
 *         if self.info_keys_cstr is not NULL:
 *             free(self.info_keys_cstr)             # <<<<<<<<<<<<<<
 *         if self.info_parsers_cptr is not NULL:
 *             free(self.info_parsers_cptr)
 */
    free(__pyx_v_self->info_keys_cstr);

    /* "variant_tools/io_vcf_read.pyx":1836
 * 
 *     def __dealloc__(self):
 *         if self.info_keys_cstr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.info_keys_cstr)
 *         if self.info_parsers_cptr is not NULL:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1838
 *         if self.info_keys_cstr is not NULL:
 *             free(self.info_keys_cstr)
 *         if self.info_parsers_cptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.info_parsers_cptr)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->info_parsers_cptr != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1839
 *             free(self.info_keys_cstr)
 *         if self.info_parsers_cptr is not NULL:
 *             free(self.info_parsers_cptr)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
    free(__pyx_v_self->info_parsers_cptr);

    /* "variant_tools/io_vcf_read.pyx":1838
 *         if self.info_keys_cstr is not NULL:
 *             free(self.info_keys_cstr)
 *         if self.info_parsers_cptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.info_parsers_cptr)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1835
 *         self.fills = fills
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.info_keys_cstr is not NULL:
 *             free(self.info_keys_cstr)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "variant_tools/io_vcf_read.pyx":1841
 *             free(self.info_parsers_cptr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         # reset buffers
 */

static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1844
 * 
 *         # reset buffers
 *         CharVector_clear(&context.info_key)             # <<<<<<<<<<<<<<
 *         CharVector_clear(&context.info_val)
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_key));

  /* "variant_tools/io_vcf_read.pyx":1845
 *         # reset buffers
 *         CharVector_clear(&context.info_key)
 *         CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *         # check for missing value
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":1848
 * 
 *         # check for missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1850
 *         if stream.c == PERIOD:
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_parse_missing(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1850, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1851
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # check for empty value
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1848
 * 
 *         # check for missing value
 *         if stream.c == PERIOD:             # <<<<<<<<<<<<<<
 *             # treat leading period as missing, regardless of what comes next
 *             vcf_parse_missing(stream, context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1854
 * 
 *         # check for empty value
 *         if stream.c == TAB:             # <<<<<<<<<<<<<<
 *             # not strictly kosher, treat as missing/empty
 *             stream.advance()
 */
  __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1856
 *         if stream.c == TAB:
 *             # not strictly kosher, treat as missing/empty
 *             stream.advance()             # <<<<<<<<<<<<<<
 *             context.state += 1
 *             return 0
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1856, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1857
 *             # not strictly kosher, treat as missing/empty
 *             stream.advance()
 *             context.state += 1             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
    __pyx_v_context->state = (__pyx_v_context->state + 1);

    /* "variant_tools/io_vcf_read.pyx":1858
 *             stream.advance()
 *             context.state += 1
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":1854
 * 
 *         # check for empty value
 *         if stream.c == TAB:             # <<<<<<<<<<<<<<
 *             # not strictly kosher, treat as missing/empty
 *             stream.advance()
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1860
 *             return 0
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":1862
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1863
 * 
 *             if stream.c == 0:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      __pyx_t_1 = ((__pyx_v_context->info_key.size > 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1865
 *                 if context.info_key.size > 0:
 *                     # handle flag
 *                     self.parse_info(stream, context)             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_info(__pyx_v_self, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1865, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":1863
 * 
 *             if stream.c == 0:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1866
 *                     # handle flag
 *                     self.parse_info(stream, context)
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":1867
 *                     self.parse_info(stream, context)
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1862
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1869
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1870
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      __pyx_t_1 = ((__pyx_v_context->info_key.size > 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1872
 *                 if context.info_key.size > 0:
 *                     # handle flag
 *                     self.parse_info(stream, context)             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_info(__pyx_v_self, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1872, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":1870
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1873
 *                     # handle flag
 *                     self.parse_info(stream, context)
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":1874
 *                     self.parse_info(stream, context)
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1869
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1876
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1877
 * 
 *             elif stream.c == TAB:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      __pyx_t_1 = ((__pyx_v_context->info_key.size > 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1879
 *                 if context.info_key.size > 0:
 *                     # handle flag
 *                     self.parse_info(stream, context)             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond tab
 *                 stream.advance()
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_info(__pyx_v_self, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1879, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":1877
 * 
 *             elif stream.c == TAB:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1881
 *                     self.parse_info(stream, context)
 *                 # advance input stream beyond tab
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 context.state += 1
 *                 break
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1881, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1882
 *                 # advance input stream beyond tab
 *                 stream.advance()
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":1883
 *                 stream.advance()
 *                 context.state += 1
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == SEMICOLON:
 */
      goto __pyx_L6_break;

      /* "variant_tools/io_vcf_read.pyx":1876
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    }

    /* "variant_tools/io_vcf_read.pyx":1885
 *                 break
 * 
 *             elif stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1886
 * 
 *             elif stream.c == SEMICOLON:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      __pyx_t_1 = ((__pyx_v_context->info_key.size > 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1888
 *                 if context.info_key.size > 0:
 *                     # handle flag
 *                     self.parse_info(stream, context)             # <<<<<<<<<<<<<<
 *                 stream.advance()
 * 
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_info(__pyx_v_self, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1888, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":1886
 * 
 *             elif stream.c == SEMICOLON:
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     # handle flag
 *                     self.parse_info(stream, context)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":1889
 *                     # handle flag
 *                     self.parse_info(stream, context)
 *                 stream.advance()             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == EQUALS:
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1889, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1885
 *                 break
 * 
 *             elif stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     # handle flag
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1891
 *                 stream.advance()
 * 
 *             elif stream.c == EQUALS:             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond '='
 *                 stream.advance()
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_EQUALS) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":1893
 *             elif stream.c == EQUALS:
 *                 # advance input stream beyond '='
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 if context.info_key.size > 0:
 *                     self.parse_info(stream, context)
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1893, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":1894
 *                 # advance input stream beyond '='
 *                 stream.advance()
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     self.parse_info(stream, context)
 *                 else:
 */
      __pyx_t_1 = ((__pyx_v_context->info_key.size > 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":1895
 *                 stream.advance()
 *                 if context.info_key.size > 0:
 *                     self.parse_info(stream, context)             # <<<<<<<<<<<<<<
 *                 else:
 *                     # with gil:
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->parse_info(__pyx_v_self, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1895, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":1894
 *                 # advance input stream beyond '='
 *                 stream.advance()
 *                 if context.info_key.size > 0:             # <<<<<<<<<<<<<<
 *                     self.parse_info(stream, context)
 *                 else:
 */
        goto __pyx_L14;
      }

      /* "variant_tools/io_vcf_read.pyx":1898
 *                 else:
 *                     # with gil:
 *                     warn('missing INFO key', context)             # <<<<<<<<<<<<<<
 *                     self.skip_parser.parse(stream, context)
 * 
 */
      /*else*/ {
        __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_missing_INFO_key, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1898, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":1899
 *                     # with gil:
 *                     warn('missing INFO key', context)
 *                     self.skip_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
        __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_self->skip_parser->__pyx_vtab)->parse(__pyx_v_self->skip_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1899, __pyx_L1_error)
      }
      __pyx_L14:;

      /* "variant_tools/io_vcf_read.pyx":1891
 *                 stream.advance()
 * 
 *             elif stream.c == EQUALS:             # <<<<<<<<<<<<<<
 *                 # advance input stream beyond '='
 *                 stream.advance()
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":1903
 *             else:
 * 
 *                 CharVector_append(&context.info_key, stream.c)             # <<<<<<<<<<<<<<
 *                 stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_key), __pyx_v_stream->c);

      /* "variant_tools/io_vcf_read.pyx":1904
 * 
 *                 CharVector_append(&context.info_key, stream.c)
 *                 stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse_info(self,
 */
      __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1904, __pyx_L1_error)
    }
    __pyx_L7:;
  }
  __pyx_L6_break:;

  /* "variant_tools/io_vcf_read.pyx":1841
 *             free(self.info_parsers_cptr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         # reset buffers
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1906
 *                 stream.advance()
 * 
 *     cdef int parse_info(self,             # <<<<<<<<<<<<<<
 *                         InputStreamBase stream,
 *                         VCFContext context) except -1:  # nogil
 */

static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_parse_info(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_parser_index;
  PyObject *__pyx_v_parser;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("parse_info", 0);

  /* "variant_tools/io_vcf_read.pyx":1915
 * 
 *         # terminate key
 *         CharVector_terminate(&context.info_key)             # <<<<<<<<<<<<<<
 * 
 *         # search for index of current INFO key
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate((&__pyx_v_context->info_key));

  /* "variant_tools/io_vcf_read.pyx":1918
 * 
 *         # search for index of current INFO key
 *         parser_index = search_sorted_cstr(context.info_key.data, self.info_keys_cstr, self.n_infos)             # <<<<<<<<<<<<<<
 * 
 *         # clear out key for good measure
 */
  __pyx_v_parser_index = __pyx_f_13variant_tools_11io_vcf_read_search_sorted_cstr(__pyx_v_context->info_key.data, __pyx_v_self->info_keys_cstr, __pyx_v_self->n_infos);

  /* "variant_tools/io_vcf_read.pyx":1921
 * 
 *         # clear out key for good measure
 *         CharVector_clear(&context.info_key)             # <<<<<<<<<<<<<<
 * 
 *         if parser_index >= 0:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_key));

  /* "variant_tools/io_vcf_read.pyx":1923
 *         CharVector_clear(&context.info_key)
 * 
 *         if parser_index >= 0:             # <<<<<<<<<<<<<<
 *             # obtain parser, use trickery for nogil
 *             parser = self.info_parsers_cptr[parser_index]
 */
  __pyx_t_1 = ((__pyx_v_parser_index >= 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":1925
 *         if parser_index >= 0:
 *             # obtain parser, use trickery for nogil
 *             parser = self.info_parsers_cptr[parser_index]             # <<<<<<<<<<<<<<
 *             (<VCFInfoParserBase> parser).parse(stream, context)
 *         else:
 */
    __pyx_v_parser = (__pyx_v_self->info_parsers_cptr[__pyx_v_parser_index]);

    /* "variant_tools/io_vcf_read.pyx":1926
 *             # obtain parser, use trickery for nogil
 *             parser = self.info_parsers_cptr[parser_index]
 *             (<VCFInfoParserBase> parser).parse(stream, context)             # <<<<<<<<<<<<<<
 *         else:
 *             self.skip_parser.parse(stream, context)
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *)((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_parser)->__pyx_vtab)->parse(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_parser), __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1926, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1923
 *         CharVector_clear(&context.info_key)
 * 
 *         if parser_index >= 0:             # <<<<<<<<<<<<<<
 *             # obtain parser, use trickery for nogil
 *             parser = self.info_parsers_cptr[parser_index]
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":1928
 *             (<VCFInfoParserBase> parser).parse(stream, context)
 *         else:
 *             self.skip_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  /*else*/ {
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_self->skip_parser->__pyx_vtab)->parse(__pyx_v_self->skip_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1928, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":1906
 *                 stream.advance()
 * 
 *     cdef int parse_info(self,             # <<<<<<<<<<<<<<
 *                         InputStreamBase stream,
 *                         VCFContext context) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.parse_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1930
 *             self.skip_parser.parse(stream, context)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_parser = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1932
 *     cdef int malloc_chunk(self) except -1:
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:             # <<<<<<<<<<<<<<
 *             parser.malloc_chunk()
 * 
 */
  if (unlikely(__pyx_v_self->info_parsers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1932, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->info_parsers; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 1932, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase))))) __PYX_ERR(0, 1932, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":1933
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 *             parser.malloc_chunk()             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_parser->__pyx_vtab)->malloc_chunk(__pyx_v_parser); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1933, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1932
 *     cdef int malloc_chunk(self) except -1:
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:             # <<<<<<<<<<<<<<
 *             parser.malloc_chunk()
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1930
 *             self.skip_parser.parse(stream, context)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_parser);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1935
 *             parser.malloc_chunk()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_parser = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk __pyx_t_5;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1937
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:             # <<<<<<<<<<<<<<
 *             parser.make_chunk(chunk, limit=limit)
 * 
 */
  if (unlikely(__pyx_v_self->info_parsers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1937, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->info_parsers; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 1937, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase))))) __PYX_ERR(0, 1937, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":1938
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 *             parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_parser->__pyx_vtab)->make_chunk(__pyx_v_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1938, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":1937
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:             # <<<<<<<<<<<<<<
 *             parser.make_chunk(chunk, limit=limit)
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1935
 *             parser.malloc_chunk()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFInfoParserBase parser
 *         for parser in self.info_parsers:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_parser);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_6__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_8__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_13VCFInfoParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1952
 *         Py_ssize_t chunk_length
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0):             # <<<<<<<<<<<<<<
 *         self.key = key
 *         if dtype is not None:
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_number = 0;
  PyObject *__pyx_v_fill = 0;
  PyObject *__pyx_v_chunk_length = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_dtype,&__pyx_n_s_number,&__pyx_n_s_fill,&__pyx_n_s_chunk_length,0};
    PyObject* values[5] = {0,0,0,0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    values[2] = ((PyObject *)__pyx_int_1);
    values[3] = ((PyObject *)__pyx_int_0);
    values[4] = ((PyObject *)__pyx_int_0);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_number);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fill);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1952, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_key = values[0];
    __pyx_v_dtype = values[1];
    __pyx_v_number = values[2];
    __pyx_v_fill = values[3];
    __pyx_v_chunk_length = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1952, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParserBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_self), __pyx_v_key, __pyx_v_dtype, __pyx_v_number, __pyx_v_fill, __pyx_v_chunk_length);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_fill, PyObject *__pyx_v_chunk_length) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_dtype);

  /* "variant_tools/io_vcf_read.pyx":1953
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0):
 *         self.key = key             # <<<<<<<<<<<<<<
 *         if dtype is not None:
 *             dtype = np.dtype(dtype)
 */
  if (!(likely(PyBytes_CheckExact(__pyx_v_key))||((__pyx_v_key) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_key)->tp_name), 0))) __PYX_ERR(0, 1953, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_key;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->key);
  __Pyx_DECREF(__pyx_v_self->key);
  __pyx_v_self->key = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1954
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0):
 *         self.key = key
 *         if dtype is not None:             # <<<<<<<<<<<<<<
 *             dtype = np.dtype(dtype)
 *             self.dtype = dtype
 */
  __pyx_t_2 = (__pyx_v_dtype != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":1955
 *         self.key = key
 *         if dtype is not None:
 *             dtype = np.dtype(dtype)             # <<<<<<<<<<<<<<
 *             self.dtype = dtype
 *             self.itemsize = dtype.itemsize
 */
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_v_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_dtype, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":1956
 *         if dtype is not None:
 *             dtype = np.dtype(dtype)
 *             self.dtype = dtype             # <<<<<<<<<<<<<<
 *             self.itemsize = dtype.itemsize
 *         else:
 */
    if (!(likely(__Pyx_TypeTest(__pyx_v_dtype, __pyx_ptype_5numpy_dtype)))) __PYX_ERR(0, 1956, __pyx_L1_error)
    __pyx_t_1 = __pyx_v_dtype;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->dtype);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->dtype));
    __pyx_v_self->dtype = ((PyArray_Descr *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":1957
 *             dtype = np.dtype(dtype)
 *             self.dtype = dtype
 *             self.itemsize = dtype.itemsize             # <<<<<<<<<<<<<<
 *         else:
 *             self.dtype = dtype
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1957, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->itemsize = __pyx_t_4;

    /* "variant_tools/io_vcf_read.pyx":1954
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0):
 *         self.key = key
 *         if dtype is not None:             # <<<<<<<<<<<<<<
 *             dtype = np.dtype(dtype)
 *             self.dtype = dtype
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":1959
 *             self.itemsize = dtype.itemsize
 *         else:
 *             self.dtype = dtype             # <<<<<<<<<<<<<<
 *             self.itemsize = 0
 *         self.number = number
 */
  /*else*/ {
    if (!(likely(((__pyx_v_dtype) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtype, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(0, 1959, __pyx_L1_error)
    __pyx_t_1 = __pyx_v_dtype;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->dtype);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->dtype));
    __pyx_v_self->dtype = ((PyArray_Descr *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":1960
 *         else:
 *             self.dtype = dtype
 *             self.itemsize = 0             # <<<<<<<<<<<<<<
 *         self.number = number
 *         self.fill = fill
 */
    __pyx_v_self->itemsize = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":1961
 *             self.dtype = dtype
 *             self.itemsize = 0
 *         self.number = number             # <<<<<<<<<<<<<<
 *         self.fill = fill
 *         self.chunk_length = chunk_length
 */
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_number); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1961, __pyx_L1_error)
  __pyx_v_self->number = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1962
 *             self.itemsize = 0
 *         self.number = number
 *         self.fill = fill             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 * 
 */
  __Pyx_INCREF(__pyx_v_fill);
  __Pyx_GIVEREF(__pyx_v_fill);
  __Pyx_GOTREF(__pyx_v_self->fill);
  __Pyx_DECREF(__pyx_v_self->fill);
  __pyx_v_self->fill = __pyx_v_fill;

  /* "variant_tools/io_vcf_read.pyx":1963
 *         self.number = number
 *         self.fill = fill
 *         self.chunk_length = chunk_length             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_chunk_length); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1963, __pyx_L1_error)
  __pyx_v_self->chunk_length = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":1952
 *         Py_ssize_t chunk_length
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0):             # <<<<<<<<<<<<<<
 *         self.key = key
 *         if dtype is not None:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParserBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_dtype);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1965
 *         self.chunk_length = chunk_length
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("parse", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1968
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'variants/' + self.key
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":1969
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'variants/' + self.key
 *         else:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1969, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":1970
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:
 *             field = 'variants/' + self.key             # <<<<<<<<<<<<<<
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_v_self->key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":1969
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'variants/' + self.key
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":1972
 *             field = 'variants/' + self.key
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *         values = self.values[:limit]
 *         if self.number == 1:
 */
  /*else*/ {
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_self->key);
    __Pyx_GIVEREF(__pyx_v_self->key);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->key);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":1973
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')
 *         values = self.values[:limit]             # <<<<<<<<<<<<<<
 *         if self.number == 1:
 *             values = values.squeeze(axis=1)
 */
  __pyx_t_1 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_values = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1974
 *             field = 'variants/' + str(self.key, 'ascii')
 *         values = self.values[:limit]
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=1)
 *         chunk[field] = values
 */
  __pyx_t_2 = ((__pyx_v_self->number == 1) != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":1975
 *         values = self.values[:limit]
 *         if self.number == 1:
 *             values = values.squeeze(axis=1)             # <<<<<<<<<<<<<<
 *         chunk[field] = values
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 1975, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":1974
 *             field = 'variants/' + str(self.key, 'ascii')
 *         values = self.values[:limit]
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=1)
 *         chunk[field] = values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":1976
 *         if self.number == 1:
 *             values = values.squeeze(axis=1)
 *         chunk[field] = values             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_v_values) < 0)) __PYX_ERR(0, 1976, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1968
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'variants/' + self.key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParserBase.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1978
 *         chunk[field] = values
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->dtype));
  __Pyx_INCREF(__pyx_v_self->fill);
  __Pyx_GIVEREF(__pyx_v_self->fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->key);
  __Pyx_GIVEREF(__pyx_v_self->key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoParserBase); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoParserBase__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFInfoParserBase); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParserBase.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoParserBase__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoParserBase_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoParserBase__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoParserBase__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoParserBase, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoParserBase__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoParserBase.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1986
 *     cdef np.int8_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":1987
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int8) < 0)) __PYX_ERR(0, 1987, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1988
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFInfoInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1989
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":1986
 *     cdef np.int8_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1991
 *         super(VCFInfoInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":1992
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1992, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":1991
 *         super(VCFInfoInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":1994
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":1995
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":1996
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 1996, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":1997
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1997, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":1998
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1998, __pyx_L1_error)
  {
      __pyx_t_5numpy_int8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_int8_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":1994
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoInt8Parser); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoInt8Parser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt8Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2005
 *     cdef np.int16_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2006
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int16) < 0)) __PYX_ERR(0, 2006, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2007
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFInfoInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2008
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2005
 *     cdef np.int16_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2010
 *         super(VCFInfoInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2011
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2011, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2010
 *         super(VCFInfoInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2013
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int16_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2014
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2015
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2015, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2016
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2016, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2017
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int16(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2017, __pyx_L1_error)
  {
      __pyx_t_5numpy_int16_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_int16_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2013
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoInt16Parse); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoInt16Parse); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt16Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2024
 *     cdef np.int32_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2025
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int32) < 0)) __PYX_ERR(0, 2025, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2026
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFInfoInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2027
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2024
 *     cdef np.int32_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2029
 *         super(VCFInfoInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2030
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2030, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2029
 *         super(VCFInfoInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2032
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2033
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2034
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2034, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2035
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2035, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2036
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int32(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2036, __pyx_L1_error)
  {
      __pyx_t_5numpy_int32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_int32_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2032
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoInt32Parse); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoInt32Parse); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2043
 *     cdef np.int64_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2044
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int64) < 0)) __PYX_ERR(0, 2044, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2045
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFInfoInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2046
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFInfoInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2043
 *     cdef np.int64_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2048
 *         super(VCFInfoInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2049
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2049, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2048
 *         super(VCFInfoInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2051
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2052
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2053
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2053, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2053, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2054
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2054, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2055
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int64(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2055, __pyx_L1_error)
  {
      __pyx_t_5numpy_int64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_int64_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2051
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoInt64Parse); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoInt64Parse); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoInt64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2062
 *     cdef np.uint8_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2063
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU8.max)
 *         super(VCFInfoUInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint8) < 0)) __PYX_ERR(0, 2063, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2064
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)             # <<<<<<<<<<<<<<
 *         super(VCFInfoUInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2065
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 *         super(VCFInfoUInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2062
 *     cdef np.uint8_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2067
 *         super(VCFInfoUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2068
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2068, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2067
 *         super(VCFInfoUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2070
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2071
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2072
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2072, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2073
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2074
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2074, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_uint8_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2070
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoUInt8Parse); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoUInt8Parse); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt8Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2081
 *     cdef np.uint16_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2082
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU16.max)
 *         super(VCFInfoUInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint16) < 0)) __PYX_ERR(0, 2082, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2083
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)             # <<<<<<<<<<<<<<
 *         super(VCFInfoUInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2084
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 *         super(VCFInfoUInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2081
 *     cdef np.uint16_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2086
 *         super(VCFInfoUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2087
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2087, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2086
 *         super(VCFInfoUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2089
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint16_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2090
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2091
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2091, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2092
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2092, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2093
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint16(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2093, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint16_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_uint16_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2089
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoUInt16Pars); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoUInt16Pars); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt16Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2100
 *     cdef np.uint32_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2101
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU32.max)
 *         super(VCFInfoUInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint32) < 0)) __PYX_ERR(0, 2101, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2102
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)             # <<<<<<<<<<<<<<
 *         super(VCFInfoUInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU32); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2103
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 *         super(VCFInfoUInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2100
 *     cdef np.uint32_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2105
 *         super(VCFInfoUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2106
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2106, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2105
 *         super(VCFInfoUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2108
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2109
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2110
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2110, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2111
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2111, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2112
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint32(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2112, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_uint32_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2108
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoUInt32Pars); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoUInt32Pars); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2119
 *     cdef np.uint64_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2120
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU64.max)
 *         super(VCFInfoUInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint64) < 0)) __PYX_ERR(0, 2120, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2121
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)             # <<<<<<<<<<<<<<
 *         super(VCFInfoUInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2122
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 *         super(VCFInfoUInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2119
 *     cdef np.uint64_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2124
 *         super(VCFInfoUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2125
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2125, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2124
 *         super(VCFInfoUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2127
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2128
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2129
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2129, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2129, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2130
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2130, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2131
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint64(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2131, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_uint64_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2127
 *         vcf_info_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoUInt64Pars); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoUInt64Pars); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoUInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoUInt64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoUInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoUInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2138
 *     cdef np.float32_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2139
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFInfoFloat32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_float32) < 0)) __PYX_ERR(0, 2139, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2140
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)             # <<<<<<<<<<<<<<
 *         super(VCFInfoFloat32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2141
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFInfoFloat32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2138
 *     cdef np.float32_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2143
 *         super(VCFInfoFloat32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2144
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_floating(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_floating(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2144, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2143
 *         super(VCFInfoFloat32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2146
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_float32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2147
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2148
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2148, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2149
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2149, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2150
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __pyx_PyFloat_AsFloat(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_float32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2150, __pyx_L1_error)
  {
      __pyx_t_5numpy_float32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_float32_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2146
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_float32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_float32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoFloat32Par); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoFloat32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoFloat32Par); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoFloat32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoFloat32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat32Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoFloat32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2157
 *     cdef np.float64_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2158
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFInfoFloat64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_float64) < 0)) __PYX_ERR(0, 2158, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2159
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)             # <<<<<<<<<<<<<<
 *         super(VCFInfoFloat64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2160
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFInfoFloat64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2157
 *     cdef np.float64_t[:, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2162
 *         super(VCFInfoFloat64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2163
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_info_parse_floating(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_floating(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2163, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2162
 *         super(VCFInfoFloat64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2165
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_float64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2166
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2167
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2167, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2168
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2168, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2169
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __pyx_PyFloat_AsDouble(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_float64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2169, __pyx_L1_error)
  {
      __pyx_t_5numpy_float64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              *((__pyx_t_5numpy_float64_t *) __pyx_temp_pointer_1) = __pyx_temp_scalar;
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2165
 *         vcf_info_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 2, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_float64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_float64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoFloat64Par); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoFloat64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoFloat64Par); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoFloat64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoFloat64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoFloat64Parser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoFloat64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFloat64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2176
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         super(VCFInfoFlagParser, self).__init__(*args, **kwargs)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2177
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'             # <<<<<<<<<<<<<<
 *         super(VCFInfoFlagParser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint8) < 0)) __PYX_ERR(0, 2177, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2178
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'
 *         super(VCFInfoFlagParser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2176
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         super(VCFInfoFlagParser, self).__init__(*args, **kwargs)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFlagParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2180
 *         super(VCFInfoFlagParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         # nothing to parse
 *         self.memory[context.chunk_variant_index] = 1
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2182
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         # nothing to parse
 *         self.memory[context.chunk_variant_index] = 1             # <<<<<<<<<<<<<<
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \
 */
  __pyx_t_1 = __pyx_v_context->chunk_variant_index;
  *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_1 * __pyx_v_self->memory.strides[0]) )) = 1;

  /* "variant_tools/io_vcf_read.pyx":2184
 *         self.memory[context.chunk_variant_index] = 1
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \             # <<<<<<<<<<<<<<
 *                 stream.c != TAB and \
 *                 stream.c != LF and \
 */
  while (1) {
    __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_2 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2185
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \
 *                 stream.c != TAB and \             # <<<<<<<<<<<<<<
 *                 stream.c != LF and \
 *                 stream.c != CR and \
 */
    __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_2 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2186
 *         while stream.c != SEMICOLON and \
 *                 stream.c != TAB and \
 *                 stream.c != LF and \             # <<<<<<<<<<<<<<
 *                 stream.c != CR and \
 *                 stream.c != 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_2 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2187
 *                 stream.c != TAB and \
 *                 stream.c != LF and \
 *                 stream.c != CR and \             # <<<<<<<<<<<<<<
 *                 stream.c != 0:
 *             stream.advance()
 */
    __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_2 = __pyx_t_3;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2188
 *                 stream.c != LF and \
 *                 stream.c != CR and \
 *                 stream.c != 0:             # <<<<<<<<<<<<<<
 *             stream.advance()
 * 
 */
    __pyx_t_3 = ((__pyx_v_stream->c != 0) != 0);
    __pyx_t_2 = __pyx_t_3;
    __pyx_L5_bool_binop_done:;
    if (!__pyx_t_2) break;

    /* "variant_tools/io_vcf_read.pyx":2189
 *                 stream.c != CR and \
 *                 stream.c != 0:
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2189, __pyx_L1_error)
  }

  /* "variant_tools/io_vcf_read.pyx":2180
 *         super(VCFInfoFlagParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         # nothing to parse
 *         self.memory[context.chunk_variant_index] = 1
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFlagParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2191
 *             stream.advance()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         # override to view as bool array
 *         if PY2:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":2193
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         # override to view as bool array
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'variants/' + self.key
 *         else:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":2194
 *         # override to view as bool array
 *         if PY2:
 *             field = 'variants/' + self.key             # <<<<<<<<<<<<<<
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_v_self->__pyx_base.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":2193
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         # override to view as bool array
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'variants/' + self.key
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":2196
 *             field = 'variants/' + self.key
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *         chunk[field] = self.values[:limit].view(bool)
 * 
 */
  /*else*/ {
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
    __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->__pyx_base.key);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":2197
 *         else:
 *             field = 'variants/' + str(self.key, 'ascii')
 *         chunk[field] = self.values[:limit].view(bool)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_3 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->__pyx_base.values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_view); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, ((PyObject*)&PyBool_Type)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject*)&PyBool_Type));
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_t_1) < 0)) __PYX_ERR(0, 2197, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2191
 *             stream.advance()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         # override to view as bool array
 *         if PY2:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFlagParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2199
 *         chunk[field] = self.values[:limit].view(bool)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2200
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2200, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2201
 *     cdef int malloc_chunk(self) except -1:
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2201, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2202
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2202, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            *((__pyx_t_5numpy_uint8_t *) __pyx_temp_pointer_0) = __pyx_temp_scalar;
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2199
 *         chunk[field] = self.values[:limit].view(bool)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         self.values = np.empty(self.chunk_length, dtype=self.dtype)
 *         self.memory = self.values
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFlagParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoFlagParser); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoFlagParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoFlagParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFlagParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoFlagParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoFlagParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFlagParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoFlagParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoFlagParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoFlagParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2209
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))
 *         super(VCFInfoStringParser, self).__init__(*args, **kwargs)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2210
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))             # <<<<<<<<<<<<<<
 *         super(VCFInfoStringParser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kwargs, __pyx_n_s_dtype, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_t_1) < 0)) __PYX_ERR(0, 2210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2211
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))
 *         super(VCFInfoStringParser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2209
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))
 *         super(VCFInfoStringParser, self).__init__(*args, **kwargs)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2213
 *         super(VCFInfoStringParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t value_index = 0
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_value_index;
  Py_ssize_t __pyx_v_memory_offset;
  Py_ssize_t __pyx_v_memory_index;
  Py_ssize_t __pyx_v_chars_stored;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  char __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2215
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         cdef:
 *             Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *             # index into memory view
 *             Py_ssize_t memory_offset, memory_index
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2219
 *             Py_ssize_t memory_offset, memory_index
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *         # initialise memory index
 */
  __pyx_v_chars_stored = 0;

  /* "variant_tools/io_vcf_read.pyx":2222
 * 
 *         # initialise memory index
 *         memory_offset = context.chunk_variant_index * self.itemsize * self.number             # <<<<<<<<<<<<<<
 *         memory_index = memory_offset
 * 
 */
  __pyx_v_memory_offset = ((__pyx_v_context->chunk_variant_index * __pyx_v_self->__pyx_base.itemsize) * __pyx_v_self->__pyx_base.number);

  /* "variant_tools/io_vcf_read.pyx":2223
 *         # initialise memory index
 *         memory_offset = context.chunk_variant_index * self.itemsize * self.number
 *         memory_index = memory_offset             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_v_memory_index = __pyx_v_memory_offset;

  /* "variant_tools/io_vcf_read.pyx":2225
 *         memory_index = memory_offset
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2227
 *         while True:
 * 
 *             if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2228
 * 
 *             if stream.c == 0 or \
 *                     stream.c == LF or \             # <<<<<<<<<<<<<<
 *                     stream.c == CR or \
 *                     stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2229
 *             if stream.c == 0 or \
 *                     stream.c == LF or \
 *                     stream.c == CR or \             # <<<<<<<<<<<<<<
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2230
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 *                     stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == SEMICOLON:
 *                 break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2231
 *                     stream.c == CR or \
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2227
 *         while True:
 * 
 *             if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2232
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2227
 *         while True:
 * 
 *             if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2234
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 value_index += 1
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2236
 *             elif stream.c == COMMA:
 *                 # advance value index
 *                 value_index += 1             # <<<<<<<<<<<<<<
 *                 # set memory index to beginning of next item
 *                 memory_index = memory_offset + (value_index * self.itemsize)
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2238
 *                 value_index += 1
 *                 # set memory index to beginning of next item
 *                 memory_index = memory_offset + (value_index * self.itemsize)             # <<<<<<<<<<<<<<
 *                 # reset chars stored
 *                 chars_stored = 0
 */
      __pyx_v_memory_index = (__pyx_v_memory_offset + (__pyx_v_value_index * __pyx_v_self->__pyx_base.itemsize));

      /* "variant_tools/io_vcf_read.pyx":2240
 *                 memory_index = memory_offset + (value_index * self.itemsize)
 *                 # reset chars stored
 *                 chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *             elif chars_stored < self.itemsize and value_index < self.number:
 */
      __pyx_v_chars_stored = 0;

      /* "variant_tools/io_vcf_read.pyx":2234
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 value_index += 1
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2242
 *                 chars_stored = 0
 * 
 *             elif chars_stored < self.itemsize and value_index < self.number:             # <<<<<<<<<<<<<<
 *                 # store value
 *                 self.memory[memory_index] = stream.c
 */
    __pyx_t_2 = ((__pyx_v_chars_stored < __pyx_v_self->__pyx_base.itemsize) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L11_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L11_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2244
 *             elif chars_stored < self.itemsize and value_index < self.number:
 *                 # store value
 *                 self.memory[memory_index] = stream.c             # <<<<<<<<<<<<<<
 *                 # advance memory index
 *                 memory_index += 1
 */
      __pyx_t_3 = __pyx_v_stream->c;
      __pyx_t_4 = __pyx_v_memory_index;
      *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_4 * __pyx_v_self->memory.strides[0]) )) = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":2246
 *                 self.memory[memory_index] = stream.c
 *                 # advance memory index
 *                 memory_index += 1             # <<<<<<<<<<<<<<
 *                 # advance number of characters stored
 *                 chars_stored += 1
 */
      __pyx_v_memory_index = (__pyx_v_memory_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2248
 *                 memory_index += 1
 *                 # advance number of characters stored
 *                 chars_stored += 1             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
      __pyx_v_chars_stored = (__pyx_v_chars_stored + 1);

      /* "variant_tools/io_vcf_read.pyx":2242
 *                 chars_stored = 0
 * 
 *             elif chars_stored < self.itemsize and value_index < self.number:             # <<<<<<<<<<<<<<
 *                 # store value
 *                 self.memory[memory_index] = stream.c
 */
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2251
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_5 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2251, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2213
 *         super(VCFInfoStringParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t value_index = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoStringParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2253
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2254
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.zeros(shape, dtype=self.dtype)
 *         self.memory = self.values.reshape(-1).view('u1')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2255
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values.reshape(-1).view('u1')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2255, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2256
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)
 *         self.memory = self.values.reshape(-1).view('u1')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_reshape); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_neg_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_neg_1);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_view); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_4 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_1, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_s_u1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2253
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoStringParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFInfoStringPars); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoStringParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoStringPars); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_3357624);
    __Pyx_GIVEREF(__pyx_int_3357624);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_3357624);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoStringParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoStringParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoStringParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoStringParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoStringParser, (type(self), 0x0333bb8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoStringParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoStringParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2261
 * cdef class VCFInfoObjectParser(VCFInfoParserBase):
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = np.dtype('object')
 *         super(VCFInfoObjectParser, self).__init__(*args, **kwargs)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2262
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = np.dtype('object')             # <<<<<<<<<<<<<<
 *         super(VCFInfoObjectParser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_t_1) < 0)) __PYX_ERR(0, 2262, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2263
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = np.dtype('object')
 *         super(VCFInfoObjectParser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2261
 * cdef class VCFInfoObjectParser(VCFInfoParserBase):
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = np.dtype('object')
 *         super(VCFInfoObjectParser, self).__init__(*args, **kwargs)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2265
 *         super(VCFInfoObjectParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t value_index = 0
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_value_index;
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2267
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         cdef:
 *             Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *         CharVector_clear(&context.info_val)
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2269
 *             Py_ssize_t value_index = 0
 * 
 *         CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2271
 *         CharVector_clear(&context.info_val)
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2273
 *         while True:
 * 
 *             if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2274
 * 
 *             if stream.c == 0 or \
 *                     stream.c == LF or \             # <<<<<<<<<<<<<<
 *                     stream.c == CR or \
 *                     stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2275
 *             if stream.c == 0 or \
 *                     stream.c == LF or \
 *                     stream.c == CR or \             # <<<<<<<<<<<<<<
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2276
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 *                     stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == SEMICOLON:
 *                 if value_index < self.number and context.info_val.size > 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2277
 *                     stream.c == CR or \
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *                 if value_index < self.number and context.info_val.size > 0:
 *                     # with gil:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2273
 *         while True:
 * 
 *             if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2278
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:
 *                 if value_index < self.number and context.info_val.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)
 */
      __pyx_t_2 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L12_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_context->info_val.size > 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L12_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":2280
 *                 if value_index < self.number and context.info_val.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, value_index] = v
 *                 break
 */
        __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->info_val)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2280, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2281
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)
 *                     self.values[context.chunk_variant_index, value_index] = v             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
        __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_value_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_3);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_4);
        PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4);
        __pyx_t_3 = 0;
        __pyx_t_4 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_5, __pyx_v_v) < 0)) __PYX_ERR(0, 2281, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2278
 *                     stream.c == TAB or \
 *                     stream.c == SEMICOLON:
 *                 if value_index < self.number and context.info_val.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":2282
 *                     v = CharVector_to_pystr(&context.info_val)
 *                     self.values[context.chunk_variant_index, value_index] = v
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2273
 *         while True:
 * 
 *             if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2284
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 if value_index < self.number and context.info_val.size > 0:
 *                     # with gil:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2285
 * 
 *             elif stream.c == COMMA:
 *                 if value_index < self.number and context.info_val.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)
 */
      __pyx_t_2 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L15_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_context->info_val.size > 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L15_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":2287
 *                 if value_index < self.number and context.info_val.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, value_index] = v
 *                     CharVector_clear(&context.info_val)
 */
        __pyx_t_5 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->info_val)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_5);
        __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2288
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)
 *                     self.values[context.chunk_variant_index, value_index] = v             # <<<<<<<<<<<<<<
 *                     CharVector_clear(&context.info_val)
 *                 # advance value index
 */
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2288, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_value_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2288, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2288, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_4);
        PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
        __pyx_t_5 = 0;
        __pyx_t_4 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_3, __pyx_v_v) < 0)) __PYX_ERR(0, 2288, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2289
 *                     v = CharVector_to_pystr(&context.info_val)
 *                     self.values[context.chunk_variant_index, value_index] = v
 *                     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 value_index += 1
 */
        __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

        /* "variant_tools/io_vcf_read.pyx":2285
 * 
 *             elif stream.c == COMMA:
 *                 if value_index < self.number and context.info_val.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.info_val)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":2291
 *                     CharVector_clear(&context.info_val)
 *                 # advance value index
 *                 value_index += 1             # <<<<<<<<<<<<<<
 * 
 *             elif value_index < self.number:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2284
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 if value_index < self.number and context.info_val.size > 0:
 *                     # with gil:
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2293
 *                 value_index += 1
 * 
 *             elif value_index < self.number:             # <<<<<<<<<<<<<<
 *                 CharVector_append(&context.info_val, stream.c)
 * 
 */
    __pyx_t_1 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2294
 * 
 *             elif value_index < self.number:
 *                 CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);

      /* "variant_tools/io_vcf_read.pyx":2293
 *                 value_index += 1
 * 
 *             elif value_index < self.number:             # <<<<<<<<<<<<<<
 *                 CharVector_append(&context.info_val, stream.c)
 * 
 */
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2297
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_6 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 2297, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2265
 *         super(VCFInfoObjectParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t value_index = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoObjectParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2299
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2300
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.values.fill('')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_shape = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2301
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.values.fill('')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2301, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2302
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.values.fill('')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_fill); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_s__6);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2299
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoObjectParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoObjectPars); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoObjectParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFInfoObjectPars); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoObjectParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoObjectParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoObjectParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoObjectParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoObjectParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoObjectParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoObjectParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2307
 * cdef class VCFInfoSkipParser(VCFInfoParserBase):
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         super(VCFInfoSkipParser, self).__init__(*args, **kwargs)
 * 
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  if (unlikely(__pyx_kwds)) {
    __pyx_v_kwargs = PyDict_Copy(__pyx_kwds); if (unlikely(!__pyx_v_kwargs)) return -1;
    __Pyx_GOTREF(__pyx_v_kwargs);
  } else {
    __pyx_v_kwargs = NULL;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2308
 * 
 *     def __init__(self, *args, **kwargs):
 *         super(VCFInfoSkipParser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2307
 * cdef class VCFInfoSkipParser(VCFInfoParserBase):
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         super(VCFInfoSkipParser, self).__init__(*args, **kwargs)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoSkipParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2310
 *         super(VCFInfoSkipParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2312
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \             # <<<<<<<<<<<<<<
 *                 stream.c != TAB and \
 *                 stream.c != LF and \
 */
  while (1) {
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2313
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \
 *                 stream.c != TAB and \             # <<<<<<<<<<<<<<
 *                 stream.c != LF and \
 *                 stream.c != CR and \
 */
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2314
 *         while stream.c != SEMICOLON and \
 *                 stream.c != TAB and \
 *                 stream.c != LF and \             # <<<<<<<<<<<<<<
 *                 stream.c != CR and \
 *                 stream.c != 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2315
 *                 stream.c != TAB and \
 *                 stream.c != LF and \
 *                 stream.c != CR and \             # <<<<<<<<<<<<<<
 *                 stream.c != 0:
 *             stream.advance()
 */
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2316
 *                 stream.c != LF and \
 *                 stream.c != CR and \
 *                 stream.c != 0:             # <<<<<<<<<<<<<<
 *             stream.advance()
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c != 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (!__pyx_t_1) break;

    /* "variant_tools/io_vcf_read.pyx":2317
 *                 stream.c != CR and \
 *                 stream.c != 0:
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2317, __pyx_L1_error)
  }

  /* "variant_tools/io_vcf_read.pyx":2310
 *         super(VCFInfoSkipParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         # ensure we advance the end of the field
 *         while stream.c != SEMICOLON and \
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoSkipParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2319
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2322
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk *__pyx_optional_args) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
  }

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFInfoSkipParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoSkipParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFInfoSkipParser); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoSkipParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoSkipParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFInfoSkipParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoSkipParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFInfoSkipParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFInfoSkipParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFInfoSkipParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_info_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2330
 *                                 integer[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2333
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2335
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2338
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2339
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2340
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2341
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2342
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2342, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2343
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2337
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2346
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2346, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2347
 *         elif stream.c == COMMA:
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2348
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2345
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2351
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2353
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2353, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2326
 * 
 * 
 * cdef int vcf_info_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                 VCFContext context,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int8_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int16_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int64_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint8_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint16_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_info_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2365
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as integer
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2363
 *         long value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2368
 * 
 *     # parse string as integer
 *     parsed = vcf_strtol(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2368, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2372
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint64_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2370
 *     parsed = vcf_strtol(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2356
 * 
 * 
 * cdef int vcf_info_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                 Py_ssize_t value_index,
 *                                 integer[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2375
 * 
 * 
 * cdef int vcf_info_parse_floating(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                  VCFContext context,
 *                                  floating[:, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_info_parse_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":2379
 *                                  floating[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2382
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2384
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2386
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2387
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2388
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2389
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_floating(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2390
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_floating(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2386
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2391
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2391, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2392
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_floating(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2386
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2394
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2395
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2395, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2396
 *         elif stream.c == COMMA:
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2397
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2394
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2400
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2402
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2402, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2375
 * 
 * 
 * cdef int vcf_info_parse_floating(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                  VCFContext context,
 *                                  floating[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_info_parse_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":2379
 *                                  floating[:, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2382
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

  /* "variant_tools/io_vcf_read.pyx":2384
 *     CharVector_clear(&context.info_val)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == 0 or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2386
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2387
 * 
 *         if stream.c == 0 or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2388
 *         if stream.c == 0 or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2389
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_floating(context, value_index, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2390
 *                 stream.c == CR or \
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:             # <<<<<<<<<<<<<<
 *             vcf_info_store_floating(context, value_index, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":2386
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2391
 *                 stream.c == TAB or \
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2391, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2392
 *                 stream.c == SEMICOLON:
 *             vcf_info_store_floating(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2386
 *     while True:
 * 
 *         if stream.c == 0 or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2394
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2395
 * 
 *         elif stream.c == COMMA:
 *             vcf_info_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.info_val)
 *             value_index += 1
 */
      __pyx_t_3 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2395, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2396
 *         elif stream.c == COMMA:
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->info_val));

      /* "variant_tools/io_vcf_read.pyx":2397
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2394
 *             break
 * 
 *         elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_info_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.info_val)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2400
 * 
 *         else:
 *             CharVector_append(&context.info_val, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->info_val), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2402
 *             CharVector_append(&context.info_val, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2402, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2375
 * 
 * 
 * cdef int vcf_info_parse_floating(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                  VCFContext context,
 *                                  floating[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_parse_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2405
 * 
 * 
 * cdef int vcf_info_store_floating(VCFContext context,             # <<<<<<<<<<<<<<
 *                                  Py_ssize_t value_index,
 *                                  floating[:, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  double __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_info_store_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":2412
 *         double value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2414
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as floating
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2412
 *         double value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2417
 * 
 *     # parse string as floating
 *     parsed = vcf_strtod(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2417, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2419
 *     parsed = vcf_strtod(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2421
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_float32_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2419
 *     parsed = vcf_strtod(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2405
 * 
 * 
 * cdef int vcf_info_store_floating(VCFContext context,             # <<<<<<<<<<<<<<
 *                                  Py_ssize_t value_index,
 *                                  floating[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_info_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  double __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_info_store_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":2412
 *         double value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[1])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2414
 *     if value_index >= memory.shape[1]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # parse string as floating
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2412
 *         double value
 * 
 *     if value_index >= memory.shape[1]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2417
 * 
 *     # parse string as floating
 *     parsed = vcf_strtod(&context.info_val, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     if parsed > 0:
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod((&__pyx_v_context->info_val), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2417, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":2419
 *     parsed = vcf_strtod(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2421
 *     if parsed > 0:
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_value_index;
    *((__pyx_t_5numpy_float64_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":2419
 *     parsed = vcf_strtod(&context.info_val, context, &value)
 * 
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         # store value
 *         memory[context.chunk_variant_index, value_index] = value
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2405
 * 
 * 
 * cdef int vcf_info_store_floating(VCFContext context,             # <<<<<<<<<<<<<<
 *                                  Py_ssize_t value_index,
 *                                  floating[:, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_info_store_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2435
 *         char** format_keys_cstr
 * 
 *     def __cinit__(self, format_keys):             # <<<<<<<<<<<<<<
 * 
 *         # setup FORMAT keys
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_format_keys = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_format_keys,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2435, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_format_keys = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2435, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser___cinit__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self), __pyx_v_format_keys);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, PyObject *__pyx_v_format_keys) {
  Py_ssize_t __pyx_v_i;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  char *__pyx_t_7;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "variant_tools/io_vcf_read.pyx":2439
 *         # setup FORMAT keys
 *         # N.B., need to keep a reference to these, otherwise C strings will not behave
 *         self.format_keys = tuple(sorted(format_keys))             # <<<<<<<<<<<<<<
 *         self.n_formats = len(self.format_keys)
 * 
 */
  __pyx_t_2 = PySequence_List(__pyx_v_format_keys); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_3 = PyList_Sort(__pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2439, __pyx_L1_error)
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 2439, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_AsTuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->format_keys);
  __Pyx_DECREF(__pyx_v_self->format_keys);
  __pyx_v_self->format_keys = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2440
 *         # N.B., need to keep a reference to these, otherwise C strings will not behave
 *         self.format_keys = tuple(sorted(format_keys))
 *         self.n_formats = len(self.format_keys)             # <<<<<<<<<<<<<<
 * 
 *         # setup FORMAT keys as C strings for nogil searching
 */
  __pyx_t_2 = __pyx_v_self->format_keys;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 2440, __pyx_L1_error)
  }
  __pyx_t_4 = PyTuple_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2440, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->n_formats = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":2443
 * 
 *         # setup FORMAT keys as C strings for nogil searching
 *         self.format_keys_cstr = <char**> malloc(sizeof(char*) * self.n_formats)             # <<<<<<<<<<<<<<
 *         for i in range(self.n_formats):
 *             self.format_keys_cstr[i] = <char*> self.format_keys[i]
 */
  __pyx_v_self->format_keys_cstr = ((char **)malloc(((sizeof(char *)) * __pyx_v_self->n_formats)));

  /* "variant_tools/io_vcf_read.pyx":2444
 *         # setup FORMAT keys as C strings for nogil searching
 *         self.format_keys_cstr = <char**> malloc(sizeof(char*) * self.n_formats)
 *         for i in range(self.n_formats):             # <<<<<<<<<<<<<<
 *             self.format_keys_cstr[i] = <char*> self.format_keys[i]
 * 
 */
  __pyx_t_4 = __pyx_v_self->n_formats;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "variant_tools/io_vcf_read.pyx":2445
 *         self.format_keys_cstr = <char**> malloc(sizeof(char*) * self.n_formats)
 *         for i in range(self.n_formats):
 *             self.format_keys_cstr[i] = <char*> self.format_keys[i]             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, format_keys):
 */
    if (unlikely(__pyx_v_self->format_keys == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 2445, __pyx_L1_error)
    }
    __pyx_t_7 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v_self->format_keys, __pyx_v_i)); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 2445, __pyx_L1_error)
    (__pyx_v_self->format_keys_cstr[__pyx_v_i]) = ((char *)__pyx_t_7);
  }

  /* "variant_tools/io_vcf_read.pyx":2435
 *         char** format_keys_cstr
 * 
 *     def __cinit__(self, format_keys):             # <<<<<<<<<<<<<<
 * 
 *         # setup FORMAT keys
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2447
 *             self.format_keys_cstr[i] = <char*> self.format_keys[i]
 * 
 *     def __init__(self, format_keys):             # <<<<<<<<<<<<<<
 *         super(VCFFormatParser, self).__init__(key=b'FORMAT')
 * 
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_format_keys = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_format_keys,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2447, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_format_keys = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2447, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_2__init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self), __pyx_v_format_keys);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_format_keys) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2448
 * 
 *     def __init__(self, format_keys):
 *         super(VCFFormatParser, self).__init__(key=b'FORMAT')             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFormatParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFormatParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFormatParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_n_b_FORMAT) < 0) __PYX_ERR(0, 2448, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2447
 *             self.format_keys_cstr[i] = <char*> self.format_keys[i]
 * 
 *     def __init__(self, format_keys):             # <<<<<<<<<<<<<<
 *         super(VCFFormatParser, self).__init__(key=b'FORMAT')
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2450
 *         super(VCFFormatParser, self).__init__(key=b'FORMAT')
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.format_keys_cstr is not NULL:
 *             free(self.format_keys_cstr)
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_5__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_4__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":2451
 * 
 *     def __dealloc__(self):
 *         if self.format_keys_cstr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.format_keys_cstr)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->format_keys_cstr != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2452
 *     def __dealloc__(self):
 *         if self.format_keys_cstr is not NULL:
 *             free(self.format_keys_cstr)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
    free(__pyx_v_self->format_keys_cstr);

    /* "variant_tools/io_vcf_read.pyx":2451
 * 
 *     def __dealloc__(self):
 *         if self.format_keys_cstr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.format_keys_cstr)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2450
 *         super(VCFFormatParser, self).__init__(key=b'FORMAT')
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.format_keys_cstr is not NULL:
 *             free(self.format_keys_cstr)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "variant_tools/io_vcf_read.pyx":2454
 *             free(self.format_keys_cstr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         # reset temporary buffer
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFormatParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2457
 * 
 *         # reset temporary buffer
 *         CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *         IntVector_clear(&context.variant_format_indices)
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":2458
 *         # reset temporary buffer
 *         CharVector_clear(&context.temp)
 *         IntVector_clear(&context.variant_format_indices)             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_IntVector_clear((&__pyx_v_context->variant_format_indices));

  /* "variant_tools/io_vcf_read.pyx":2460
 *         IntVector_clear(&context.variant_format_indices)
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2462
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOF
 */
    __pyx_t_1 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2464
 *             if stream.c == 0:
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":2465
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2462
 *         while True:
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOF
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2467
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOL
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2469
 *             elif stream.c == LF or stream.c == CR:
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":2470
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2467
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 # no point setting format, there will be no calldata
 *                 context.state = VCFState.EOL
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2472
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 self.store_format(context)
 *                 # we're done here, advance to next field
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2473
 * 
 *             elif stream.c == TAB:
 *                 self.store_format(context)             # <<<<<<<<<<<<<<
 *                 # we're done here, advance to next field
 *                 context.state += 1
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->store_format(__pyx_v_self, __pyx_v_context); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2473, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2475
 *                 self.store_format(context)
 *                 # we're done here, advance to next field
 *                 context.state += 1             # <<<<<<<<<<<<<<
 *                 stream.advance()
 *                 break
 */
      __pyx_v_context->state = (__pyx_v_context->state + 1);

      /* "variant_tools/io_vcf_read.pyx":2476
 *                 # we're done here, advance to next field
 *                 context.state += 1
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2476, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2477
 *                 context.state += 1
 *                 stream.advance()
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COLON:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":2472
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 self.store_format(context)
 *                 # we're done here, advance to next field
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2479
 *                 break
 * 
 *             elif stream.c == COLON:             # <<<<<<<<<<<<<<
 *                 self.store_format(context)
 * 
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":2480
 * 
 *             elif stream.c == COLON:
 *                 self.store_format(context)             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->store_format(__pyx_v_self, __pyx_v_context); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2480, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2479
 *                 break
 * 
 *             elif stream.c == COLON:             # <<<<<<<<<<<<<<
 *                 self.store_format(context)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2483
 * 
 *             else:
 *                 CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *             # advance to next character
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2486
 * 
 *             # advance to next character
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int store_format(self, VCFContext context) except -1:  # nogil
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2486, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":2454
 *             free(self.format_keys_cstr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 * 
 *         # reset temporary buffer
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2488
 *             stream.advance()
 * 
 *     cdef int store_format(self, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef Py_ssize_t format_index
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_15VCFFormatParser_store_format(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_format_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("store_format", 0);

  /* "variant_tools/io_vcf_read.pyx":2492
 * 
 *         # deal with empty or missing data
 *         if context.temp.size == 0:             # <<<<<<<<<<<<<<
 *             # not strictly kosher, handle as missing/empty
 *             return 0
 */
  __pyx_t_1 = ((__pyx_v_context->temp.size == 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2494
 *         if context.temp.size == 0:
 *             # not strictly kosher, handle as missing/empty
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         if context.temp.size == 1 and context.temp.data[0] == PERIOD:
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2492
 * 
 *         # deal with empty or missing data
 *         if context.temp.size == 0:             # <<<<<<<<<<<<<<
 *             # not strictly kosher, handle as missing/empty
 *             return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2496
 *             return 0
 * 
 *         if context.temp.size == 1 and context.temp.data[0] == PERIOD:             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
  __pyx_t_2 = ((__pyx_v_context->temp.size == 1) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = (((__pyx_v_context->temp.data[0]) == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2497
 * 
 *         if context.temp.size == 1 and context.temp.data[0] == PERIOD:
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *         # terminate the string
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":2496
 *             return 0
 * 
 *         if context.temp.size == 1 and context.temp.data[0] == PERIOD:             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2500
 * 
 *         # terminate the string
 *         CharVector_terminate(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         # find format index
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":2503
 * 
 *         # find format index
 *         format_index = search_sorted_cstr(context.temp.data, self.format_keys_cstr, self.n_formats)             # <<<<<<<<<<<<<<
 * 
 *         # add to vector of indices for the current variant
 */
  __pyx_v_format_index = __pyx_f_13variant_tools_11io_vcf_read_search_sorted_cstr(__pyx_v_context->temp.data, __pyx_v_self->format_keys_cstr, __pyx_v_self->n_formats);

  /* "variant_tools/io_vcf_read.pyx":2506
 * 
 *         # add to vector of indices for the current variant
 *         IntVector_append(&context.variant_format_indices, format_index)             # <<<<<<<<<<<<<<
 * 
 *         # clear out temp
 */
  __pyx_f_13variant_tools_11io_vcf_read_IntVector_append((&__pyx_v_context->variant_format_indices), __pyx_v_format_index);

  /* "variant_tools/io_vcf_read.pyx":2509
 * 
 *         # clear out temp
 *         CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":2488
 *             stream.advance()
 * 
 *     cdef int store_format(self, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef Py_ssize_t format_index
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_6__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_8__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_15VCFFormatParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFFormatParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2516
 *     """Skip a field."""
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_skip_variant(stream, context)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2517
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_skip_variant(stream, context)             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_skip_variant(__pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2517, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2516
 *     """Skip a field."""
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_skip_variant(stream, context)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipAllCallDataParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2519
 *         vcf_skip_variant(stream, context)
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk *__pyx_optional_args) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
  }

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser___reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser___reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_4 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v__dict = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__dict);
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, None), state
 */
  /*else*/ {
    __pyx_t_5 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_6 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_5 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_5 = (__pyx_t_7 != 0);
    __pyx_t_6 = __pyx_t_5;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_6;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  __pyx_t_6 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFSkipAllCallDat); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, None), state
 *     else:
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFSkipAllCallDataParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_VCFSkipAllCallDat); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_115204050);
    __Pyx_GIVEREF(__pyx_int_115204050);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_115204050);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipAllCallDataParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFSkipAllCallDataParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_2__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_2__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFSkipAllCallDataParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipAllCallDataParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFSkipAllCallDataParser, (type(self), 0x6dddfd2, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFSkipAllCallDataParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFSkipAllCallDataParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2535
 *         Py_ssize_t n_samples_out
 * 
 *     def __cinit__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_format_keys = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_loc_samples = 0;
  PyObject *__pyx_v_fills = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_format_keys,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_chunk_length,&__pyx_n_s_loc_samples,&__pyx_n_s_fills,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 6, 6, 1); __PYX_ERR(0, 2535, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 6, 6, 2); __PYX_ERR(0, 2535, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 6, 6, 3); __PYX_ERR(0, 2535, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_loc_samples)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 6, 6, 4); __PYX_ERR(0, 2535, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 6, 6, 5); __PYX_ERR(0, 2535, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2535, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
    }
    __pyx_v_format_keys = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_chunk_length = values[3];
    __pyx_v_loc_samples = values[4];
    __pyx_v_fills = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2535, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser___cinit__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)__pyx_v_self), __pyx_v_format_keys, __pyx_v_types, __pyx_v_numbers, __pyx_v_chunk_length, __pyx_v_loc_samples, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser___cinit__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, PyObject *__pyx_v_format_keys, PyObject *__pyx_v_types, PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_loc_samples, PyObject *__pyx_v_fills) {
  PyObject *__pyx_v_parsers = NULL;
  PyObject *__pyx_v_kwds = NULL;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_v_n = NULL;
  CYTHON_UNUSED PyObject *__pyx_v_fill = NULL;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_parser = NULL;
  Py_ssize_t __pyx_v_i;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  Py_ssize_t __pyx_t_17;
  Py_ssize_t __pyx_t_18;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "variant_tools/io_vcf_read.pyx":2536
 * 
 *     def __cinit__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):
 *         self.chunk_length = chunk_length             # <<<<<<<<<<<<<<
 *         self.loc_samples = loc_samples
 *         self.n_samples = loc_samples.shape[0]
 */
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_chunk_length); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2536, __pyx_L1_error)
  __pyx_v_self->__pyx_base.chunk_length = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":2537
 *     def __cinit__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples             # <<<<<<<<<<<<<<
 *         self.n_samples = loc_samples.shape[0]
 *         self.n_samples_out = np.count_nonzero(loc_samples)
 */
  __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_v_loc_samples, PyBUF_WRITABLE); if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(0, 2537, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->loc_samples, 0);
  __pyx_v_self->loc_samples = __pyx_t_2;
  __pyx_t_2.memview = NULL;
  __pyx_t_2.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2538
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples
 *         self.n_samples = loc_samples.shape[0]             # <<<<<<<<<<<<<<
 *         self.n_samples_out = np.count_nonzero(loc_samples)
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_loc_samples, __pyx_n_s_shape); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_self->n_samples = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":2539
 *         self.loc_samples = loc_samples
 *         self.n_samples = loc_samples.shape[0]
 *         self.n_samples_out = np.count_nonzero(loc_samples)             # <<<<<<<<<<<<<<
 * 
 *         # setup formats
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_count_nonzero); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_3, __pyx_v_loc_samples) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_loc_samples);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_self->n_samples_out = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":2542
 * 
 *         # setup formats
 *         self.format_keys = tuple(sorted(format_keys))             # <<<<<<<<<<<<<<
 *         self.n_formats = len(self.format_keys)
 * 
 */
  __pyx_t_5 = PySequence_List(__pyx_v_format_keys); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;
  __pyx_t_6 = PyList_Sort(__pyx_t_4); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 2542, __pyx_L1_error)
  if (unlikely(__pyx_t_4 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 2542, __pyx_L1_error)
  }
  __pyx_t_5 = PyList_AsTuple(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_GOTREF(__pyx_v_self->format_keys);
  __Pyx_DECREF(__pyx_v_self->format_keys);
  __pyx_v_self->format_keys = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":2543
 *         # setup formats
 *         self.format_keys = tuple(sorted(format_keys))
 *         self.n_formats = len(self.format_keys)             # <<<<<<<<<<<<<<
 * 
 *         # setup parsers
 */
  __pyx_t_5 = __pyx_v_self->format_keys;
  __Pyx_INCREF(__pyx_t_5);
  if (unlikely(__pyx_t_5 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 2543, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_t_5); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_self->n_formats = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":2546
 * 
 *         # setup parsers
 *         self.skip_parser = VCFCallDataSkipParser(key=None)             # <<<<<<<<<<<<<<
 *         parsers = list()
 *         kwds = dict(chunk_length=chunk_length, n_samples_out=self.n_samples_out)
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_key, Py_None) < 0) __PYX_ERR(0, 2546, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->skip_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->skip_parser));
  __pyx_v_self->skip_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2547
 *         # setup parsers
 *         self.skip_parser = VCFCallDataSkipParser(key=None)
 *         parsers = list()             # <<<<<<<<<<<<<<
 *         kwds = dict(chunk_length=chunk_length, n_samples_out=self.n_samples_out)
 *         for key in self.format_keys:
 */
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_parsers = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2548
 *         self.skip_parser = VCFCallDataSkipParser(key=None)
 *         parsers = list()
 *         kwds = dict(chunk_length=chunk_length, n_samples_out=self.n_samples_out)             # <<<<<<<<<<<<<<
 *         for key in self.format_keys:
 *             t = types[key]
 */
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 2548, __pyx_L1_error)
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->n_samples_out); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_n_samples_out, __pyx_t_5) < 0) __PYX_ERR(0, 2548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_kwds = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2549
 *         parsers = list()
 *         kwds = dict(chunk_length=chunk_length, n_samples_out=self.n_samples_out)
 *         for key in self.format_keys:             # <<<<<<<<<<<<<<
 *             t = types[key]
 *             n = numbers[key]
 */
  if (unlikely(__pyx_v_self->format_keys == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 2549, __pyx_L1_error)
  }
  __pyx_t_4 = __pyx_v_self->format_keys; __Pyx_INCREF(__pyx_t_4); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 2549, __pyx_L1_error)
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":2550
 *         kwds = dict(chunk_length=chunk_length, n_samples_out=self.n_samples_out)
 *         for key in self.format_keys:
 *             t = types[key]             # <<<<<<<<<<<<<<
 *             n = numbers[key]
 * 
 */
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_v_key); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":2551
 *         for key in self.format_keys:
 *             t = types[key]
 *             n = numbers[key]             # <<<<<<<<<<<<<<
 * 
 *             # special handling of "genotype" dtypes for any field
 */
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_numbers, __pyx_v_key); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":2554
 * 
 *             # special handling of "genotype" dtypes for any field
 *             if isinstance(t, str) and t.startswith('genotype/'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 t = np.dtype(t.split('/')[1])
 */
    __pyx_t_8 = PyString_Check(__pyx_v_t); 
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_startswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2554, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_5 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_10, __pyx_kp_s_genotype) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s_genotype);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2554, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 2554, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __pyx_t_9;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2555
 *             # special handling of "genotype" dtypes for any field
 *             if isinstance(t, str) and t.startswith('genotype/'):
 *                 fill = fills.get(key, -1)             # <<<<<<<<<<<<<<
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):
 */
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2555, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_3)) {
        PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2555, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_GOTREF(__pyx_t_5);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
        PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2555, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_GOTREF(__pyx_t_5);
      } else
      #endif
      {
        __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2555, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (__pyx_t_10) {
          __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_12, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_12, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2555, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2556
 *             if isinstance(t, str) and t.startswith('genotype/'):
 *                 fill = fills.get(key, -1)
 *                 t = np.dtype(t.split('/')[1])             # <<<<<<<<<<<<<<
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_12 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_12)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_12);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_5 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_12, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s__3);
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_t, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2557
 *                 fill = fills.get(key, -1)
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int16'):
 */
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2557, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2557, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2557, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2558
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2558, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
        __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2558, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2558, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2558, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_14 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_14)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_14);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2558, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2558, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        {
          __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2558, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_15);
          if (__pyx_t_14) {
            __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_INCREF(__pyx_int_neg_1);
          __Pyx_GIVEREF(__pyx_int_neg_1);
          PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_int_neg_1);
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2558, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2558, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_5 = __pyx_t_12;
        __pyx_t_12 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2558, __pyx_L1_error)
        __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2558, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
        __pyx_t_12 = 0;

        /* "variant_tools/io_vcf_read.pyx":2557
 *                 fill = fills.get(key, -1)
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int16'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2559
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int32'):
 */
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2559, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2559, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2559, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2560
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2560, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
        __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2560, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2560, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2560, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_15 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_15)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_15);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2560, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2560, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        {
          __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2560, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          if (__pyx_t_15) {
            __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15); __pyx_t_15 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_INCREF(__pyx_int_neg_1);
          __Pyx_GIVEREF(__pyx_int_neg_1);
          PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_int_neg_1);
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2560, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2560, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_12 = __pyx_t_3;
        __pyx_t_3 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2560, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2560, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2559
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int32'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2561
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int64'):
 */
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2561, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2561, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2562
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
        __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2562, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
        __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2562, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2562, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2562, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_14 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_14)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_14);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2562, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2562, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        {
          __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2562, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_15);
          if (__pyx_t_14) {
            __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_INCREF(__pyx_int_neg_1);
          __Pyx_GIVEREF(__pyx_int_neg_1);
          PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_int_neg_1);
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2562, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2562, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_3 = __pyx_t_5;
        __pyx_t_5 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2562, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2562, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
        __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2561
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int64'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2563
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('uint8'):
 */
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2563, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2563, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2564
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2564, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
        __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2564, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2564, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2564, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_15 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_15)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_15);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2564, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2564, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          __Pyx_GOTREF(__pyx_t_10);
        } else
        #endif
        {
          __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2564, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          if (__pyx_t_15) {
            __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15); __pyx_t_15 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_INCREF(__pyx_int_neg_1);
          __Pyx_GIVEREF(__pyx_int_neg_1);
          PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_int_neg_1);
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2564, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2564, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_5 = __pyx_t_12;
        __pyx_t_12 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2564, __pyx_L1_error)
        __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2564, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
        __pyx_t_12 = 0;

        /* "variant_tools/io_vcf_read.pyx":2563
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('uint8'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2565
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *                 elif t == np.dtype('uint16'):
 */
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2565, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2565, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2565, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2566
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 */
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
        __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2566, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU8); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_14 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_14)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_14);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2566, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2566, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        {
          __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2566, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_16);
          if (__pyx_t_14) {
            __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_14); __pyx_t_14 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_15);
          __pyx_t_15 = 0;
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2566, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_12 = __pyx_t_3;
        __pyx_t_3 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2566, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2566, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2565
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *                 elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *                 elif t == np.dtype('uint16'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2567
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *                 elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *                 elif t == np.dtype('uint32'):
 */
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2567, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2567, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2567, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2568
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 */
        __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
        __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2568, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_IU16); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        __pyx_t_16 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_16)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_16);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2568, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2568, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        {
          __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2568, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          if (__pyx_t_16) {
            __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_t_15);
          __pyx_t_15 = 0;
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2568, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_3 = __pyx_t_5;
        __pyx_t_5 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2568, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2568, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
        __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2567
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *                 elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *                 elif t == np.dtype('uint32'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2569
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *                 elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *                 elif t == np.dtype('uint64'):
 */
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2569, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2569, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2570
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint64'):
 *                     parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
        __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2570, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU32); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_14 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_14)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_14);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2570, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2570, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        {
          __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2570, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_16);
          if (__pyx_t_14) {
            __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_14); __pyx_t_14 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_15);
          __pyx_t_15 = 0;
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2570, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_5 = __pyx_t_12;
        __pyx_t_12 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2570, __pyx_L1_error)
        __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2570, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
        __pyx_t_12 = 0;

        /* "variant_tools/io_vcf_read.pyx":2569
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *                 elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *                 elif t == np.dtype('uint64'):
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2571
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *                 elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *                 else:
 */
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2571, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2571, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2572
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *                 elif t == np.dtype('uint64'):
 *                     parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)             # <<<<<<<<<<<<<<
 *                 else:
 *                     warnings.warn('type %r not supported for genotype field %r, field will be skipped' % (t, key))
 */
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
        __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2572, __pyx_L1_error)
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_IU64); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        __pyx_t_16 = NULL;
        __pyx_t_11 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13);
          if (likely(__pyx_t_16)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_16);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_13, function);
            __pyx_t_11 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2572, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
          PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
          __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2572, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        } else
        #endif
        {
          __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2572, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          if (__pyx_t_16) {
            __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
          }
          __Pyx_INCREF(__pyx_v_key);
          __Pyx_GIVEREF(__pyx_v_key);
          PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
          __Pyx_GIVEREF(__pyx_t_15);
          PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_t_15);
          __pyx_t_15 = 0;
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2572, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        }
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_12 = __pyx_t_3;
        __pyx_t_3 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2572, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2571
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *                 elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *                 else:
 */
        goto __pyx_L8;
      }

      /* "variant_tools/io_vcf_read.pyx":2574
 *                     parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *                 else:
 *                     warnings.warn('type %r not supported for genotype field %r, field will be skipped' % (t, key))             # <<<<<<<<<<<<<<
 *                     parser = self.skip_parser
 * 
 */
      /*else*/ {
        __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_warnings); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2574, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_warn); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2574, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __pyx_t_12 = PyTuple_New(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2574, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_INCREF(__pyx_v_t);
        __Pyx_GIVEREF(__pyx_v_t);
        PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_t);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_v_key);
        __pyx_t_10 = __Pyx_PyString_Format(__pyx_kp_s_type_r_not_supported_for_genotyp, __pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2574, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __pyx_t_12 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_12)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_12);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_3 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_12, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_10);
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2574, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2575
 *                 else:
 *                     warnings.warn('type %r not supported for genotype field %r, field will be skipped' % (t, key))
 *                     parser = self.skip_parser             # <<<<<<<<<<<<<<
 * 
 *             # special handling of "genotype_ac" dtypes for any field
 */
        __pyx_t_3 = ((PyObject *)__pyx_v_self->skip_parser);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
        __pyx_t_3 = 0;
      }
      __pyx_L8:;

      /* "variant_tools/io_vcf_read.pyx":2554
 * 
 *             # special handling of "genotype" dtypes for any field
 *             if isinstance(t, str) and t.startswith('genotype/'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 t = np.dtype(t.split('/')[1])
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2578
 * 
 *             # special handling of "genotype_ac" dtypes for any field
 *             elif isinstance(t, str) and t.startswith('genotype_ac/'):             # <<<<<<<<<<<<<<
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):
 */
    __pyx_t_9 = PyString_Check(__pyx_v_t); 
    __pyx_t_8 = (__pyx_t_9 != 0);
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_startswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_3 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_10, __pyx_kp_s_genotype_ac) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_s_genotype_ac);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2579
 *             # special handling of "genotype_ac" dtypes for any field
 *             elif isinstance(t, str) and t.startswith('genotype_ac/'):
 *                 t = np.dtype(t.split('/')[1])             # <<<<<<<<<<<<<<
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_10 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_10, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_s__3);
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_3, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_t, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2580
 *             elif isinstance(t, str) and t.startswith('genotype_ac/'):
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int16'):
 */
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2580, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2580, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2581
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)
 */
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2581, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
        __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2581, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2581, __pyx_L1_error)
        __pyx_t_3 = __pyx_t_10;
        __pyx_t_10 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2581, __pyx_L1_error)
        __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser), __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2581, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_10));
        __pyx_t_10 = 0;

        /* "variant_tools/io_vcf_read.pyx":2580
 *             elif isinstance(t, str) and t.startswith('genotype_ac/'):
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int16'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2582
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int32'):
 */
      __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2582, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2582, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2583
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2583, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
        __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2583, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2583, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_5;
        __pyx_t_5 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_10, __pyx_v_kwds) < 0) __PYX_ERR(0, 2583, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser), __pyx_t_3, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2583, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
        __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2582
 *                 if t == np.dtype('int8'):
 *                     parser = VCFGenotypeACInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int32'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2584
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int64'):
 */
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2584, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_10 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2584, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2584, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2585
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)
 */
        __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_key);
        __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2585, __pyx_L1_error)
        __pyx_t_5 = __pyx_t_3;
        __pyx_t_3 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2585, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser), __pyx_t_10, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2584
 *                 elif t == np.dtype('int16'):
 *                     parser = VCFGenotypeACInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int64'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2586
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint8'):
 */
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2586, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2586, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2586, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2587
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)
 */
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2587, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
        __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2587, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2587, __pyx_L1_error)
        __pyx_t_3 = __pyx_t_10;
        __pyx_t_10 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2587, __pyx_L1_error)
        __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser), __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2587, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_10));
        __pyx_t_10 = 0;

        /* "variant_tools/io_vcf_read.pyx":2586
 *                 elif t == np.dtype('int32'):
 *                     parser = VCFGenotypeACInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint8'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2588
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint16'):
 */
      __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2588, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2588, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2589
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2589, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
        __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2589, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2589, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_5;
        __pyx_t_5 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_10, __pyx_v_kwds) < 0) __PYX_ERR(0, 2589, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser), __pyx_t_3, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2589, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
        __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2588
 *                 elif t == np.dtype('int64'):
 *                     parser = VCFGenotypeACInt64Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint16'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2590
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint32'):
 */
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2590, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_10 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2590, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2590, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2591
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)
 */
        __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2591, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_key);
        __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2591, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2591, __pyx_L1_error)
        __pyx_t_5 = __pyx_t_3;
        __pyx_t_3 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2591, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser), __pyx_t_10, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2591, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":2590
 *                 elif t == np.dtype('uint8'):
 *                     parser = VCFGenotypeACUInt8Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint32'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2592
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint64'):
 */
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2592, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2592, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2592, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2593
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 elif t == np.dtype('uint64'):
 *                     parser = VCFGenotypeACUInt64Parser(key, number=n, **kwds)
 */
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2593, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
        __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2593, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2593, __pyx_L1_error)
        __pyx_t_3 = __pyx_t_10;
        __pyx_t_10 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2593, __pyx_L1_error)
        __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser), __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2593, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_10));
        __pyx_t_10 = 0;

        /* "variant_tools/io_vcf_read.pyx":2592
 *                 elif t == np.dtype('uint16'):
 *                     parser = VCFGenotypeACUInt16Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint64'):
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2594
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt64Parser(key, number=n, **kwds)
 *                 else:
 */
      __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2594, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2594, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2594, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_7) {

        /* "variant_tools/io_vcf_read.pyx":2595
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint64'):
 *                     parser = VCFGenotypeACUInt64Parser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 *                 else:
 *                     warnings.warn('type %r not supported for genotype_ac field %r, field will be skipped' % (t, key))
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2595, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
        __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2595, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2595, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_5;
        __pyx_t_5 = 0;
        if (__Pyx_MergeKeywords(__pyx_t_10, __pyx_v_kwds) < 0) __PYX_ERR(0, 2595, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser), __pyx_t_3, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2595, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
        __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2594
 *                 elif t == np.dtype('uint32'):
 *                     parser = VCFGenotypeACUInt32Parser(key, number=n, **kwds)
 *                 elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                     parser = VCFGenotypeACUInt64Parser(key, number=n, **kwds)
 *                 else:
 */
        goto __pyx_L11;
      }

      /* "variant_tools/io_vcf_read.pyx":2597
 *                     parser = VCFGenotypeACUInt64Parser(key, number=n, **kwds)
 *                 else:
 *                     warnings.warn('type %r not supported for genotype_ac field %r, field will be skipped' % (t, key))             # <<<<<<<<<<<<<<
 *                     parser = self.skip_parser
 * 
 */
      /*else*/ {
        __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_warnings); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2597, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_warn); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2597, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2597, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_v_t);
        __Pyx_GIVEREF(__pyx_v_t);
        PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_t);
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_key);
        __pyx_t_12 = __Pyx_PyString_Format(__pyx_kp_s_type_r_not_supported_for_genotyp_2, __pyx_t_10); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2597, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_10 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_10)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_10);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
          }
        }
        __pyx_t_5 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_10, __pyx_t_12) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_12);
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2597, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "variant_tools/io_vcf_read.pyx":2598
 *                 else:
 *                     warnings.warn('type %r not supported for genotype_ac field %r, field will be skipped' % (t, key))
 *                     parser = self.skip_parser             # <<<<<<<<<<<<<<
 * 
 *             # special handling of GT field
 */
        __pyx_t_5 = ((PyObject *)__pyx_v_self->skip_parser);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
        __pyx_t_5 = 0;
      }
      __pyx_L11:;

      /* "variant_tools/io_vcf_read.pyx":2578
 * 
 *             # special handling of "genotype_ac" dtypes for any field
 *             elif isinstance(t, str) and t.startswith('genotype_ac/'):             # <<<<<<<<<<<<<<
 *                 t = np.dtype(t.split('/')[1])
 *                 if t == np.dtype('int8'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2601
 * 
 *             # special handling of GT field
 *             elif key == b'GT' and t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int16'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2601, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L12_bool_binop_done;
    }
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2601, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2601, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L12_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2602
 *             # special handling of GT field
 *             elif key == b'GT' and t == np.dtype('int8'):
 *                 parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('int16'):
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2602, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2602, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2602, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2602, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2602, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2602, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2602, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2602, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2602, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2602, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2602, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2601
 * 
 *             # special handling of GT field
 *             elif key == b'GT' and t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int16'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2603
 *             elif key == b'GT' and t == np.dtype('int8'):
 *                 parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int32'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2603, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L14_bool_binop_done;
    }
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2603, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2603, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L14_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2604
 *                 parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int16'):
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('int32'):
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2604, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2604, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2604, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2604, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_15) {
          __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15); __pyx_t_15 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2604, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2604, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_t_3;
      __pyx_t_3 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2604, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2603
 *             elif key == b'GT' and t == np.dtype('int8'):
 *                 parser = VCFGenotypeInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int32'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2605
 *             elif key == b'GT' and t == np.dtype('int16'):
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int64'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2605, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L16_bool_binop_done;
    }
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2605, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2605, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2605, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L16_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2606
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int32'):
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('int64'):
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2606, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2606, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2606, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2606, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2606, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2606, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2606, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2606, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2606, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2606, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2606, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2605
 *             elif key == b'GT' and t == np.dtype('int16'):
 *                 parser = VCFGenotypeInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int64'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2607
 *             elif key == b'GT' and t == np.dtype('int32'):
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint8'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2607, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L18_bool_binop_done;
    }
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2607, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2607, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L18_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2608
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int64'):
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('uint8'):
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2608, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2608, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2608, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2608, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_15) {
          __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15); __pyx_t_15 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2608, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2608, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2608, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2608, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2607
 *             elif key == b'GT' and t == np.dtype('int32'):
 *                 parser = VCFGenotypeInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint8'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2609
 *             elif key == b'GT' and t == np.dtype('int64'):
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint16'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2609, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L20_bool_binop_done;
    }
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2609, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2609, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L20_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2610
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint8'):
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('uint16'):
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2610, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU8); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2610, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2610, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2610, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2610, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_t_3;
      __pyx_t_3 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2610, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2609
 *             elif key == b'GT' and t == np.dtype('int64'):
 *                 parser = VCFGenotypeInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint16'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2611
 *             elif key == b'GT' and t == np.dtype('uint8'):
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint32'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2611, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L22_bool_binop_done;
    }
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2611, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2611, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L22_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2612
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint16'):
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('uint32'):
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2612, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_IU16); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __pyx_t_16 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_16)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_16);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2612, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2612, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2612, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_16) {
          __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2612, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2612, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2612, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2611
 *             elif key == b'GT' and t == np.dtype('uint8'):
 *                 parser = VCFGenotypeUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint32'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2613
 *             elif key == b'GT' and t == np.dtype('uint16'):
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint64'):
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2613, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L24_bool_binop_done;
    }
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2613, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2613, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2613, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L24_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2614
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint32'):
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif key == b'GT' and t == np.dtype('uint64'):
 *                 parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2614, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU32); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2614, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2614, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2614, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2614, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2614, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2613
 *             elif key == b'GT' and t == np.dtype('uint16'):
 *                 parser = VCFGenotypeUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint64'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2615
 *             elif key == b'GT' and t == np.dtype('uint32'):
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 * 
 */
    __pyx_t_8 = (__Pyx_PyBytes_Equals(__pyx_v_key, __pyx_n_b_GT, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2615, __pyx_L1_error)
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L26_bool_binop_done;
    }
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2615, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 2615, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __pyx_t_8;
    __pyx_L26_bool_binop_done:;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2616
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint64'):
 *                 parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)             # <<<<<<<<<<<<<<
 * 
 *             # all other calldata
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2616, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_IU64); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __pyx_t_16 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_16)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_16);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2616, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2616, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2616, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_16) {
          __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2616, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_t_3;
      __pyx_t_3 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2616, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2615
 *             elif key == b'GT' and t == np.dtype('uint32'):
 *                 parser = VCFGenotypeUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif key == b'GT' and t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFGenotypeUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2619
 * 
 *             # all other calldata
 *             elif t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int16'):
 */
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2619, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2619, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2620
 *             # all other calldata
 *             elif t == np.dtype('int8'):
 *                 parser = VCFCallDataInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int16'):
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2620, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2620, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2620, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2620, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2620, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2620, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2620, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2620, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2620, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2620, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2620, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2619
 * 
 *             # all other calldata
 *             elif t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int16'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2621
 *             elif t == np.dtype('int8'):
 *                 parser = VCFCallDataInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int32'):
 */
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2621, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2621, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2622
 *                 parser = VCFCallDataInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int16'):
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int32'):
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2622, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2622, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2622, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2622, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2622, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2622, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2622, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_15) {
          __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15); __pyx_t_15 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2622, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2622, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2622, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2622, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2621
 *             elif t == np.dtype('int8'):
 *                 parser = VCFCallDataInt8Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int32'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2623
 *             elif t == np.dtype('int16'):
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int64'):
 */
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2623, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2623, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2624
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int32'):
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('int64'):
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2624, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2624, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2624, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2624, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2624, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2624, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2624, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2624, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2624, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_t_3;
      __pyx_t_3 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2624, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2624, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2623
 *             elif t == np.dtype('int16'):
 *                 parser = VCFCallDataInt16Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int64'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2625
 *             elif t == np.dtype('int32'):
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('uint8'):
 */
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2625, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2625, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2626
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int64'):
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint8'):
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2626, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_15 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2626, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_int_neg_1};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2626, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2626, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_15) {
          __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15); __pyx_t_15 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_INCREF(__pyx_int_neg_1);
        __Pyx_GIVEREF(__pyx_int_neg_1);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_int_neg_1);
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2626, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2626, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2626, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2625
 *             elif t == np.dtype('int32'):
 *                 parser = VCFCallDataInt32Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('uint8'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2627
 *             elif t == np.dtype('int64'):
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif t == np.dtype('uint16'):
 */
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2627, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2627, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2628
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('uint8'):
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint16'):
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2628, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU8); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2628, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2628, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2628, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2628, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2628, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2628, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2627
 *             elif t == np.dtype('int64'):
 *                 parser = VCFCallDataInt64Parser(key, number=n, fill=fills.get(key, -1), **kwds)
 *             elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif t == np.dtype('uint16'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2629
 *             elif t == np.dtype('uint8'):
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif t == np.dtype('uint32'):
 */
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2629, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2629, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2629, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2630
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif t == np.dtype('uint16'):
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint32'):
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2630, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_IU16); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __pyx_t_16 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_16)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_16);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2630, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2630, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2630, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_16) {
          __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2630, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_t_3;
      __pyx_t_3 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2630, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2629
 *             elif t == np.dtype('uint8'):
 *                 parser = VCFCallDataUInt8Parser(key, number=n, fill=fills.get(key, IU8.max), **kwds)
 *             elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif t == np.dtype('uint32'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2631
 *             elif t == np.dtype('uint16'):
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif t == np.dtype('uint64'):
 */
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2631, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2631, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2631, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2632
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif t == np.dtype('uint32'):
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('uint64'):
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2632, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_IU32); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2632, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2632, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2632, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2632, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2632, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2631
 *             elif t == np.dtype('uint16'):
 *                 parser = VCFCallDataUInt16Parser(key, number=n, fill=fills.get(key, IU16.max), **kwds)
 *             elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif t == np.dtype('uint64'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2633
 *             elif t == np.dtype('uint32'):
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *             elif t == np.dtype('float32'):
 */
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2633, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2633, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2634
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif t == np.dtype('uint64'):
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('float32'):
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 */
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2634, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_IU64); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_max); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __pyx_t_16 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_16)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_16);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2634, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_16, __pyx_v_key, __pyx_t_15};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2634, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      } else
      #endif
      {
        __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2634, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        if (__pyx_t_16) {
          __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_15);
        PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_t_15);
        __pyx_t_15 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_14, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2634, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_5, __pyx_v_kwds) < 0) __PYX_ERR(0, 2634, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser), __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2634, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2633
 *             elif t == np.dtype('uint32'):
 *                 parser = VCFCallDataUInt32Parser(key, number=n, fill=fills.get(key, IU32.max), **kwds)
 *             elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *             elif t == np.dtype('float32'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2635
 *             elif t == np.dtype('uint64'):
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *             elif t == np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t == np.dtype('float64'):
 */
    __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_12, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2635, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2635, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2636
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *             elif t == np.dtype('float32'):
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)             # <<<<<<<<<<<<<<
 *             elif t == np.dtype('float64'):
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2636, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_t_14};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2636, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_v_key, __pyx_t_14};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2636, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      } else
      #endif
      {
        __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2636, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        if (__pyx_t_15) {
          __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_16, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_14);
        PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_t_14);
        __pyx_t_14 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_16, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2636, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2636, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_t_3;
      __pyx_t_3 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_12, __pyx_v_kwds) < 0) __PYX_ERR(0, 2636, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser), __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "variant_tools/io_vcf_read.pyx":2635
 *             elif t == np.dtype('uint64'):
 *                 parser = VCFCallDataUInt64Parser(key, number=n, fill=fills.get(key, IU64.max), **kwds)
 *             elif t == np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t == np.dtype('float64'):
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2637
 *             elif t == np.dtype('float32'):
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t == np.dtype('float64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t.kind == 'S':
 */
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2637, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2637, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2638
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t == np.dtype('float64'):
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)             # <<<<<<<<<<<<<<
 *             elif t.kind == 'S':
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2638, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_fills, __pyx_n_s_get); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_16 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 2638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      __pyx_t_14 = NULL;
      __pyx_t_11 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
          __pyx_t_11 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_16};
        __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2638, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) {
        PyObject *__pyx_temp[3] = {__pyx_t_14, __pyx_v_key, __pyx_t_16};
        __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2638, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      } else
      #endif
      {
        __pyx_t_15 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2638, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        if (__pyx_t_14) {
          __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL;
        }
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_15, 0+__pyx_t_11, __pyx_v_key);
        __Pyx_GIVEREF(__pyx_t_16);
        PyTuple_SET_ITEM(__pyx_t_15, 1+__pyx_t_11, __pyx_t_16);
        __pyx_t_16 = 0;
        __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2638, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      }
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_fill, __pyx_t_10) < 0) __PYX_ERR(0, 2638, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2638, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2638, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2637
 *             elif t == np.dtype('float32'):
 *                 parser = VCFCallDataFloat32Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t == np.dtype('float64'):             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t.kind == 'S':
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2639
 *             elif t == np.dtype('float64'):
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)
 *             elif t.kind == 'O':
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = (__Pyx_PyString_Equals(__pyx_t_5, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2639, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2640
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t.kind == 'S':
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)             # <<<<<<<<<<<<<<
 *             elif t.kind == 'O':
 *                 parser = VCFCallDataObjectParser(key, number=n, **kwds)
 */
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
      __pyx_t_12 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 2640, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_12, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2640, __pyx_L1_error)
      __pyx_t_3 = __pyx_t_12;
      __pyx_t_12 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2640, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser), __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_12));
      __pyx_t_12 = 0;

      /* "variant_tools/io_vcf_read.pyx":2639
 *             elif t == np.dtype('float64'):
 *                 parser = VCFCallDataFloat64Parser(key, number=n, fill=fills.get(key, NAN), **kwds)
 *             elif t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)
 *             elif t.kind == 'O':
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2641
 *             elif t.kind == 'S':
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)
 *             elif t.kind == 'O':             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataObjectParser(key, number=n, **kwds)
 * 
 */
    __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_7 = (__Pyx_PyString_Equals(__pyx_t_12, __pyx_n_s_O, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 2641, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (__pyx_t_7) {

      /* "variant_tools/io_vcf_read.pyx":2642
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)
 *             elif t.kind == 'O':
 *                 parser = VCFCallDataObjectParser(key, number=n, **kwds)             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2642, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_key);
      __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2642, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_number, __pyx_v_n) < 0) __PYX_ERR(0, 2642, __pyx_L1_error)
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;
      if (__Pyx_MergeKeywords(__pyx_t_3, __pyx_v_kwds) < 0) __PYX_ERR(0, 2642, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser), __pyx_t_12, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2642, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2641
 *             elif t.kind == 'S':
 *                 parser = VCFCallDataStringParser(key, dtype=t, number=n, **kwds)
 *             elif t.kind == 'O':             # <<<<<<<<<<<<<<
 *                 parser = VCFCallDataObjectParser(key, number=n, **kwds)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":2645
 * 
 *             else:
 *                 parser = VCFCallDataSkipParser(key)             # <<<<<<<<<<<<<<
 *                 warnings.warn('type %r not supported for FORMAT field %r, field will be skipped' % (t, key))
 * 
 */
    /*else*/ {
      __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser), __pyx_v_key); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2645, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":2646
 *             else:
 *                 parser = VCFCallDataSkipParser(key)
 *                 warnings.warn('type %r not supported for FORMAT field %r, field will be skipped' % (t, key))             # <<<<<<<<<<<<<<
 * 
 *             parsers.append(parser)
 */
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_warnings); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_warn); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_t);
      __Pyx_GIVEREF(__pyx_v_t);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_t);
      __Pyx_INCREF(__pyx_v_key);
      __Pyx_GIVEREF(__pyx_v_key);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_key);
      __pyx_t_10 = __Pyx_PyString_Format(__pyx_kp_s_type_r_not_supported_for_FORMAT, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_12))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_12);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_12, function);
        }
      }
      __pyx_t_5 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_3, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_10);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":2648
 *                 warnings.warn('type %r not supported for FORMAT field %r, field will be skipped' % (t, key))
 * 
 *             parsers.append(parser)             # <<<<<<<<<<<<<<
 *         self.parsers = tuple(parsers)
 * 
 */
    __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_parsers, ((PyObject *)__pyx_v_parser)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 2648, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":2549
 *         parsers = list()
 *         kwds = dict(chunk_length=chunk_length, n_samples_out=self.n_samples_out)
 *         for key in self.format_keys:             # <<<<<<<<<<<<<<
 *             t = types[key]
 *             n = numbers[key]
 */
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2649
 * 
 *             parsers.append(parser)
 *         self.parsers = tuple(parsers)             # <<<<<<<<<<<<<<
 * 
 *         # store pointers to parsers
 */
  __pyx_t_4 = PyList_AsTuple(__pyx_v_parsers); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->parsers);
  __Pyx_DECREF(__pyx_v_self->parsers);
  __pyx_v_self->parsers = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2652
 * 
 *         # store pointers to parsers
 *         self.parsers_cptr = <PyObject**> malloc(sizeof(PyObject*) * self.n_formats)             # <<<<<<<<<<<<<<
 *         for i in range(self.n_formats):
 *             self.parsers_cptr[i] = <PyObject*> self.parsers[i]
 */
  __pyx_v_self->parsers_cptr = ((PyObject **)malloc(((sizeof(PyObject *)) * __pyx_v_self->n_formats)));

  /* "variant_tools/io_vcf_read.pyx":2653
 *         # store pointers to parsers
 *         self.parsers_cptr = <PyObject**> malloc(sizeof(PyObject*) * self.n_formats)
 *         for i in range(self.n_formats):             # <<<<<<<<<<<<<<
 *             self.parsers_cptr[i] = <PyObject*> self.parsers[i]
 * 
 */
  __pyx_t_1 = __pyx_v_self->n_formats;
  __pyx_t_17 = __pyx_t_1;
  for (__pyx_t_18 = 0; __pyx_t_18 < __pyx_t_17; __pyx_t_18+=1) {
    __pyx_v_i = __pyx_t_18;

    /* "variant_tools/io_vcf_read.pyx":2654
 *         self.parsers_cptr = <PyObject**> malloc(sizeof(PyObject*) * self.n_formats)
 *         for i in range(self.n_formats):
 *             self.parsers_cptr[i] = <PyObject*> self.parsers[i]             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):
 */
    if (unlikely(__pyx_v_self->parsers == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 2654, __pyx_L1_error)
    }
    (__pyx_v_self->parsers_cptr[__pyx_v_i]) = ((PyObject *)PyTuple_GET_ITEM(__pyx_v_self->parsers, __pyx_v_i));
  }

  /* "variant_tools/io_vcf_read.pyx":2535
 *         Py_ssize_t n_samples_out
 * 
 *     def __cinit__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 *         self.loc_samples = loc_samples
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parsers);
  __Pyx_XDECREF(__pyx_v_kwds);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_fill);
  __Pyx_XDECREF((PyObject *)__pyx_v_parser);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2656
 *             self.parsers_cptr[i] = <PyObject*> self.parsers[i]
 * 
 *     def __init__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):             # <<<<<<<<<<<<<<
 *         super(VCFCallDataParser, self).__init__(chunk_length=chunk_length)
 * 
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_format_keys = 0;
  CYTHON_UNUSED PyObject *__pyx_v_types = 0;
  CYTHON_UNUSED PyObject *__pyx_v_numbers = 0;
  PyObject *__pyx_v_chunk_length = 0;
  CYTHON_UNUSED PyObject *__pyx_v_loc_samples = 0;
  CYTHON_UNUSED PyObject *__pyx_v_fills = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_format_keys,&__pyx_n_s_types,&__pyx_n_s_numbers,&__pyx_n_s_chunk_length,&__pyx_n_s_loc_samples,&__pyx_n_s_fills,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format_keys)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); __PYX_ERR(0, 2656, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numbers)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); __PYX_ERR(0, 2656, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); __PYX_ERR(0, 2656, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_loc_samples)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); __PYX_ERR(0, 2656, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fills)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); __PYX_ERR(0, 2656, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2656, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
    }
    __pyx_v_format_keys = values[0];
    __pyx_v_types = values[1];
    __pyx_v_numbers = values[2];
    __pyx_v_chunk_length = values[3];
    __pyx_v_loc_samples = values[4];
    __pyx_v_fills = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2656, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_2__init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)__pyx_v_self), __pyx_v_format_keys, __pyx_v_types, __pyx_v_numbers, __pyx_v_chunk_length, __pyx_v_loc_samples, __pyx_v_fills);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_2__init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_format_keys, CYTHON_UNUSED PyObject *__pyx_v_types, CYTHON_UNUSED PyObject *__pyx_v_numbers, PyObject *__pyx_v_chunk_length, CYTHON_UNUSED PyObject *__pyx_v_loc_samples, CYTHON_UNUSED PyObject *__pyx_v_fills) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2657
 * 
 *     def __init__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):
 *         super(VCFCallDataParser, self).__init__(chunk_length=chunk_length)             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_length, __pyx_v_chunk_length) < 0) __PYX_ERR(0, 2657, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2656
 *             self.parsers_cptr[i] = <PyObject*> self.parsers[i]
 * 
 *     def __init__(self, format_keys, types, numbers, chunk_length, loc_samples, fills):             # <<<<<<<<<<<<<<
 *         super(VCFCallDataParser, self).__init__(chunk_length=chunk_length)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2659
 *         super(VCFCallDataParser, self).__init__(chunk_length=chunk_length)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.parsers_cptr is not NULL:
 *             free(self.parsers_cptr)
 */

/* Python wrapper */
static void __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_5__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_4__dealloc__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_4__dealloc__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "variant_tools/io_vcf_read.pyx":2660
 * 
 *     def __dealloc__(self):
 *         if self.parsers_cptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.parsers_cptr)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->parsers_cptr != NULL) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":2661
 *     def __dealloc__(self):
 *         if self.parsers_cptr is not NULL:
 *             free(self.parsers_cptr)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
    free(__pyx_v_self->parsers_cptr);

    /* "variant_tools/io_vcf_read.pyx":2660
 * 
 *     def __dealloc__(self):
 *         if self.parsers_cptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self.parsers_cptr)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2659
 *         super(VCFCallDataParser, self).__init__(chunk_length=chunk_length)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.parsers_cptr is not NULL:
 *             free(self.parsers_cptr)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "variant_tools/io_vcf_read.pyx":2663
 *             free(self.parsers_cptr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             PyObject* parser
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  PyObject *__pyx_v_parser;
  int __pyx_v_format_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2668
 * 
 *         # initialise context
 *         context.sample_index = 0             # <<<<<<<<<<<<<<
 *         context.sample_output_index = -1
 *         context.sample_field_index = 0
 */
  __pyx_v_context->sample_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2669
 *         # initialise context
 *         context.sample_index = 0
 *         context.sample_output_index = -1             # <<<<<<<<<<<<<<
 *         context.sample_field_index = 0
 * 
 */
  __pyx_v_context->sample_output_index = -1L;

  /* "variant_tools/io_vcf_read.pyx":2670
 *         context.sample_index = 0
 *         context.sample_output_index = -1
 *         context.sample_field_index = 0             # <<<<<<<<<<<<<<
 * 
 *         # setup output indexing
 */
  __pyx_v_context->sample_field_index = 0;

  /* "variant_tools/io_vcf_read.pyx":2673
 * 
 *         # setup output indexing
 *         if self.loc_samples[0]:             # <<<<<<<<<<<<<<
 *             context.sample_output_index += 1
 *         else:
 */
  __pyx_t_1 = 0;
  __pyx_t_2 = ((*((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->loc_samples.data + __pyx_t_1 * __pyx_v_self->loc_samples.strides[0]) ))) != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":2674
 *         # setup output indexing
 *         if self.loc_samples[0]:
 *             context.sample_output_index += 1             # <<<<<<<<<<<<<<
 *         else:
 *             # skip to next sample
 */
    __pyx_v_context->sample_output_index = (__pyx_v_context->sample_output_index + 1);

    /* "variant_tools/io_vcf_read.pyx":2673
 * 
 *         # setup output indexing
 *         if self.loc_samples[0]:             # <<<<<<<<<<<<<<
 *             context.sample_output_index += 1
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":2677
 *         else:
 *             # skip to next sample
 *             while stream.c != 0 and stream.c != LF and stream.c != CR and stream.c != TAB:             # <<<<<<<<<<<<<<
 *                 stream.advance()
 * 
 */
  /*else*/ {
    while (1) {
      __pyx_t_3 = ((__pyx_v_stream->c != 0) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_2 = __pyx_t_3;
        goto __pyx_L6_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_2 = __pyx_t_3;
        goto __pyx_L6_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_2 = __pyx_t_3;
        goto __pyx_L6_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
      __pyx_t_2 = __pyx_t_3;
      __pyx_L6_bool_binop_done:;
      if (!__pyx_t_2) break;

      /* "variant_tools/io_vcf_read.pyx":2678
 *             # skip to next sample
 *             while stream.c != 0 and stream.c != LF and stream.c != CR and stream.c != TAB:
 *                 stream.advance()             # <<<<<<<<<<<<<<
 * 
 *         while True:
 */
      __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2678, __pyx_L1_error)
    }
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":2680
 *                 stream.advance()
 * 
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if context.sample_index >= self.n_samples:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":2682
 *         while True:
 * 
 *             if context.sample_index >= self.n_samples:             # <<<<<<<<<<<<<<
 *                 # with gil:
 *                 warn('more samples than given in header', context)
 */
    __pyx_t_2 = ((__pyx_v_context->sample_index >= __pyx_v_self->n_samples) != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":2684
 *             if context.sample_index >= self.n_samples:
 *                 # with gil:
 *                 warn('more samples than given in header', context)             # <<<<<<<<<<<<<<
 *                 while stream.c != 0 and stream.c != LF and stream.c != CR:
 *                     stream.advance()
 */
      __pyx_t_4 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_more_samples_than_given_in_heade, __pyx_v_context); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2684, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2685
 *                 # with gil:
 *                 warn('more samples than given in header', context)
 *                 while stream.c != 0 and stream.c != LF and stream.c != CR:             # <<<<<<<<<<<<<<
 *                     stream.advance()
 * 
 */
      while (1) {
        __pyx_t_3 = ((__pyx_v_stream->c != 0) != 0);
        if (__pyx_t_3) {
        } else {
          __pyx_t_2 = __pyx_t_3;
          goto __pyx_L15_bool_binop_done;
        }
        __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
        if (__pyx_t_3) {
        } else {
          __pyx_t_2 = __pyx_t_3;
          goto __pyx_L15_bool_binop_done;
        }
        __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
        __pyx_t_2 = __pyx_t_3;
        __pyx_L15_bool_binop_done:;
        if (!__pyx_t_2) break;

        /* "variant_tools/io_vcf_read.pyx":2686
 *                 warn('more samples than given in header', context)
 *                 while stream.c != 0 and stream.c != LF and stream.c != CR:
 *                     stream.advance()             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == 0:
 */
        __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2686, __pyx_L1_error)
      }

      /* "variant_tools/io_vcf_read.pyx":2682
 *         while True:
 * 
 *             if context.sample_index >= self.n_samples:             # <<<<<<<<<<<<<<
 *                 # with gil:
 *                 warn('more samples than given in header', context)
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2688
 *                     stream.advance()
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":2689
 * 
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOF;

      /* "variant_tools/io_vcf_read.pyx":2690
 *             if stream.c == 0:
 *                 context.state = VCFState.EOF
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == LF or stream.c == CR:
 */
      goto __pyx_L11_break;

      /* "variant_tools/io_vcf_read.pyx":2688
 *                     stream.advance()
 * 
 *             if stream.c == 0:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOF
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2692
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_2 = __pyx_t_3;
      goto __pyx_L19_bool_binop_done;
    }
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    __pyx_t_2 = __pyx_t_3;
    __pyx_L19_bool_binop_done:;
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":2693
 * 
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
      __pyx_v_context->state = __pyx_e_13variant_tools_11io_vcf_read_EOL;

      /* "variant_tools/io_vcf_read.pyx":2694
 *             elif stream.c == LF or stream.c == CR:
 *                 context.state = VCFState.EOL
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == TAB:
 */
      goto __pyx_L11_break;

      /* "variant_tools/io_vcf_read.pyx":2692
 *                 break
 * 
 *             elif stream.c == LF or stream.c == CR:             # <<<<<<<<<<<<<<
 *                 context.state = VCFState.EOL
 *                 break
 */
    }

    /* "variant_tools/io_vcf_read.pyx":2696
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 stream.advance()
 *                 context.sample_index += 1
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":2697
 * 
 *             elif stream.c == TAB:
 *                 stream.advance()             # <<<<<<<<<<<<<<
 *                 context.sample_index += 1
 *                 context.sample_field_index = 0
 */
      __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2697, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2698
 *             elif stream.c == TAB:
 *                 stream.advance()
 *                 context.sample_index += 1             # <<<<<<<<<<<<<<
 *                 context.sample_field_index = 0
 *                 if self.loc_samples[context.sample_index]:
 */
      __pyx_v_context->sample_index = (__pyx_v_context->sample_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2699
 *                 stream.advance()
 *                 context.sample_index += 1
 *                 context.sample_field_index = 0             # <<<<<<<<<<<<<<
 *                 if self.loc_samples[context.sample_index]:
 *                     context.sample_output_index += 1
 */
      __pyx_v_context->sample_field_index = 0;

      /* "variant_tools/io_vcf_read.pyx":2700
 *                 context.sample_index += 1
 *                 context.sample_field_index = 0
 *                 if self.loc_samples[context.sample_index]:             # <<<<<<<<<<<<<<
 *                     context.sample_output_index += 1
 *                 else:
 */
      __pyx_t_5 = __pyx_v_context->sample_index;
      __pyx_t_2 = ((*((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->loc_samples.data + __pyx_t_5 * __pyx_v_self->loc_samples.strides[0]) ))) != 0);
      if (__pyx_t_2) {

        /* "variant_tools/io_vcf_read.pyx":2701
 *                 context.sample_field_index = 0
 *                 if self.loc_samples[context.sample_index]:
 *                     context.sample_output_index += 1             # <<<<<<<<<<<<<<
 *                 else:
 *                     # skip to next sample
 */
        __pyx_v_context->sample_output_index = (__pyx_v_context->sample_output_index + 1);

        /* "variant_tools/io_vcf_read.pyx":2700
 *                 context.sample_index += 1
 *                 context.sample_field_index = 0
 *                 if self.loc_samples[context.sample_index]:             # <<<<<<<<<<<<<<
 *                     context.sample_output_index += 1
 *                 else:
 */
        goto __pyx_L21;
      }

      /* "variant_tools/io_vcf_read.pyx":2704
 *                 else:
 *                     # skip to next sample
 *                     while stream.c != 0 and stream.c != LF and stream.c != CR and stream.c != TAB:             # <<<<<<<<<<<<<<
 *                         stream.advance()
 * 
 */
      /*else*/ {
        while (1) {
          __pyx_t_3 = ((__pyx_v_stream->c != 0) != 0);
          if (__pyx_t_3) {
          } else {
            __pyx_t_2 = __pyx_t_3;
            goto __pyx_L24_bool_binop_done;
          }
          __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
          if (__pyx_t_3) {
          } else {
            __pyx_t_2 = __pyx_t_3;
            goto __pyx_L24_bool_binop_done;
          }
          __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
          if (__pyx_t_3) {
          } else {
            __pyx_t_2 = __pyx_t_3;
            goto __pyx_L24_bool_binop_done;
          }
          __pyx_t_3 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
          __pyx_t_2 = __pyx_t_3;
          __pyx_L24_bool_binop_done:;
          if (!__pyx_t_2) break;

          /* "variant_tools/io_vcf_read.pyx":2705
 *                     # skip to next sample
 *                     while stream.c != 0 and stream.c != LF and stream.c != CR and stream.c != TAB:
 *                         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COLON:
 */
          __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2705, __pyx_L1_error)
        }
      }
      __pyx_L21:;

      /* "variant_tools/io_vcf_read.pyx":2696
 *                 break
 * 
 *             elif stream.c == TAB:             # <<<<<<<<<<<<<<
 *                 stream.advance()
 *                 context.sample_index += 1
 */
      goto __pyx_L18;
    }

    /* "variant_tools/io_vcf_read.pyx":2707
 *                         stream.advance()
 * 
 *             elif stream.c == COLON:             # <<<<<<<<<<<<<<
 *                 context.sample_field_index += 1
 *                 stream.advance()
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":2708
 * 
 *             elif stream.c == COLON:
 *                 context.sample_field_index += 1             # <<<<<<<<<<<<<<
 *                 stream.advance()
 * 
 */
      __pyx_v_context->sample_field_index = (__pyx_v_context->sample_field_index + 1);

      /* "variant_tools/io_vcf_read.pyx":2709
 *             elif stream.c == COLON:
 *                 context.sample_field_index += 1
 *                 stream.advance()             # <<<<<<<<<<<<<<
 * 
 *             elif context.sample_field_index >= context.variant_format_indices.size:
 */
      __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2709, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2707
 *                         stream.advance()
 * 
 *             elif stream.c == COLON:             # <<<<<<<<<<<<<<
 *                 context.sample_field_index += 1
 *                 stream.advance()
 */
      goto __pyx_L18;
    }

    /* "variant_tools/io_vcf_read.pyx":2711
 *                 stream.advance()
 * 
 *             elif context.sample_field_index >= context.variant_format_indices.size:             # <<<<<<<<<<<<<<
 *                 # more sample fields than formats declared for this variant
 *                 self.skip_parser.parse(stream, context)
 */
    __pyx_t_2 = ((__pyx_v_context->sample_field_index >= __pyx_v_context->variant_format_indices.size) != 0);
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":2713
 *             elif context.sample_field_index >= context.variant_format_indices.size:
 *                 # more sample fields than formats declared for this variant
 *                 self.skip_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *             else:
 */
      __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_self->skip_parser->__pyx_vtab)->parse(__pyx_v_self->skip_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2713, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":2711
 *                 stream.advance()
 * 
 *             elif context.sample_field_index >= context.variant_format_indices.size:             # <<<<<<<<<<<<<<
 *                 # more sample fields than formats declared for this variant
 *                 self.skip_parser.parse(stream, context)
 */
      goto __pyx_L18;
    }

    /* "variant_tools/io_vcf_read.pyx":2718
 * 
 *                 # lookup format
 *                 format_index = context.variant_format_indices.data[context.sample_field_index]             # <<<<<<<<<<<<<<
 * 
 *                 # find parser
 */
    /*else*/ {
      __pyx_v_format_index = (__pyx_v_context->variant_format_indices.data[__pyx_v_context->sample_field_index]);

      /* "variant_tools/io_vcf_read.pyx":2721
 * 
 *                 # find parser
 *                 if format_index >= 0:             # <<<<<<<<<<<<<<
 *                     parser = self.parsers_cptr[format_index]
 *                     # jump through some hoops to avoid references (which need the GIL)
 */
      __pyx_t_2 = ((__pyx_v_format_index >= 0) != 0);
      if (__pyx_t_2) {

        /* "variant_tools/io_vcf_read.pyx":2722
 *                 # find parser
 *                 if format_index >= 0:
 *                     parser = self.parsers_cptr[format_index]             # <<<<<<<<<<<<<<
 *                     # jump through some hoops to avoid references (which need the GIL)
 *                     (<VCFCallDataParserBase>parser).parse(stream, context)
 */
        __pyx_v_parser = (__pyx_v_self->parsers_cptr[__pyx_v_format_index]);

        /* "variant_tools/io_vcf_read.pyx":2724
 *                     parser = self.parsers_cptr[format_index]
 *                     # jump through some hoops to avoid references (which need the GIL)
 *                     (<VCFCallDataParserBase>parser).parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *                 else:
 */
        __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_parser)->__pyx_vtab)->parse(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_parser), __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2724, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":2721
 * 
 *                 # find parser
 *                 if format_index >= 0:             # <<<<<<<<<<<<<<
 *                     parser = self.parsers_cptr[format_index]
 *                     # jump through some hoops to avoid references (which need the GIL)
 */
        goto __pyx_L28;
      }

      /* "variant_tools/io_vcf_read.pyx":2727
 * 
 *                 else:
 *                     self.skip_parser.parse(stream, context)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
      /*else*/ {
        __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_self->skip_parser->__pyx_vtab)->parse(__pyx_v_self->skip_parser, __pyx_v_stream, __pyx_v_context); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2727, __pyx_L1_error)
      }
      __pyx_L28:;
    }
    __pyx_L18:;
  }
  __pyx_L11_break:;

  /* "variant_tools/io_vcf_read.pyx":2663
 *             free(self.parsers_cptr)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         cdef:
 *             PyObject* parser
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2729
 *                     self.skip_parser.parse(stream, context)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_parser = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2731
 *     cdef int malloc_chunk(self) except -1:
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:             # <<<<<<<<<<<<<<
 *             parser.malloc_chunk()
 * 
 */
  if (unlikely(__pyx_v_self->parsers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 2731, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->parsers; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 2731, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase))))) __PYX_ERR(0, 2731, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":2732
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 *             parser.malloc_chunk()             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_parser->__pyx_vtab)->malloc_chunk(__pyx_v_parser); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2732, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":2731
 *     cdef int malloc_chunk(self) except -1:
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:             # <<<<<<<<<<<<<<
 *             parser.malloc_chunk()
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2729
 *                     self.skip_parser.parse(stream, context)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_parser);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2734
 *             parser.malloc_chunk()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_parser = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk __pyx_t_5;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":2736
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:             # <<<<<<<<<<<<<<
 *             parser.make_chunk(chunk, limit=limit)
 * 
 */
  if (unlikely(__pyx_v_self->parsers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 2736, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->parsers; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 2736, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase))))) __PYX_ERR(0, 2736, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_parser, ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":2737
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 *             parser.make_chunk(chunk, limit=limit)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.limit = __pyx_v_limit;
    __pyx_t_4 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_parser->__pyx_vtab)->make_chunk(__pyx_v_parser, __pyx_v_chunk, &__pyx_t_5); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2737, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":2736
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:             # <<<<<<<<<<<<<<
 *             parser.make_chunk(chunk, limit=limit)
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2734
 *             parser.malloc_chunk()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         cdef VCFCallDataParserBase parser
 *         for parser in self.parsers:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_parser);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_6__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_8__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_17VCFCallDataParser_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2752
 *         Py_ssize_t n_samples_out
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0,             # <<<<<<<<<<<<<<
 *                  n_samples_out=0):
 *         self.key = key
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_dtype = 0;
  PyObject *__pyx_v_number = 0;
  PyObject *__pyx_v_fill = 0;
  PyObject *__pyx_v_chunk_length = 0;
  PyObject *__pyx_v_n_samples_out = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_dtype,&__pyx_n_s_number,&__pyx_n_s_fill,&__pyx_n_s_chunk_length,&__pyx_n_s_n_samples_out,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    values[2] = ((PyObject *)__pyx_int_1);
    values[3] = ((PyObject *)__pyx_int_0);
    values[4] = ((PyObject *)__pyx_int_0);
    values[5] = ((PyObject *)__pyx_int_0);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_number);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fill);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chunk_length);
          if (value) { values[4] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples_out);
          if (value) { values[5] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2752, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_key = values[0];
    __pyx_v_dtype = values[1];
    __pyx_v_number = values[2];
    __pyx_v_fill = values[3];
    __pyx_v_chunk_length = values[4];
    __pyx_v_n_samples_out = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2752, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParserBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_self), __pyx_v_key, __pyx_v_dtype, __pyx_v_number, __pyx_v_fill, __pyx_v_chunk_length, __pyx_v_n_samples_out);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_dtype, PyObject *__pyx_v_number, PyObject *__pyx_v_fill, PyObject *__pyx_v_chunk_length, PyObject *__pyx_v_n_samples_out) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2754
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0,
 *                  n_samples_out=0):
 *         self.key = key             # <<<<<<<<<<<<<<
 *         if dtype is not None:
 *             self.dtype = np.dtype(dtype)
 */
  if (!(likely(PyBytes_CheckExact(__pyx_v_key))||((__pyx_v_key) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_key)->tp_name), 0))) __PYX_ERR(0, 2754, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_key;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->key);
  __Pyx_DECREF(__pyx_v_self->key);
  __pyx_v_self->key = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2755
 *                  n_samples_out=0):
 *         self.key = key
 *         if dtype is not None:             # <<<<<<<<<<<<<<
 *             self.dtype = np.dtype(dtype)
 *             self.itemsize = self.dtype.itemsize
 */
  __pyx_t_2 = (__pyx_v_dtype != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":2756
 *         self.key = key
 *         if dtype is not None:
 *             self.dtype = np.dtype(dtype)             # <<<<<<<<<<<<<<
 *             self.itemsize = self.dtype.itemsize
 *         else:
 */
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_v_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->dtype);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->dtype));
    __pyx_v_self->dtype = ((PyArray_Descr *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":2757
 *         if dtype is not None:
 *             self.dtype = np.dtype(dtype)
 *             self.itemsize = self.dtype.itemsize             # <<<<<<<<<<<<<<
 *         else:
 *             self.dtype = dtype
 */
    __pyx_t_4 = __pyx_v_self->dtype->elsize;
    __pyx_v_self->itemsize = __pyx_t_4;

    /* "variant_tools/io_vcf_read.pyx":2755
 *                  n_samples_out=0):
 *         self.key = key
 *         if dtype is not None:             # <<<<<<<<<<<<<<
 *             self.dtype = np.dtype(dtype)
 *             self.itemsize = self.dtype.itemsize
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":2759
 *             self.itemsize = self.dtype.itemsize
 *         else:
 *             self.dtype = dtype             # <<<<<<<<<<<<<<
 *             self.itemsize = 0
 *         self.number = number
 */
  /*else*/ {
    if (!(likely(((__pyx_v_dtype) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dtype, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(0, 2759, __pyx_L1_error)
    __pyx_t_1 = __pyx_v_dtype;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->dtype);
    __Pyx_DECREF(((PyObject *)__pyx_v_self->dtype));
    __pyx_v_self->dtype = ((PyArray_Descr *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":2760
 *         else:
 *             self.dtype = dtype
 *             self.itemsize = 0             # <<<<<<<<<<<<<<
 *         self.number = number
 * 
 */
    __pyx_v_self->itemsize = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":2761
 *             self.dtype = dtype
 *             self.itemsize = 0
 *         self.number = number             # <<<<<<<<<<<<<<
 * 
 *         self.fill = fill
 */
  __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_number); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2761, __pyx_L1_error)
  __pyx_v_self->number = __pyx_t_5;

  /* "variant_tools/io_vcf_read.pyx":2763
 *         self.number = number
 * 
 *         self.fill = fill             # <<<<<<<<<<<<<<
 *         self.chunk_length = chunk_length
 *         self.n_samples_out = n_samples_out
 */
  __Pyx_INCREF(__pyx_v_fill);
  __Pyx_GIVEREF(__pyx_v_fill);
  __Pyx_GOTREF(__pyx_v_self->fill);
  __Pyx_DECREF(__pyx_v_self->fill);
  __pyx_v_self->fill = __pyx_v_fill;

  /* "variant_tools/io_vcf_read.pyx":2764
 * 
 *         self.fill = fill
 *         self.chunk_length = chunk_length             # <<<<<<<<<<<<<<
 *         self.n_samples_out = n_samples_out
 * 
 */
  __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_chunk_length); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2764, __pyx_L1_error)
  __pyx_v_self->chunk_length = __pyx_t_5;

  /* "variant_tools/io_vcf_read.pyx":2765
 *         self.fill = fill
 *         self.chunk_length = chunk_length
 *         self.n_samples_out = n_samples_out             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n_samples_out); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 2765, __pyx_L1_error)
  __pyx_v_self->n_samples_out = __pyx_t_5;

  /* "variant_tools/io_vcf_read.pyx":2752
 *         Py_ssize_t n_samples_out
 * 
 *     def __init__(self, key=None, dtype=None, number=1, fill=0, chunk_length=0,             # <<<<<<<<<<<<<<
 *                  n_samples_out=0):
 *         self.key = key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParserBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2767
 *         self.n_samples_out = n_samples_out
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_malloc_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2770
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":2771
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'calldata/' + self.key
 *         else:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2771, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":2772
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:
 *             field = 'calldata/' + self.key             # <<<<<<<<<<<<<<
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_calldata_2, __pyx_v_self->key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":2771
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'calldata/' + self.key
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":2774
 *             field = 'calldata/' + self.key
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *         values = self.values[:limit]
 * 
 */
  /*else*/ {
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_self->key);
    __Pyx_GIVEREF(__pyx_v_self->key);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->key);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_calldata_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":2775
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]             # <<<<<<<<<<<<<<
 * 
 *         if self.number == 1:
 */
  __pyx_t_1 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_values = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2777
 *         values = self.values[:limit]
 * 
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=2)
 * 
 */
  __pyx_t_2 = ((__pyx_v_self->number == 1) != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":2778
 * 
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)             # <<<<<<<<<<<<<<
 * 
 *         chunk[field] = values
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_2) < 0) __PYX_ERR(0, 2778, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":2777
 *         values = self.values[:limit]
 * 
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=2)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":2780
 *             values = values.squeeze(axis=2)
 * 
 *         chunk[field] = values             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_v_values) < 0)) __PYX_ERR(0, 2780, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2770
 *         pass
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParserBase.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2782
 *         chunk[field] = values
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("parse", 0);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->n_samples_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->dtype));
  __Pyx_INCREF(__pyx_v_self->fill);
  __Pyx_GIVEREF(__pyx_v_self->fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->key);
  __Pyx_GIVEREF(__pyx_v_self->key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataParser); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_63491048);
    __Pyx_GIVEREF(__pyx_int_63491048);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_63491048);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataParserBase__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFCallDataParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_63491048);
    __Pyx_GIVEREF(__pyx_int_63491048);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_63491048);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParserBase.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataParserBase__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataParserBase__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataParserBase__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataParserBase, (type(self), 0x3c8cbe8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataParserBase__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataParserBase.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2788
 * cdef class VCFCallDataSkipParser(VCFCallDataParserBase):
 * 
 *     def __init__(self, key, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         super(VCFCallDataSkipParser, self).__init__(key=key)
 * 
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_key = 0;
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  if (PyTuple_GET_SIZE(__pyx_args) > 1) {
    __pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args));
    if (unlikely(!__pyx_v_args)) {
      __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
      __Pyx_RefNannyFinishContext();
      return -1;
    }
    __Pyx_GOTREF(__pyx_v_args);
  } else {
    __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple);
  }
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        default:
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "__init__") < 0)) __PYX_ERR(0, 2788, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) < 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_key = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2788, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataSkipParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *)__pyx_v_self), __pyx_v_key, __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, PyObject *__pyx_v_key, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2789
 * 
 *     def __init__(self, key, *args, **kwargs):
 *         super(VCFCallDataSkipParser, self).__init__(key=key)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_key, __pyx_v_key) < 0) __PYX_ERR(0, 2789, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":2788
 * cdef class VCFCallDataSkipParser(VCFCallDataParserBase):
 * 
 *     def __init__(self, key, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         super(VCFCallDataSkipParser, self).__init__(key=key)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataSkipParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2791
 *         super(VCFCallDataSkipParser, self).__init__(key=key)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         while stream.c != COLON and \
 *                 stream.c != TAB and \
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_parse(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2792
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         while stream.c != COLON and \             # <<<<<<<<<<<<<<
 *                 stream.c != TAB and \
 *                 stream.c != CR and \
 */
  while (1) {
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2793
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         while stream.c != COLON and \
 *                 stream.c != TAB and \             # <<<<<<<<<<<<<<
 *                 stream.c != CR and \
 *                 stream.c != LF and \
 */
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2794
 *         while stream.c != COLON and \
 *                 stream.c != TAB and \
 *                 stream.c != CR and \             # <<<<<<<<<<<<<<
 *                 stream.c != LF and \
 *                 stream.c != 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2795
 *                 stream.c != TAB and \
 *                 stream.c != CR and \
 *                 stream.c != LF and \             # <<<<<<<<<<<<<<
 *                 stream.c != 0:
 *             stream.advance()
 */
    __pyx_t_2 = ((__pyx_v_stream->c != __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":2796
 *                 stream.c != CR and \
 *                 stream.c != LF and \
 *                 stream.c != 0:             # <<<<<<<<<<<<<<
 *             stream.advance()
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c != 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (!__pyx_t_1) break;

    /* "variant_tools/io_vcf_read.pyx":2797
 *                 stream.c != LF and \
 *                 stream.c != 0:
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 2797, __pyx_L1_error)
  }

  /* "variant_tools/io_vcf_read.pyx":2791
 *         super(VCFCallDataSkipParser, self).__init__(key=key)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         while stream.c != COLON and \
 *                 stream.c != TAB and \
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataSkipParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2799
 *             stream.advance()
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk(CYTHON_UNUSED struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk *__pyx_optional_args) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
  }

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_5, 7, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_5 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_v__dict = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_6 = (__pyx_v__dict != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, None), state
 */
  /*else*/ {
    __pyx_t_6 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_7 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_6 != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_8 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_6 = (__pyx_t_8 != 0);
    __pyx_t_7 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_7;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, None), state
 *     else:
 */
  __pyx_t_7 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_7) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataSkipPa); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_63491048);
    __Pyx_GIVEREF(__pyx_int_63491048);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_63491048);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataSkipParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle_VCFCallDataSkipPa); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_63491048);
    __Pyx_GIVEREF(__pyx_int_63491048);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_63491048);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataSkipParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataSkipParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataSkipParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataSkipParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataSkipParser, (type(self), 0x3c8cbe8, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataSkipParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataSkipParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2808
 *         np.int8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2809
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int8) < 0)) __PYX_ERR(0, 2809, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2810
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2811
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2808
 *         np.int8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2813
 *         super(VCFGenotypeInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2814
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2814, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2813
 *         super(VCFGenotypeInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2816
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2817
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2818
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2818, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2819
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2819, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2820
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2820, __pyx_L1_error)
  {
      __pyx_t_5numpy_int8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int8_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2816
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeInt8Pa); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeInt8Pa); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2828
 *         np.int16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2829
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int16) < 0)) __PYX_ERR(0, 2829, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2830
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2831
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2828
 *         np.int16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2833
 *         super(VCFGenotypeInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2834
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2834, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2833
 *         super(VCFGenotypeInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2836
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int16_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2837
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2838
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2838, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2838, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2839
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2839, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2840
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int16(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2840, __pyx_L1_error)
  {
      __pyx_t_5numpy_int16_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int16_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2836
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeInt16P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeInt16P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2848
 *         np.int32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2849
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int32) < 0)) __PYX_ERR(0, 2849, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2850
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2851
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2848
 *         np.int32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2853
 *         super(VCFGenotypeInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2854
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2854, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2853
 *         super(VCFGenotypeInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2856
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2857
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2858
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2858, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2859
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2859, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2860
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int32(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2860, __pyx_L1_error)
  {
      __pyx_t_5numpy_int32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2856
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeInt32P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeInt32P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2868
 *         np.int64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2869
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int64) < 0)) __PYX_ERR(0, 2869, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2870
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2870, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2871
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFGenotypeInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2868
 *         np.int64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2873
 *         super(VCFGenotypeInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2874
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2874, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2873
 *         super(VCFGenotypeInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2876
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2877
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2878
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2878, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2878, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2879
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2879, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2880
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int64(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2880, __pyx_L1_error)
  {
      __pyx_t_5numpy_int64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2876
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeInt64P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeInt64P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2888
 *         np.uint8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2889
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU8.max)
 *         super(VCFGenotypeUInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint8) < 0)) __PYX_ERR(0, 2889, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2890
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeUInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2891
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 *         super(VCFGenotypeUInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2888
 *         np.uint8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2893
 *         super(VCFGenotypeUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2894
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2894, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2893
 *         super(VCFGenotypeUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2896
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2897
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2898
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2898, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2898, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2899
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2899, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2900
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2900, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint8_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2896
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt8P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt8P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2908
 *         np.uint16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2909
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU16.max)
 *         super(VCFGenotypeUInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint16) < 0)) __PYX_ERR(0, 2909, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2910
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeUInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2911
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 *         super(VCFGenotypeUInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2908
 *         np.uint16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2913
 *         super(VCFGenotypeUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2914
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2914, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2913
 *         super(VCFGenotypeUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2916
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint16_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2917
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2918
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2918, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2919
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2919, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2920
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint16(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2920, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint16_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint16_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2916
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt16); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt16); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2928
 *         np.uint32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2929
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU32.max)
 *         super(VCFGenotypeUInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint32) < 0)) __PYX_ERR(0, 2929, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2930
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeUInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU32); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2931
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 *         super(VCFGenotypeUInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2928
 *         np.uint32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2933
 *         super(VCFGenotypeUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2934
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2934, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2933
 *         super(VCFGenotypeUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2936
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2937
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2938
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2938, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2938, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2939
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2939, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2940
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint32(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2940, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2936
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt32); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt32); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2948
 *         np.uint64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":2949
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU64.max)
 *         super(VCFGenotypeUInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint64) < 0)) __PYX_ERR(0, 2949, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2950
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeUInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2951
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 *         super(VCFGenotypeUInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":2948
 *         np.uint64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2953
 *         super(VCFGenotypeUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":2954
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2954, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":2953
 *         super(VCFGenotypeUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":2956
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":2957
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":2958
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 2958, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":2959
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 2959, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":2960
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint64(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 2960, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":2956
 *         vcf_genotype_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt64); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt64); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeUInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_int8_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_int16_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_int32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_int64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_uint8_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_uint16_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_uint32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  long __pyx_v_cell;
  long __pyx_v_allele1;
  long __pyx_v_allele2;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_genotype_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3016
 *                             integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *         long cell=0
 *         long allele1=0
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3017
 *     cdef:
 *         Py_ssize_t value_index = 0
 *         long cell=0             # <<<<<<<<<<<<<<
 *         long allele1=0
 *         long allele2=0
 */
  __pyx_v_cell = 0;

  /* "variant_tools/io_vcf_read.pyx":3018
 *         Py_ssize_t value_index = 0
 *         long cell=0
 *         long allele1=0             # <<<<<<<<<<<<<<
 *         long allele2=0
 *     # reset temporary buffer
 */
  __pyx_v_allele1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3019
 *         long cell=0
 *         long allele1=0
 *         long allele2=0             # <<<<<<<<<<<<<<
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)
 */
  __pyx_v_allele2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3021
 *         long allele2=0
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3023
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3026
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             allele1=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             # value_index += 1
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3026, __pyx_L1_error)
      __pyx_v_allele1 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3029
 * 
 *             # value_index += 1
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3025
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             allele1=vcf_genotype_check(context, value_index)
 * 
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3032
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3033
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3034
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3035
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3037
 *                 stream.c == 0:
 *             # vcf_genotype_store(context, memory, value_index)
 *             allele2=vcf_genotype_check(context, value_index)             # <<<<<<<<<<<<<<
 * 
 *             if allele1+allele2==0:
 */
      __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(__pyx_v_context, __pyx_v_value_index); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3037, __pyx_L1_error)
      __pyx_v_allele2 = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
      __pyx_t_1 = (((__pyx_v_allele1 + __pyx_v_allele2) == 0) != 0);
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3040
 * 
 *             if allele1+allele2==0:
 *                 cell=0             # <<<<<<<<<<<<<<
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 */
        __pyx_v_cell = 0;

        /* "variant_tools/io_vcf_read.pyx":3039
 *             allele2=vcf_genotype_check(context, value_index)
 * 
 *             if allele1+allele2==0:             # <<<<<<<<<<<<<<
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3042
 *                 cell=0
 *             elif allele1==1 and allele2==1:
 *                 cell=2             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 */
        __pyx_v_cell = 2;

        /* "variant_tools/io_vcf_read.pyx":3041
 *             if allele1+allele2==0:
 *                 cell=0
 *             elif allele1==1 and allele2==1:             # <<<<<<<<<<<<<<
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L17_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_L17_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3044
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1             # <<<<<<<<<<<<<<
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 */
        __pyx_v_cell = 1;

        /* "variant_tools/io_vcf_read.pyx":3043
 *             elif allele1==1 and allele2==1:
 *                 cell=2
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 0) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L21_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_L21_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3046
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3             # <<<<<<<<<<<<<<
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 */
        __pyx_v_cell = 3;

        /* "variant_tools/io_vcf_read.pyx":3045
 *             elif (allele1==0 and allele2==1) or (allele1==1 and allele2==0):
 *                 cell=1
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):             # <<<<<<<<<<<<<<
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L24_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3048
 *                 cell=3
 *             elif allele1==2 and allele2==2:
 *                 cell=4             # <<<<<<<<<<<<<<
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 */
        __pyx_v_cell = 4;

        /* "variant_tools/io_vcf_read.pyx":3047
 *             elif (allele1==0 and allele2==2) or (allele1==2 and allele2==0):
 *                 cell=3
 *             elif allele1==2 and allele2==2:             # <<<<<<<<<<<<<<
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
      __pyx_t_2 = ((__pyx_v_allele1 == 1) != 0);
      if (!__pyx_t_2) {
        goto __pyx_L27_next_or;
      } else {
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 2) != 0);
      if (!__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_L27_next_or:;
      __pyx_t_2 = ((__pyx_v_allele1 == 2) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L26_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == 1) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3050
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1             # <<<<<<<<<<<<<<
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 */
        __pyx_v_cell = -1L;

        /* "variant_tools/io_vcf_read.pyx":3049
 *             elif allele1==2 and allele2==2:
 *                 cell=4
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):             # <<<<<<<<<<<<<<
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 */
        goto __pyx_L13;
      }

      /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      __pyx_t_2 = ((__pyx_v_allele1 == -10L) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L30_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_allele2 == -10L) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L30_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3052
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10             # <<<<<<<<<<<<<<
 *             break
 * 
 */
        __pyx_v_cell = -10L;

        /* "variant_tools/io_vcf_read.pyx":3051
 *             elif (allele1==1 and allele2==2) or (allele1==2 and allele2==1):
 *                 cell=-1
 *             elif allele1==-10 and allele2==-10:             # <<<<<<<<<<<<<<
 *                 cell=-10
 *             break
 */
      }
      __pyx_L13:;

      /* "variant_tools/io_vcf_read.pyx":3053
 *             elif allele1==-10 and allele2==-10:
 *                 cell=-10
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3031
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3056
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 *         stream.advance()
 * 
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3057
 *         else:
 *             CharVector_append(&context.temp, stream.c)
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3057, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3059
 *         stream.advance()
 * 
 *     memory[context.chunk_variant_index, context.sample_output_index, value_index] = cell             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = __pyx_v_context->chunk_variant_index;
  __pyx_t_5 = __pyx_v_context->sample_output_index;
  __pyx_t_6 = __pyx_v_value_index;
  *((__pyx_t_5numpy_uint64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) = __pyx_v_cell;

  /* "variant_tools/io_vcf_read.pyx":3012
 * 
 * 
 * cdef int vcf_genotype_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                             VCFContext context,
 *                             integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3062
 * 
 * 
 * cdef int vcf_genotype_check(VCFContext context,             # <<<<<<<<<<<<<<
 *                             Py_ssize_t value_index) except -1:  # nogil
 *     cdef:
 */

static int __pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_check(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, CYTHON_UNUSED Py_ssize_t __pyx_v_value_index) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("vcf_genotype_check", 0);

  /* "variant_tools/io_vcf_read.pyx":3069
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 *     if parsed>0:
 *         return allele
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3069, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3070
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)
 *     if parsed>0:             # <<<<<<<<<<<<<<
 *         return allele
 *     else:
 */
  __pyx_t_2 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3071
 *     parsed = vcf_strtol(&context.temp, context, &allele)
 *     if parsed>0:
 *         return allele             # <<<<<<<<<<<<<<
 *     else:
 *         return -10
 */
    __pyx_r = __pyx_v_allele;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3070
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)
 *     if parsed>0:             # <<<<<<<<<<<<<<
 *         return allele
 *     else:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3073
 *         return allele
 *     else:
 *         return -10             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __pyx_r = -10;
    goto __pyx_L0;
  }

  /* "variant_tools/io_vcf_read.pyx":3062
 * 
 * 
 * cdef int vcf_genotype_check(VCFContext context,             # <<<<<<<<<<<<<<
 *                             Py_ssize_t value_index) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_check", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3104
 *         np.int8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3105
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int8) < 0)) __PYX_ERR(0, 3105, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3106
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3106, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3107
 *         kwargs['dtype'] = 'int8'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3104
 *         np.int8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3109
 *         super(VCFGenotypeACInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3110
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3110, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3109
 *         super(VCFGenotypeACInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3112
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3113
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3114
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3114, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3114, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3115
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3115, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3116
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_int8_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int8_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3112
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt8); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3124
 *         np.int16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3125
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int16) < 0)) __PYX_ERR(0, 3125, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3126
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3126, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3127
 *         kwargs['dtype'] = 'int16'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3124
 *         np.int16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3129
 *         super(VCFGenotypeACInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3130
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3130, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3129
 *         super(VCFGenotypeACInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3132
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3133
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3134
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3134, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3135
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3135, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3136
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_int16_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int16_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3132
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3144
 *         np.int32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3145
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int32) < 0)) __PYX_ERR(0, 3145, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3146
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3146, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3147
 *         kwargs['dtype'] = 'int32'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3144
 *         np.int32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3149
 *         super(VCFGenotypeACInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3150
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3150, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3149
 *         super(VCFGenotypeACInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3152
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3153
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3154
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3154, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3154, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3155
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3155, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3156
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_int32_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3152
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3164
 *         np.int64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3165
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int64) < 0)) __PYX_ERR(0, 3165, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3166
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3166, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3167
 *         kwargs['dtype'] = 'int64'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3164
 *         np.int64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3169
 *         super(VCFGenotypeACInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3170
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3170, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3169
 *         super(VCFGenotypeACInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3172
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3173
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3174
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3174, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3175
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3175, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3176
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_int64_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3172
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt6); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3184
 *         np.uint8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3185
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint8) < 0)) __PYX_ERR(0, 3185, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3186
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACUInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3186, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3187
 *         kwargs['dtype'] = 'uint8'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3184
 *         np.uint8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3189
 *         super(VCFGenotypeACUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3190
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3190, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3189
 *         super(VCFGenotypeACUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3192
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3193
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3194
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3194, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3195
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3195, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3196
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_uint8_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint8_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3192
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3204
 *         np.uint16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3205
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint16) < 0)) __PYX_ERR(0, 3205, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3206
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACUInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3206, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3207
 *         kwargs['dtype'] = 'uint16'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3204
 *         np.uint16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3209
 *         super(VCFGenotypeACUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3210
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3210, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3209
 *         super(VCFGenotypeACUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3212
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3213
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3214
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3214, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3215
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3215, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3216
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_uint16_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint16_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3212
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3224
 *         np.uint32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3225
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint32) < 0)) __PYX_ERR(0, 3225, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3226
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACUInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3226, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3227
 *         kwargs['dtype'] = 'uint32'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3224
 *         np.uint32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3229
 *         super(VCFGenotypeACUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3230
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3230, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3229
 *         super(VCFGenotypeACUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3232
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3233
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3234
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3234, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3234, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3235
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3235, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3236
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_uint32_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3232
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3244
 *         np.uint64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs['fill'] = 0
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3245
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'             # <<<<<<<<<<<<<<
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint64) < 0)) __PYX_ERR(0, 3245, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3246
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'
 *         kwargs['fill'] = 0             # <<<<<<<<<<<<<<
 *         super(VCFGenotypeACUInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_0) < 0)) __PYX_ERR(0, 3246, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3247
 *         kwargs['dtype'] = 'uint64'
 *         kwargs['fill'] = 0
 *         super(VCFGenotypeACUInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3244
 *         np.uint64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs['fill'] = 0
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3249
 *         super(VCFGenotypeACUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3250
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_genotype_ac_parse(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3250, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3249
 *         super(VCFGenotypeACUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3252
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3253
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3254
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3254, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3255
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = 0
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3255, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3256
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  {
      __pyx_t_5numpy_uint64_t __pyx_temp_scalar = 0;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3252
 *         vcf_genotype_ac_parse(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFGenotypeACUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFGenotypeACUInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_genotype_ac_parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3263
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3265
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_SLASH) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_PIPE) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3268
 * 
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 * 
 */
      __pyx_t_3 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3268, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3269
 *         if stream.c == SLASH or stream.c == PIPE:
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3267
 *     while True:
 * 
 *         if stream.c == SLASH or stream.c == PIPE:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3272
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3273
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3274
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3275
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_genotype_ac_store(context, memory)
 *             break
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3276
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_3 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(__pyx_v_context, __pyx_v_memory); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3276, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3277
 *                 stream.c == 0:
 *             vcf_genotype_ac_store(context, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3271
 *             CharVector_clear(&context.temp)
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3280
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3282
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3282, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3259
 * 
 * 
 * cdef int vcf_genotype_ac_parse(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                VCFContext context,
 *                                integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_int8_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_int16_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_int32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_int64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_uint8_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_uint16_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_uint32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_genotype_ac_store(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_allele;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_genotype_ac_store", 0);

  /* "variant_tools/io_vcf_read.pyx":3292
 * 
 *     # attempt to parse allele
 *     parsed = vcf_strtol(&context.temp, context, &allele)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_allele)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3292, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_1;

  /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  __pyx_t_3 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((__pyx_v_allele < (__pyx_v_memory.shape[2])) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3296
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __pyx_v_context->chunk_variant_index;
    __pyx_t_5 = __pyx_v_context->sample_output_index;
    __pyx_t_6 = __pyx_v_allele;
    *((__pyx_t_5numpy_uint64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_4 * __pyx_v_memory.strides[0]) ) + __pyx_t_5 * __pyx_v_memory.strides[1]) ) + __pyx_t_6 * __pyx_v_memory.strides[2]) )) += 1;

    /* "variant_tools/io_vcf_read.pyx":3295
 * 
 *     # store value
 *     if parsed > 0 and allele < memory.shape[2]:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, allele] += 1
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3285
 * 
 * 
 * cdef int vcf_genotype_ac_store(VCFContext context,             # <<<<<<<<<<<<<<
 *                                integer[:, :, :] memory) except -1:  # nogil
 *     cdef:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_genotype_ac_store", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3303
 *     cdef np.int8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3304
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int8) < 0)) __PYX_ERR(0, 3304, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3305
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3306
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3303
 *     cdef np.int8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int8'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3308
 *         super(VCFCallDataInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3309
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3309, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3308
 *         super(VCFCallDataInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3311
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3312
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3313
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3313, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3313, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3314
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3314, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3315
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3315, __pyx_L1_error)
  {
      __pyx_t_5numpy_int8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int8_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3311
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataInt8Pa); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataInt8Pa); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3322
 *     cdef np.int16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3323
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int16) < 0)) __PYX_ERR(0, 3323, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3324
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3325
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3322
 *     cdef np.int16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int16'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3327
 *         super(VCFCallDataInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3328
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3328, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3327
 *         super(VCFCallDataInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3330
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int16_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3331
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3332
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3332, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3332, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3333
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3333, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3334
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int16(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3334, __pyx_L1_error)
  {
      __pyx_t_5numpy_int16_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int16_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3330
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataInt16P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataInt16P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3341
 *     cdef np.int32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3342
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int32) < 0)) __PYX_ERR(0, 3342, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3343
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3344
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3341
 *     cdef np.int32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int32'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3346
 *         super(VCFCallDataInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3347
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3347, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3346
 *         super(VCFCallDataInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3349
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3350
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3351
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3351, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3352
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3352, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3353
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int32(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3353, __pyx_L1_error)
  {
      __pyx_t_5numpy_int32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3349
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataInt32P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataInt32P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3360
 *     cdef np.int64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3361
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_int64) < 0)) __PYX_ERR(0, 3361, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3362
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_int_neg_1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3363
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 *         super(VCFCallDataInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3360
 *     cdef np.int64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'int64'
 *         kwargs.setdefault('fill', -1)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3365
 *         super(VCFCallDataInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3366
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3366, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3365
 *         super(VCFCallDataInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3368
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_int64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3369
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3370
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3370, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3370, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3371
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3371, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3372
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_int64(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_int64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3372, __pyx_L1_error)
  {
      __pyx_t_5numpy_int64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_int64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3368
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataInt64P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataInt64P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3379
 *     cdef np.uint8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3380
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU8.max)
 *         super(VCFCallDataUInt8Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint8) < 0)) __PYX_ERR(0, 3380, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3381
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataUInt8Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3382
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 *         super(VCFCallDataUInt8Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3379
 *     cdef np.uint8_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint8'
 *         kwargs.setdefault('fill', IU8.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt8Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3384
 *         super(VCFCallDataUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3385
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3385, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3384
 *         super(VCFCallDataUInt8Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt8Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3387
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint8_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3388
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3389
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3389, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3389, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3390
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3390, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3391
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint8(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint8)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3391, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint8_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint8_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3387
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt8Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataUInt8P); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt8Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataUInt8P); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt8Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt8Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt8Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt8Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt8Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt8Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt8Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3398
 *     cdef np.uint16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3399
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU16.max)
 *         super(VCFCallDataUInt16Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint16) < 0)) __PYX_ERR(0, 3399, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3400
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataUInt16Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3401
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 *         super(VCFCallDataUInt16Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3398
 *     cdef np.uint16_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint16'
 *         kwargs.setdefault('fill', IU16.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt16Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3403
 *         super(VCFCallDataUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3404
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3404, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3403
 *         super(VCFCallDataUInt16Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt16Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3406
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint16_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3407
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3408
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3408, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3409
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3409, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3410
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint16(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint16)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3410, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint16_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint16_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3406
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt16Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataUInt16); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt16Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataUInt16); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt16Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt16Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt16Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt16Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt16Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt16Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt16Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3417
 *     cdef np.uint32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3418
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU32.max)
 *         super(VCFCallDataUInt32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint32) < 0)) __PYX_ERR(0, 3418, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3419
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataUInt32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU32); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3420
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 *         super(VCFCallDataUInt32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3417
 *     cdef np.uint32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint32'
 *         kwargs.setdefault('fill', IU32.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3422
 *         super(VCFCallDataUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3423
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3423, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3422
 *         super(VCFCallDataUInt32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3425
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3426
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3427
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3427, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3428
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3428, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3429
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint32(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3429, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3425
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataUInt32); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataUInt32); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3436
 *     cdef np.uint64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3437
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', IU64.max)
 *         super(VCFCallDataUInt64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_uint64) < 0)) __PYX_ERR(0, 3437, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3438
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataUInt64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_IU64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_max); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3439
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 *         super(VCFCallDataUInt64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3436
 *     cdef np.uint64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'uint64'
 *         kwargs.setdefault('fill', IU64.max)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3441
 *         super(VCFCallDataUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3442
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_integer(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3442, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3441
 *         super(VCFCallDataUInt64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3444
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_uint64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3445
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3446
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3446, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3447
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3447, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3448
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __Pyx_PyInt_As_npy_uint64(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_uint64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3448, __pyx_L1_error)
  {
      __pyx_t_5numpy_uint64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_uint64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3444
 *         vcf_calldata_parse_integer(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataUInt64); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataUInt64); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataUInt64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataUInt64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataUInt64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataUInt64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3455
 *     cdef np.float32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3456
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float32'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFCallDataFloat32Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_float32) < 0)) __PYX_ERR(0, 3456, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3457
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataFloat32Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3458
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFCallDataFloat32Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3455
 *     cdef np.float32_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float32'
 *         kwargs.setdefault('fill', NAN)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat32Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3460
 *         super(VCFCallDataFloat32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3461
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_floating(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_floating(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3461, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3460
 *         super(VCFCallDataFloat32Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat32Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3463
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_float32_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3464
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3465
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3465, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3465, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3466
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float32_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3466, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3467
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __pyx_PyFloat_AsFloat(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_float32)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3467, __pyx_L1_error)
  {
      __pyx_t_5numpy_float32_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_float32_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3463
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat32Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_float32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_float32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataFloat3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataFloat32Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataFloat3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat32Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataFloat32Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataFloat32Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat32Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat32Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataFloat32Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat32Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3474
 *     cdef np.float64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3475
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float64'             # <<<<<<<<<<<<<<
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFCallDataFloat64Parser, self).__init__(*args, **kwargs)
 */
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_n_s_float64) < 0)) __PYX_ERR(0, 3475, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3476
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)             # <<<<<<<<<<<<<<
 *         super(VCFCallDataFloat64Parser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_SetDefault(__pyx_v_kwargs, __pyx_n_s_fill, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3477
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)
 *         super(VCFCallDataFloat64Parser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3474
 *     cdef np.float64_t[:, :, :] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = 'float64'
 *         kwargs.setdefault('fill', NAN)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat64Parser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3479
 *         super(VCFCallDataFloat64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3480
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil
 *         vcf_calldata_parse_floating(stream, context, self.memory)             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
  __pyx_t_1 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_floating(__pyx_v_stream, __pyx_v_context, __pyx_v_self->memory); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 3480, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3479
 *         super(VCFCallDataFloat64Parser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self, InputStreamBase stream, VCFContext context) except -1:  # nogil             # <<<<<<<<<<<<<<
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat64Parser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3482
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __pyx_t_5numpy_float64_t __pyx_t_6;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3483
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3484
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values
 *         self.memory[:] = self.fill
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3484, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3485
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values             # <<<<<<<<<<<<<<
 *         self.memory[:] = self.fill
 * 
 */
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float64_t(((PyObject *)__pyx_v_self->__pyx_base.values), PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3485, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3486
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.memory = self.values
 *         self.memory[:] = self.fill             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_6 = __pyx_PyFloat_AsDouble(__pyx_v_self->__pyx_base.fill); if (unlikely((__pyx_t_6 == ((npy_float64)-1)) && PyErr_Occurred())) __PYX_ERR(0, 3486, __pyx_L1_error)
  {
      __pyx_t_5numpy_float64_t __pyx_temp_scalar = __pyx_t_6;
      {
          Py_ssize_t __pyx_temp_extent_0 = __pyx_v_self->memory.shape[0];
          Py_ssize_t __pyx_temp_stride_0 = __pyx_v_self->memory.strides[0];
          char *__pyx_temp_pointer_0;
          Py_ssize_t __pyx_temp_idx_0;
          Py_ssize_t __pyx_temp_extent_1 = __pyx_v_self->memory.shape[1];
          Py_ssize_t __pyx_temp_stride_1 = __pyx_v_self->memory.strides[1];
          char *__pyx_temp_pointer_1;
          Py_ssize_t __pyx_temp_idx_1;
          Py_ssize_t __pyx_temp_extent_2 = __pyx_v_self->memory.shape[2];
          Py_ssize_t __pyx_temp_stride_2 = __pyx_v_self->memory.strides[2];
          char *__pyx_temp_pointer_2;
          Py_ssize_t __pyx_temp_idx_2;
          __pyx_temp_pointer_0 = __pyx_v_self->memory.data;
          for (__pyx_temp_idx_0 = 0; __pyx_temp_idx_0 < __pyx_temp_extent_0; __pyx_temp_idx_0++) {
            __pyx_temp_pointer_1 = __pyx_temp_pointer_0;
            for (__pyx_temp_idx_1 = 0; __pyx_temp_idx_1 < __pyx_temp_extent_1; __pyx_temp_idx_1++) {
              __pyx_temp_pointer_2 = __pyx_temp_pointer_1;
              for (__pyx_temp_idx_2 = 0; __pyx_temp_idx_2 < __pyx_temp_extent_2; __pyx_temp_idx_2++) {
                *((__pyx_t_5numpy_float64_t *) __pyx_temp_pointer_2) = __pyx_temp_scalar;
                __pyx_temp_pointer_2 += __pyx_temp_stride_2;
              }
              __pyx_temp_pointer_1 += __pyx_temp_stride_1;
            }
            __pyx_temp_pointer_0 += __pyx_temp_stride_0;
          }
      }
  }

  /* "variant_tools/io_vcf_read.pyx":3482
 *         vcf_calldata_parse_floating(stream, context, self.memory)
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat64Parser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 3, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_float64_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_float64_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataFloat6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataFloat64Parser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataFloat6); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat64Parser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataFloat64Parser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataFloat64Parser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat64Parser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataFloat64Parser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataFloat64Parser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataFloat64Parser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_calldata_parse_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3494
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3497
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3499
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3502
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3502, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3503
 *         if stream.c == COMMA:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3504
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3501
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3507
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3508
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3509
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3510
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3511
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3511, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3512
 *                 stream.c == 0:
 *             vcf_calldata_store_integer(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3506
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3515
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3517
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3517, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3489
 * 
 * 
 * cdef int vcf_calldata_parse_integer(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                     VCFContext context,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int8_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int16_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_2__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_2vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_3__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_3vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_int64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_4__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_4vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint8_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_5__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_5vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint16_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_6__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_6vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_7__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_integer(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  long __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_7vcf_calldata_store_integer", 0);

  /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3529
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3527
 *         long value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3531
 *         return 0
 * 
 *     parsed = vcf_strtol(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3531, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3535
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_uint64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3534
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3520
 * 
 * 
 * cdef int vcf_calldata_store_integer(VCFContext context,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t value_index,
 *                                     integer[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_integer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3538
 * 
 * 
 * cdef int vcf_calldata_parse_floating(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                      VCFContext context,
 *                                      floating[:, :, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_calldata_parse_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":3543
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3546
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3548
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3550
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3551
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3551, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3552
 *         if stream.c == COMMA:
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3553
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3550
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3555
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3556
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3557
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3558
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_floating(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3559
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3555
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3560
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3560, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3561
 *                 stream.c == 0:
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3555
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3564
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3566
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3566, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3538
 * 
 * 
 * cdef int vcf_calldata_parse_floating(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                      VCFContext context,
 *                                      floating[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_parse_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_value_index;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_calldata_parse_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":3543
 * 
 *     cdef:
 *         Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *     # reset temporary buffer
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3546
 * 
 *     # reset temporary buffer
 *     CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *     while True:
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3548
 *     CharVector_clear(&context.temp)
 * 
 *     while True:             # <<<<<<<<<<<<<<
 * 
 *         if stream.c == COMMA:
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3550
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3551
 * 
 *         if stream.c == COMMA:
 *             vcf_calldata_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             CharVector_clear(&context.temp)
 *             value_index += 1
 */
      __pyx_t_2 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3551, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3552
 *         if stream.c == COMMA:
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *             value_index += 1
 * 
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3553
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 *             value_index += 1             # <<<<<<<<<<<<<<
 * 
 *         elif stream.c == COLON or \
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3550
 *     while True:
 * 
 *         if stream.c == COMMA:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             CharVector_clear(&context.temp)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3555
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3556
 * 
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3557
 *         elif stream.c == COLON or \
 *                 stream.c == TAB or \
 *                 stream.c == LF or \             # <<<<<<<<<<<<<<
 *                 stream.c == CR or \
 *                 stream.c == 0:
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3558
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 *                 stream.c == CR or \             # <<<<<<<<<<<<<<
 *                 stream.c == 0:
 *             vcf_calldata_store_floating(context, value_index, memory)
 */
    __pyx_t_3 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3559
 *                 stream.c == LF or \
 *                 stream.c == CR or \
 *                 stream.c == 0:             # <<<<<<<<<<<<<<
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             break
 */
    __pyx_t_3 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3555
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3560
 *                 stream.c == CR or \
 *                 stream.c == 0:
 *             vcf_calldata_store_floating(context, value_index, memory)             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_t_2 = __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(__pyx_v_context, __pyx_v_value_index, __pyx_v_memory); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3560, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":3561
 *                 stream.c == 0:
 *             vcf_calldata_store_floating(context, value_index, memory)
 *             break             # <<<<<<<<<<<<<<
 * 
 *         else:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3555
 *             value_index += 1
 * 
 *         elif stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                 stream.c == TAB or \
 *                 stream.c == LF or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3564
 * 
 *         else:
 *             CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *         stream.advance()
 */
    /*else*/ {
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3566
 *             CharVector_append(&context.temp, stream.c)
 * 
 *         stream.advance()             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3566, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3538
 * 
 * 
 * cdef int vcf_calldata_parse_floating(InputStreamBase stream,             # <<<<<<<<<<<<<<
 *                                      VCFContext context,
 *                                      floating[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_parse_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3569
 * 
 * 
 * cdef int vcf_calldata_store_floating(VCFContext context,             # <<<<<<<<<<<<<<
 *                                      Py_ssize_t value_index,
 *                                      floating[:, :, :] memory) except -1:  # nogil
 */

static int __pyx_fuse_0__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  double __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_0vcf_calldata_store_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":3576
 *         double value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3578
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtod(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3576
 *         double value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3580
 *         return 0
 * 
 *     parsed = vcf_strtod(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3580, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3583
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3584
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_float32_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3583
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3569
 * 
 * 
 * cdef int vcf_calldata_store_floating(VCFContext context,             # <<<<<<<<<<<<<<
 *                                      Py_ssize_t value_index,
 *                                      floating[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_fuse_1__pyx_f_13variant_tools_11io_vcf_read_vcf_calldata_store_floating(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, Py_ssize_t __pyx_v_value_index, __Pyx_memviewslice __pyx_v_memory) {
  Py_ssize_t __pyx_v_parsed;
  double __pyx_v_value;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("__pyx_fuse_1vcf_calldata_store_floating", 0);

  /* "variant_tools/io_vcf_read.pyx":3576
 *         double value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value_index >= (__pyx_v_memory.shape[2])) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3578
 *     if value_index >= memory.shape[2]:
 *         # more values than we have room for, ignore
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     parsed = vcf_strtod(&context.temp, context, &value)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3576
 *         double value
 * 
 *     if value_index >= memory.shape[2]:             # <<<<<<<<<<<<<<
 *         # more values than we have room for, ignore
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3580
 *         return 0
 * 
 *     parsed = vcf_strtod(&context.temp, context, &value)             # <<<<<<<<<<<<<<
 * 
 *     # store value
 */
  __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod((&__pyx_v_context->temp), __pyx_v_context, (&__pyx_v_value)); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 3580, __pyx_L1_error)
  __pyx_v_parsed = __pyx_t_2;

  /* "variant_tools/io_vcf_read.pyx":3583
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3584
 *     # store value
 *     if parsed > 0:
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_v_context->chunk_variant_index;
    __pyx_t_4 = __pyx_v_context->sample_output_index;
    __pyx_t_5 = __pyx_v_value_index;
    *((__pyx_t_5numpy_float64_t *) ( /* dim=2 */ (( /* dim=1 */ (( /* dim=0 */ (__pyx_v_memory.data + __pyx_t_3 * __pyx_v_memory.strides[0]) ) + __pyx_t_4 * __pyx_v_memory.strides[1]) ) + __pyx_t_5 * __pyx_v_memory.strides[2]) )) = __pyx_v_value;

    /* "variant_tools/io_vcf_read.pyx":3583
 * 
 *     # store value
 *     if parsed > 0:             # <<<<<<<<<<<<<<
 *         memory[context.chunk_variant_index, context.sample_output_index, value_index] = value
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3569
 * 
 * 
 * cdef int vcf_calldata_store_floating(VCFContext context,             # <<<<<<<<<<<<<<
 *                                      Py_ssize_t value_index,
 *                                      floating[:, :, :] memory) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_calldata_store_floating", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3591
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))
 *         super(VCFCallDataStringParser, self).__init__(*args, **kwargs)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3592
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))             # <<<<<<<<<<<<<<
 *         super(VCFCallDataStringParser, self).__init__(*args, **kwargs)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kwargs, __pyx_n_s_dtype, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_t_1) < 0)) __PYX_ERR(0, 3592, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3593
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))
 *         super(VCFCallDataStringParser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self,
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3591
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = check_string_dtype(kwargs.get('dtype'))
 *         super(VCFCallDataStringParser, self).__init__(*args, **kwargs)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataStringParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3595
 *         super(VCFCallDataStringParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self,             # <<<<<<<<<<<<<<
 *                    InputStreamBase stream,
 *                    VCFContext context) except -1:  # nogil
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_value_index;
  Py_ssize_t __pyx_v_memory_offset;
  Py_ssize_t __pyx_v_memory_index;
  Py_ssize_t __pyx_v_chars_stored;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  char __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3599
 *                    VCFContext context) except -1:  # nogil
 *         cdef:
 *             Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 *             # index into memory view
 *             Py_ssize_t memory_offset, memory_index
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3603
 *             Py_ssize_t memory_offset, memory_index
 *             # number of characters read into current value
 *             Py_ssize_t chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *         # initialise memory index
 */
  __pyx_v_chars_stored = 0;

  /* "variant_tools/io_vcf_read.pyx":3609
 *                          self.n_samples_out *
 *                          self.number *
 *                          self.itemsize) +             # <<<<<<<<<<<<<<
 *                          (context.sample_output_index *
 *                           self.number *
 */
  __pyx_v_memory_offset = ((((__pyx_v_context->chunk_variant_index * __pyx_v_self->__pyx_base.n_samples_out) * __pyx_v_self->__pyx_base.number) * __pyx_v_self->__pyx_base.itemsize) + ((__pyx_v_context->sample_output_index * __pyx_v_self->__pyx_base.number) * __pyx_v_self->__pyx_base.itemsize));

  /* "variant_tools/io_vcf_read.pyx":3613
 *                           self.number *
 *                           self.itemsize))
 *         memory_index = memory_offset             # <<<<<<<<<<<<<<
 * 
 *         # read characters until tab
 */
  __pyx_v_memory_index = __pyx_v_memory_offset;

  /* "variant_tools/io_vcf_read.pyx":3616
 * 
 *         # read characters until tab
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == TAB or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3618
 *         while True:
 * 
 *             if stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3619
 * 
 *             if stream.c == TAB or \
 *                     stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                     stream.c == CR or \
 *                     stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3620
 *             if stream.c == TAB or \
 *                     stream.c == COLON or \
 *                     stream.c == CR or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3621
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 *                     stream.c == LF or \             # <<<<<<<<<<<<<<
 *                     stream.c == 0:
 *                 return 1
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3622
 *                     stream.c == CR or \
 *                     stream.c == LF or \
 *                     stream.c == 0:             # <<<<<<<<<<<<<<
 *                 return 1
 * 
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3618
 *         while True:
 * 
 *             if stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3623
 *                     stream.c == LF or \
 *                     stream.c == 0:
 *                 return 1             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA:
 */
      __pyx_r = 1;
      goto __pyx_L0;

      /* "variant_tools/io_vcf_read.pyx":3618
 *         while True:
 * 
 *             if stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3625
 *                 return 1
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 value_index += 1
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3627
 *             elif stream.c == COMMA:
 *                 # advance value index
 *                 value_index += 1             # <<<<<<<<<<<<<<
 *                 # set memory index to beginning of next item
 *                 memory_index = memory_offset + (value_index * self.itemsize)
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3629
 *                 value_index += 1
 *                 # set memory index to beginning of next item
 *                 memory_index = memory_offset + (value_index * self.itemsize)             # <<<<<<<<<<<<<<
 *                 # reset chars stored
 *                 chars_stored = 0
 */
      __pyx_v_memory_index = (__pyx_v_memory_offset + (__pyx_v_value_index * __pyx_v_self->__pyx_base.itemsize));

      /* "variant_tools/io_vcf_read.pyx":3631
 *                 memory_index = memory_offset + (value_index * self.itemsize)
 *                 # reset chars stored
 *                 chars_stored = 0             # <<<<<<<<<<<<<<
 * 
 *             elif chars_stored < self.itemsize and value_index < self.number:
 */
      __pyx_v_chars_stored = 0;

      /* "variant_tools/io_vcf_read.pyx":3625
 *                 return 1
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 value_index += 1
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3633
 *                 chars_stored = 0
 * 
 *             elif chars_stored < self.itemsize and value_index < self.number:             # <<<<<<<<<<<<<<
 *                 # store value
 *                 self.memory[memory_index] = stream.c
 */
    __pyx_t_2 = ((__pyx_v_chars_stored < __pyx_v_self->__pyx_base.itemsize) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L11_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L11_bool_binop_done:;
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3635
 *             elif chars_stored < self.itemsize and value_index < self.number:
 *                 # store value
 *                 self.memory[memory_index] = stream.c             # <<<<<<<<<<<<<<
 *                 # advance memory index
 *                 memory_index += 1
 */
      __pyx_t_3 = __pyx_v_stream->c;
      __pyx_t_4 = __pyx_v_memory_index;
      *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ (__pyx_v_self->memory.data + __pyx_t_4 * __pyx_v_self->memory.strides[0]) )) = __pyx_t_3;

      /* "variant_tools/io_vcf_read.pyx":3637
 *                 self.memory[memory_index] = stream.c
 *                 # advance memory index
 *                 memory_index += 1             # <<<<<<<<<<<<<<
 *                 # advance number of characters stored
 *                 chars_stored += 1
 */
      __pyx_v_memory_index = (__pyx_v_memory_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3639
 *                 memory_index += 1
 *                 # advance number of characters stored
 *                 chars_stored += 1             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
      __pyx_v_chars_stored = (__pyx_v_chars_stored + 1);

      /* "variant_tools/io_vcf_read.pyx":3633
 *                 chars_stored = 0
 * 
 *             elif chars_stored < self.itemsize and value_index < self.number:             # <<<<<<<<<<<<<<
 *                 # store value
 *                 self.memory[memory_index] = stream.c
 */
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3642
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_5 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 3642, __pyx_L1_error)
  }

  /* "variant_tools/io_vcf_read.pyx":3595
 *         super(VCFCallDataStringParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self,             # <<<<<<<<<<<<<<
 *                    InputStreamBase stream,
 *                    VCFContext context) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataStringParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3644
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3645
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.zeros(shape, dtype=self.dtype)
 *         self.memory = self.values.reshape(-1).view('u1')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3646
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.memory = self.values.reshape(-1).view('u1')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_zeros); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3646, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3646, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3647
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)
 *         self.memory = self.values.reshape(-1).view('u1')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_reshape); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_int_neg_1) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_int_neg_1);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_view); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_2, __pyx_n_s_u1) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_s_u1);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(__pyx_t_1, PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 3647, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_XDEC_MEMVIEW(&__pyx_v_self->memory, 0);
  __pyx_v_self->memory = __pyx_t_5;
  __pyx_t_5.memview = NULL;
  __pyx_t_5.data = NULL;

  /* "variant_tools/io_vcf_read.pyx":3644
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.zeros(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataStringParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3649
 *         self.memory = self.values.reshape(-1).view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":3650
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'calldata/' + self.key
 *         else:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3650, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3651
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:
 *             field = 'calldata/' + self.key             # <<<<<<<<<<<<<<
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_calldata_2, __pyx_v_self->__pyx_base.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":3650
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'calldata/' + self.key
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":3653
 *             field = 'calldata/' + self.key
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *         values = self.values[:limit]
 *         if self.number == 1:
 */
  /*else*/ {
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
    __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->__pyx_base.key);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_calldata_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":3654
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]             # <<<<<<<<<<<<<<
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)
 */
  __pyx_t_1 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->__pyx_base.values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_values = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3655
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=2)
 *         chunk[field] = values
 */
  __pyx_t_2 = ((__pyx_v_self->__pyx_base.number == 1) != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3656
 *         values = self.values[:limit]
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)             # <<<<<<<<<<<<<<
 *         chunk[field] = values
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_2) < 0) __PYX_ERR(0, 3656, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":3655
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=2)
 *         chunk[field] = values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3657
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)
 *         chunk[field] = values             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_v_values) < 0)) __PYX_ERR(0, 3657, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3649
 *         self.memory = self.values.reshape(-1).view('u1')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataStringParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataString); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataStringParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataString); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataStringParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataStringParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataStringParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataStringParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataStringParser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataStringParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataStringParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3664
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = np.dtype('object')
 *         super(VCFCallDataObjectParser, self).__init__(*args, **kwargs)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kwargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":3665
 * 
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = np.dtype('object')             # <<<<<<<<<<<<<<
 *         super(VCFCallDataObjectParser, self).__init__(*args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(PyDict_SetItem(__pyx_v_kwargs, __pyx_n_s_dtype, __pyx_t_1) < 0)) __PYX_ERR(0, 3665, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3666
 *     def __init__(self, *args, **kwargs):
 *         kwargs['dtype'] = np.dtype('object')
 *         super(VCFCallDataObjectParser, self).__init__(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     cdef int parse(self,
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser));
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3664
 *     cdef np.uint8_t[:] memory
 * 
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         kwargs['dtype'] = np.dtype('object')
 *         super(VCFCallDataObjectParser, self).__init__(*args, **kwargs)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataObjectParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3668
 *         super(VCFCallDataObjectParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self,             # <<<<<<<<<<<<<<
 *                    InputStreamBase stream,
 *                    VCFContext context) except -1:  # nogil
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_parse(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v_stream, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_value_index;
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("parse", 0);

  /* "variant_tools/io_vcf_read.pyx":3672
 *                    VCFContext context) except -1:  # nogil
 *         cdef:
 *             Py_ssize_t value_index = 0             # <<<<<<<<<<<<<<
 * 
 *         CharVector_clear(&context.temp)
 */
  __pyx_v_value_index = 0;

  /* "variant_tools/io_vcf_read.pyx":3674
 *             Py_ssize_t value_index = 0
 * 
 *         CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 * 
 *         # read characters until tab
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

  /* "variant_tools/io_vcf_read.pyx":3677
 * 
 *         # read characters until tab
 *         while True:             # <<<<<<<<<<<<<<
 * 
 *             if stream.c == TAB or \
 */
  while (1) {

    /* "variant_tools/io_vcf_read.pyx":3679
 *         while True:
 * 
 *             if stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_TAB) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3680
 * 
 *             if stream.c == TAB or \
 *                     stream.c == COLON or \             # <<<<<<<<<<<<<<
 *                     stream.c == CR or \
 *                     stream.c == LF or \
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COLON) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3681
 *             if stream.c == TAB or \
 *                     stream.c == COLON or \
 *                     stream.c == CR or \             # <<<<<<<<<<<<<<
 *                     stream.c == LF or \
 *                     stream.c == 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_CR) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3682
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 *                     stream.c == LF or \             # <<<<<<<<<<<<<<
 *                     stream.c == 0:
 *                 if value_index < self.number and context.temp.size > 0:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_LF) != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }

    /* "variant_tools/io_vcf_read.pyx":3683
 *                     stream.c == CR or \
 *                     stream.c == LF or \
 *                     stream.c == 0:             # <<<<<<<<<<<<<<
 *                 if value_index < self.number and context.temp.size > 0:
 *                     # with gil:
 */
    __pyx_t_2 = ((__pyx_v_stream->c == 0) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;

    /* "variant_tools/io_vcf_read.pyx":3679
 *         while True:
 * 
 *             if stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 */
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3684
 *                     stream.c == LF or \
 *                     stream.c == 0:
 *                 if value_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      __pyx_t_2 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L12_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_context->temp.size > 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L12_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3686
 *                 if value_index < self.number and context.temp.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, context.sample_output_index, value_index] = v
 *                 break
 */
        __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3686, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":3687
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, context.sample_output_index, value_index] = v             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
        __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3687, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_context->sample_output_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3687, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_value_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3687, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3687, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_3);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_4);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5);
        __pyx_t_3 = 0;
        __pyx_t_4 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_6, __pyx_v_v) < 0)) __PYX_ERR(0, 3687, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":3684
 *                     stream.c == LF or \
 *                     stream.c == 0:
 *                 if value_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":3688
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, context.sample_output_index, value_index] = v
 *                 break             # <<<<<<<<<<<<<<
 * 
 *             elif stream.c == COMMA:
 */
      goto __pyx_L4_break;

      /* "variant_tools/io_vcf_read.pyx":3679
 *         while True:
 * 
 *             if stream.c == TAB or \             # <<<<<<<<<<<<<<
 *                     stream.c == COLON or \
 *                     stream.c == CR or \
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3690
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 if value_index < self.number and context.temp.size > 0:
 *                     # with gil:
 */
    __pyx_t_1 = ((__pyx_v_stream->c == __pyx_v_13variant_tools_11io_vcf_read_COMMA) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3691
 * 
 *             elif stream.c == COMMA:
 *                 if value_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      __pyx_t_2 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L15_bool_binop_done;
      }
      __pyx_t_2 = ((__pyx_v_context->temp.size > 0) != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L15_bool_binop_done:;
      if (__pyx_t_1) {

        /* "variant_tools/io_vcf_read.pyx":3693
 *                 if value_index < self.number and context.temp.size > 0:
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)             # <<<<<<<<<<<<<<
 *                     self.values[context.chunk_variant_index, context.sample_output_index, value_index] = v
 *                 CharVector_clear(&context.temp)
 */
        __pyx_t_6 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pystr((&__pyx_v_context->temp)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3693, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":3694
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, context.sample_output_index, value_index] = v             # <<<<<<<<<<<<<<
 *                 CharVector_clear(&context.temp)
 *                 # advance value index
 */
        __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_context->chunk_variant_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3694, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_context->sample_output_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3694, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_value_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3694, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3694, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_4);
        PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4);
        __pyx_t_6 = 0;
        __pyx_t_5 = 0;
        __pyx_t_4 = 0;
        if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_t_3, __pyx_v_v) < 0)) __PYX_ERR(0, 3694, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "variant_tools/io_vcf_read.pyx":3691
 * 
 *             elif stream.c == COMMA:
 *                 if value_index < self.number and context.temp.size > 0:             # <<<<<<<<<<<<<<
 *                     # with gil:
 *                     v = CharVector_to_pystr(&context.temp)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":3695
 *                     v = CharVector_to_pystr(&context.temp)
 *                     self.values[context.chunk_variant_index, context.sample_output_index, value_index] = v
 *                 CharVector_clear(&context.temp)             # <<<<<<<<<<<<<<
 *                 # advance value index
 *                 value_index += 1
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_clear((&__pyx_v_context->temp));

      /* "variant_tools/io_vcf_read.pyx":3697
 *                 CharVector_clear(&context.temp)
 *                 # advance value index
 *                 value_index += 1             # <<<<<<<<<<<<<<
 * 
 *             elif value_index < self.number:
 */
      __pyx_v_value_index = (__pyx_v_value_index + 1);

      /* "variant_tools/io_vcf_read.pyx":3690
 *                 break
 * 
 *             elif stream.c == COMMA:             # <<<<<<<<<<<<<<
 *                 if value_index < self.number and context.temp.size > 0:
 *                     # with gil:
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":3699
 *                 value_index += 1
 * 
 *             elif value_index < self.number:             # <<<<<<<<<<<<<<
 *                 CharVector_append(&context.temp, stream.c)
 * 
 */
    __pyx_t_1 = ((__pyx_v_value_index < __pyx_v_self->__pyx_base.number) != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":3700
 * 
 *             elif value_index < self.number:
 *                 CharVector_append(&context.temp, stream.c)             # <<<<<<<<<<<<<<
 * 
 *             # advance input stream
 */
      __pyx_f_13variant_tools_11io_vcf_read_CharVector_append((&__pyx_v_context->temp), __pyx_v_stream->c);

      /* "variant_tools/io_vcf_read.pyx":3699
 *                 value_index += 1
 * 
 *             elif value_index < self.number:             # <<<<<<<<<<<<<<
 *                 CharVector_append(&context.temp, stream.c)
 * 
 */
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":3703
 * 
 *             # advance input stream
 *             stream.advance()             # <<<<<<<<<<<<<<
 * 
 *     cdef int malloc_chunk(self) except -1:
 */
    __pyx_t_7 = ((struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v_stream->__pyx_vtab)->advance(__pyx_v_stream); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 3703, __pyx_L1_error)
  }
  __pyx_L4_break:;

  /* "variant_tools/io_vcf_read.pyx":3668
 *         super(VCFCallDataObjectParser, self).__init__(*args, **kwargs)
 * 
 *     cdef int parse(self,             # <<<<<<<<<<<<<<
 *                    InputStreamBase stream,
 *                    VCFContext context) except -1:  # nogil
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataObjectParser.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3705
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_malloc_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_shape = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("malloc_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":3706
 * 
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)             # <<<<<<<<<<<<<<
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.values.fill('')
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_shape = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "variant_tools/io_vcf_read.pyx":3707
 *     cdef int malloc_chunk(self) except -1:
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)             # <<<<<<<<<<<<<<
 *         self.values.fill('')
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_shape);
  __Pyx_GIVEREF(__pyx_v_shape);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->__pyx_base.dtype)) < 0) __PYX_ERR(0, 3707, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3707, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_v_self->__pyx_base.values = ((PyArrayObject *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3708
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 *         self.values.fill('')             # <<<<<<<<<<<<<<
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->__pyx_base.values), __pyx_n_s_fill); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s__6);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3705
 *             stream.advance()
 * 
 *     cdef int malloc_chunk(self) except -1:             # <<<<<<<<<<<<<<
 *         shape = (self.chunk_length, self.n_samples_out, self.number)
 *         self.values = np.empty(shape, dtype=self.dtype)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataObjectParser.malloc_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3710
 *         self.values.fill('')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */

static int __pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, PyObject *__pyx_v_chunk, struct __pyx_opt_args_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk *__pyx_optional_args) {
  PyObject *__pyx_v_limit = ((PyObject *)Py_None);
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_values = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("make_chunk", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_limit = __pyx_optional_args->limit;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":3711
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'calldata/' + self.key
 *         else:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3712
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:
 *             field = 'calldata/' + self.key             # <<<<<<<<<<<<<<
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_calldata_2, __pyx_v_self->__pyx_base.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3712, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":3711
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:
 *         if PY2:             # <<<<<<<<<<<<<<
 *             field = 'calldata/' + self.key
 *         else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":3714
 *             field = 'calldata/' + self.key
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')             # <<<<<<<<<<<<<<
 *         values = self.values[:limit]
 *         if self.number == 1:
 */
  /*else*/ {
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
    __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->__pyx_base.key);
    __Pyx_INCREF(__pyx_n_s_ascii);
    __Pyx_GIVEREF(__pyx_n_s_ascii);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_calldata_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_field = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":3715
 *         else:
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]             # <<<<<<<<<<<<<<
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)
 */
  __pyx_t_1 = __Pyx_PyObject_GetSlice(((PyObject *)__pyx_v_self->__pyx_base.values), 0, 0, NULL, &__pyx_v_limit, NULL, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_values = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3716
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=2)
 *         chunk[field] = values
 */
  __pyx_t_2 = ((__pyx_v_self->__pyx_base.number == 1) != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":3717
 *         values = self.values[:limit]
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)             # <<<<<<<<<<<<<<
 *         chunk[field] = values
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_axis, __pyx_int_2) < 0) __PYX_ERR(0, 3717, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_values, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":3716
 *             field = 'calldata/' + str(self.key, 'ascii')
 *         values = self.values[:limit]
 *         if self.number == 1:             # <<<<<<<<<<<<<<
 *             values = values.squeeze(axis=2)
 *         chunk[field] = values
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3718
 *         if self.number == 1:
 *             values = values.squeeze(axis=2)
 *         chunk[field] = values             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (unlikely(PyObject_SetItem(__pyx_v_chunk, __pyx_v_field, __pyx_v_values) < 0)) __PYX_ERR(0, 3718, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":3710
 *         self.values.fill('')
 * 
 *     cdef int make_chunk(self, chunk, limit=None) except -1:             # <<<<<<<<<<<<<<
 *         if PY2:
 *             field = 'calldata/' + self.key
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataObjectParser.make_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_2__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_2__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.chunk_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->memory, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.n_samples_out); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_self->__pyx_base.number); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.dtype));
  PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_self->__pyx_base.dtype));
  __Pyx_INCREF(__pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.fill);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_self->__pyx_base.fill);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_v_self->__pyx_base.key);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_self->__pyx_base.key);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self->__pyx_base.values));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_v_self->__pyx_base.values));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.chunk_length, self.dtype, self.fill, self.itemsize, self.key, self.memory, self.n_samples_out, self.number, self.values)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, None), state
 */
  /*else*/ {
    __pyx_t_7 = (((PyObject *)__pyx_v_self->__pyx_base.dtype) != Py_None);
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->__pyx_base.fill != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->__pyx_base.key != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (((PyObject *)__pyx_v_self->__pyx_base.values) != Py_None);
    __pyx_t_7 = (__pyx_t_9 != 0);
    __pyx_t_8 = __pyx_t_7;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_VCFCallDataObject); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.dtype is not None or self.fill is not None or self.key is not None or self.values is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, None), state
 *     else:
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataObjectParser__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_VCFCallDataObject); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_260145588);
    __Pyx_GIVEREF(__pyx_int_260145588);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_260145588);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataObjectParser.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataObjectParser__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_4__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_4__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_VCFCallDataObjectParser__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataObjectParser__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_VCFCallDataObjectParser, (type(self), 0xf8181b4, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_VCFCallDataObjectParser__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.VCFCallDataObjectParser.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3725
 * 
 * 
 * cdef Py_ssize_t vcf_strtol(CharVector* value, VCFContext context, long* l) except -1:  # nogil             # <<<<<<<<<<<<<<
 *     cdef:
 *         char* str_end
 */

static Py_ssize_t __pyx_f_13variant_tools_11io_vcf_read_vcf_strtol(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_value, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, long *__pyx_v_l) {
  char *__pyx_v_str_end;
  Py_ssize_t __pyx_v_parsed;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("vcf_strtol", 0);

  /* "variant_tools/io_vcf_read.pyx":3730
 *         Py_ssize_t parsed
 * 
 *     if value.size == 0:             # <<<<<<<<<<<<<<
 *         # not strictly kosher, treat as missing value
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value->size == 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3732
 *     if value.size == 0:
 *         # not strictly kosher, treat as missing value
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     if value.size == 1 and value.data[0] == PERIOD:
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3730
 *         Py_ssize_t parsed
 * 
 *     if value.size == 0:             # <<<<<<<<<<<<<<
 *         # not strictly kosher, treat as missing value
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3734
 *         return 0
 * 
 *     if value.size == 1 and value.data[0] == PERIOD:             # <<<<<<<<<<<<<<
 *         # explicit missing value
 *         return 0
 */
  __pyx_t_2 = ((__pyx_v_value->size == 1) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = (((__pyx_v_value->data[0]) == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3736
 *     if value.size == 1 and value.data[0] == PERIOD:
 *         # explicit missing value
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # terminate string
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3734
 *         return 0
 * 
 *     if value.size == 1 and value.data[0] == PERIOD:             # <<<<<<<<<<<<<<
 *         # explicit missing value
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3739
 * 
 *     # terminate string
 *     CharVector_terminate(value)             # <<<<<<<<<<<<<<
 * 
 *     # do parsing
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate(__pyx_v_value);

  /* "variant_tools/io_vcf_read.pyx":3742
 * 
 *     # do parsing
 *     l[0] = strtol(value.data, &str_end, 10)             # <<<<<<<<<<<<<<
 * 
 *     # check success
 */
  (__pyx_v_l[0]) = strtol(__pyx_v_value->data, (&__pyx_v_str_end), 10);

  /* "variant_tools/io_vcf_read.pyx":3745
 * 
 *     # check success
 *     parsed = str_end - value.data             # <<<<<<<<<<<<<<
 * 
 *     # check success
 */
  __pyx_v_parsed = (__pyx_v_str_end - __pyx_v_value->data);

  /* "variant_tools/io_vcf_read.pyx":3748
 * 
 *     # check success
 *     if value.size - 1 == parsed:  # account for terminating null byte             # <<<<<<<<<<<<<<
 *         return parsed
 * 
 */
  __pyx_t_1 = (((__pyx_v_value->size - 1) == __pyx_v_parsed) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3749
 *     # check success
 *     if value.size - 1 == parsed:  # account for terminating null byte
 *         return parsed             # <<<<<<<<<<<<<<
 * 
 *     elif parsed > 0:
 */
    __pyx_r = __pyx_v_parsed;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3748
 * 
 *     # check success
 *     if value.size - 1 == parsed:  # account for terminating null byte             # <<<<<<<<<<<<<<
 *         return parsed
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3751
 *         return parsed
 * 
 *     elif parsed > 0:             # <<<<<<<<<<<<<<
 *         # with gil:
 *         warn('not all characters parsed for integer value', context)
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3753
 *     elif parsed > 0:
 *         # with gil:
 *         warn('not all characters parsed for integer value', context)             # <<<<<<<<<<<<<<
 *         return parsed
 * 
 */
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_not_all_characters_parsed_for_in, __pyx_v_context); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3753, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":3754
 *         # with gil:
 *         warn('not all characters parsed for integer value', context)
 *         return parsed             # <<<<<<<<<<<<<<
 * 
 *     else:
 */
    __pyx_r = __pyx_v_parsed;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3751
 *         return parsed
 * 
 *     elif parsed > 0:             # <<<<<<<<<<<<<<
 *         # with gil:
 *         warn('not all characters parsed for integer value', context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3758
 *     else:
 *         # with gil:
 *         warn('error parsing integer value', context)             # <<<<<<<<<<<<<<
 *         return 0
 * 
 */
  /*else*/ {
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_error_parsing_integer_value, __pyx_v_context); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3758, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":3759
 *         # with gil:
 *         warn('error parsing integer value', context)
 *         return 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_r = 0;
    goto __pyx_L0;
  }

  /* "variant_tools/io_vcf_read.pyx":3725
 * 
 * 
 * cdef Py_ssize_t vcf_strtol(CharVector* value, VCFContext context, long* l) except -1:  # nogil             # <<<<<<<<<<<<<<
 *     cdef:
 *         char* str_end
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_strtol", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1L;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3762
 * 
 * 
 * cdef Py_ssize_t vcf_strtod(CharVector* value, VCFContext context, double* d) except -1:  # nogil             # <<<<<<<<<<<<<<
 *     cdef:
 *         char* str_end
 */

static Py_ssize_t __pyx_f_13variant_tools_11io_vcf_read_vcf_strtod(struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *__pyx_v_value, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context, double *__pyx_v_d) {
  char *__pyx_v_str_end;
  Py_ssize_t __pyx_v_parsed;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("vcf_strtod", 0);

  /* "variant_tools/io_vcf_read.pyx":3767
 *         Py_ssize_t parsed
 * 
 *     if value.size == 0:             # <<<<<<<<<<<<<<
 *         # not strictly kosher, treat as missing value
 *         return 0
 */
  __pyx_t_1 = ((__pyx_v_value->size == 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3769
 *     if value.size == 0:
 *         # not strictly kosher, treat as missing value
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     if value.size == 1 and value.data[0] == PERIOD:
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3767
 *         Py_ssize_t parsed
 * 
 *     if value.size == 0:             # <<<<<<<<<<<<<<
 *         # not strictly kosher, treat as missing value
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3771
 *         return 0
 * 
 *     if value.size == 1 and value.data[0] == PERIOD:             # <<<<<<<<<<<<<<
 *         # explicit missing value
 *         return 0
 */
  __pyx_t_2 = ((__pyx_v_value->size == 1) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = (((__pyx_v_value->data[0]) == __pyx_v_13variant_tools_11io_vcf_read_PERIOD) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3773
 *     if value.size == 1 and value.data[0] == PERIOD:
 *         # explicit missing value
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     # terminate string
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3771
 *         return 0
 * 
 *     if value.size == 1 and value.data[0] == PERIOD:             # <<<<<<<<<<<<<<
 *         # explicit missing value
 *         return 0
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3776
 * 
 *     # terminate string
 *     CharVector_terminate(value)             # <<<<<<<<<<<<<<
 * 
 *     # do parsing
 */
  __pyx_f_13variant_tools_11io_vcf_read_CharVector_terminate(__pyx_v_value);

  /* "variant_tools/io_vcf_read.pyx":3779
 * 
 *     # do parsing
 *     d[0] = strtod(value.data, &str_end)             # <<<<<<<<<<<<<<
 * 
 *     # check success
 */
  (__pyx_v_d[0]) = strtod(__pyx_v_value->data, (&__pyx_v_str_end));

  /* "variant_tools/io_vcf_read.pyx":3782
 * 
 *     # check success
 *     parsed = str_end - value.data             # <<<<<<<<<<<<<<
 * 
 *     # check success
 */
  __pyx_v_parsed = (__pyx_v_str_end - __pyx_v_value->data);

  /* "variant_tools/io_vcf_read.pyx":3785
 * 
 *     # check success
 *     if value.size - 1 == parsed:  # account for terminating null byte             # <<<<<<<<<<<<<<
 *         return parsed
 * 
 */
  __pyx_t_1 = (((__pyx_v_value->size - 1) == __pyx_v_parsed) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3786
 *     # check success
 *     if value.size - 1 == parsed:  # account for terminating null byte
 *         return parsed             # <<<<<<<<<<<<<<
 * 
 *     elif parsed > 0:
 */
    __pyx_r = __pyx_v_parsed;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3785
 * 
 *     # check success
 *     if value.size - 1 == parsed:  # account for terminating null byte             # <<<<<<<<<<<<<<
 *         return parsed
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3788
 *         return parsed
 * 
 *     elif parsed > 0:             # <<<<<<<<<<<<<<
 *         # with gil:
 *         warn('not all characters parsed for floating point value', context)
 */
  __pyx_t_1 = ((__pyx_v_parsed > 0) != 0);
  if (__pyx_t_1) {

    /* "variant_tools/io_vcf_read.pyx":3790
 *     elif parsed > 0:
 *         # with gil:
 *         warn('not all characters parsed for floating point value', context)             # <<<<<<<<<<<<<<
 *         return parsed
 * 
 */
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_not_all_characters_parsed_for_fl, __pyx_v_context); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3790, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":3791
 *         # with gil:
 *         warn('not all characters parsed for floating point value', context)
 *         return parsed             # <<<<<<<<<<<<<<
 * 
 *     else:
 */
    __pyx_r = __pyx_v_parsed;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":3788
 *         return parsed
 * 
 *     elif parsed > 0:             # <<<<<<<<<<<<<<
 *         # with gil:
 *         warn('not all characters parsed for floating point value', context)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3795
 *     else:
 *         # with gil:
 *         warn('error parsing floating point value', context)             # <<<<<<<<<<<<<<
 *         return 0
 * 
 */
  /*else*/ {
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read_warn(__pyx_kp_s_error_parsing_floating_point_val, __pyx_v_context); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 3795, __pyx_L1_error)

    /* "variant_tools/io_vcf_read.pyx":3796
 *         # with gil:
 *         warn('error parsing floating point value', context)
 *         return 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_r = 0;
    goto __pyx_L0;
  }

  /* "variant_tools/io_vcf_read.pyx":3762
 * 
 * 
 * cdef Py_ssize_t vcf_strtod(CharVector* value, VCFContext context, double* d) except -1:  # nogil             # <<<<<<<<<<<<<<
 *     cdef:
 *         char* str_end
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.vcf_strtod", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1L;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":3819
 * 
 * 
 * cdef int warn(message, VCFContext context) except -1:             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t format_index
 *     message += '; field: %s' % vcf_state_labels[context.state]
 */

static int __pyx_f_13variant_tools_11io_vcf_read_warn(PyObject *__pyx_v_message, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *__pyx_v_context) {
  Py_ssize_t __pyx_v_format_index;
  PyObject *__pyx_v_chrom = NULL;
  PyObject *__pyx_v_sample = NULL;
  PyObject *__pyx_v_format = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("warn", 0);
  __Pyx_INCREF(__pyx_v_message);

  /* "variant_tools/io_vcf_read.pyx":3821
 * cdef int warn(message, VCFContext context) except -1:
 *     cdef Py_ssize_t format_index
 *     message += '; field: %s' % vcf_state_labels[context.state]             # <<<<<<<<<<<<<<
 *     message += '; variant: %s' % context.variant_index
 *     if context.state > VCFState.POS:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_vcf_state_labels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, __pyx_v_context->state, int, 1, __Pyx_PyInt_From_int, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_field_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_message, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_message, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3822
 *     cdef Py_ssize_t format_index
 *     message += '; field: %s' % vcf_state_labels[context.state]
 *     message += '; variant: %s' % context.variant_index             # <<<<<<<<<<<<<<
 *     if context.state > VCFState.POS:
 *         chrom = CharVector_to_pybytes(&context.chrom)
 */
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_context->variant_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_variant_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_message, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_message, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":3823
 *     message += '; field: %s' % vcf_state_labels[context.state]
 *     message += '; variant: %s' % context.variant_index
 *     if context.state > VCFState.POS:             # <<<<<<<<<<<<<<
 *         chrom = CharVector_to_pybytes(&context.chrom)
 *         if not PY2:
 */
  __pyx_t_3 = ((__pyx_v_context->state > __pyx_e_13variant_tools_11io_vcf_read_POS) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":3824
 *     message += '; variant: %s' % context.variant_index
 *     if context.state > VCFState.POS:
 *         chrom = CharVector_to_pybytes(&context.chrom)             # <<<<<<<<<<<<<<
 *         if not PY2:
 *             chrom = str(chrom, 'ascii')
 */
    __pyx_t_2 = __pyx_f_13variant_tools_11io_vcf_read_CharVector_to_pybytes((&__pyx_v_context->chrom)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3824, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_chrom = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":3825
 *     if context.state > VCFState.POS:
 *         chrom = CharVector_to_pybytes(&context.chrom)
 *         if not PY2:             # <<<<<<<<<<<<<<
 *             chrom = str(chrom, 'ascii')
 *         message += ' (%s:%s)' % (chrom, context.pos)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_PY2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3825, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = ((!__pyx_t_3) != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":3826
 *         chrom = CharVector_to_pybytes(&context.chrom)
 *         if not PY2:
 *             chrom = str(chrom, 'ascii')             # <<<<<<<<<<<<<<
 *         message += ' (%s:%s)' % (chrom, context.pos)
 *     if context.state == VCFState.CALLDATA:
 */
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3826, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_chrom);
      __Pyx_GIVEREF(__pyx_v_chrom);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_chrom);
      __Pyx_INCREF(__pyx_n_s_ascii);
      __Pyx_GIVEREF(__pyx_n_s_ascii);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_ascii);
      __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3826, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_chrom, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":3825
 *     if context.state > VCFState.POS:
 *         chrom = CharVector_to_pybytes(&context.chrom)
 *         if not PY2:             # <<<<<<<<<<<<<<
 *             chrom = str(chrom, 'ascii')
 *         message += ' (%s:%s)' % (chrom, context.pos)
 */
    }

    /* "variant_tools/io_vcf_read.pyx":3827
 *         if not PY2:
 *             chrom = str(chrom, 'ascii')
 *         message += ' (%s:%s)' % (chrom, context.pos)             # <<<<<<<<<<<<<<
 *     if context.state == VCFState.CALLDATA:
 *         if context.sample_index >= len(context.headers.samples):
 */
    __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v_context->pos); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_chrom);
    __Pyx_GIVEREF(__pyx_v_chrom);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_chrom);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
    __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_message, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_message, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":3823
 *     message += '; field: %s' % vcf_state_labels[context.state]
 *     message += '; variant: %s' % context.variant_index
 *     if context.state > VCFState.POS:             # <<<<<<<<<<<<<<
 *         chrom = CharVector_to_pybytes(&context.chrom)
 *         if not PY2:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3828
 *             chrom = str(chrom, 'ascii')
 *         message += ' (%s:%s)' % (chrom, context.pos)
 *     if context.state == VCFState.CALLDATA:             # <<<<<<<<<<<<<<
 *         if context.sample_index >= len(context.headers.samples):
 *             sample = 'unknown'
 */
  __pyx_t_4 = ((__pyx_v_context->state == __pyx_e_13variant_tools_11io_vcf_read_CALLDATA) != 0);
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":3829
 *         message += ' (%s:%s)' % (chrom, context.pos)
 *     if context.state == VCFState.CALLDATA:
 *         if context.sample_index >= len(context.headers.samples):             # <<<<<<<<<<<<<<
 *             sample = 'unknown'
 *         else:
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_context->headers, __pyx_n_s_samples); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 3829, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = ((__pyx_v_context->sample_index >= __pyx_t_5) != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":3830
 *     if context.state == VCFState.CALLDATA:
 *         if context.sample_index >= len(context.headers.samples):
 *             sample = 'unknown'             # <<<<<<<<<<<<<<
 *         else:
 *             sample = context.headers.samples[context.sample_index]
 */
      __Pyx_INCREF(__pyx_n_s_unknown);
      __pyx_v_sample = __pyx_n_s_unknown;

      /* "variant_tools/io_vcf_read.pyx":3829
 *         message += ' (%s:%s)' % (chrom, context.pos)
 *     if context.state == VCFState.CALLDATA:
 *         if context.sample_index >= len(context.headers.samples):             # <<<<<<<<<<<<<<
 *             sample = 'unknown'
 *         else:
 */
      goto __pyx_L6;
    }

    /* "variant_tools/io_vcf_read.pyx":3832
 *             sample = 'unknown'
 *         else:
 *             sample = context.headers.samples[context.sample_index]             # <<<<<<<<<<<<<<
 *         if context.sample_field_index >= context.variant_format_indices.size:
 *             format = 'unknown'
 */
    /*else*/ {
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_context->headers, __pyx_n_s_samples); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3832, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_context->sample_index, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3832, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_sample = __pyx_t_1;
      __pyx_t_1 = 0;
    }
    __pyx_L6:;

    /* "variant_tools/io_vcf_read.pyx":3833
 *         else:
 *             sample = context.headers.samples[context.sample_index]
 *         if context.sample_field_index >= context.variant_format_indices.size:             # <<<<<<<<<<<<<<
 *             format = 'unknown'
 *         else:
 */
    __pyx_t_4 = ((__pyx_v_context->sample_field_index >= __pyx_v_context->variant_format_indices.size) != 0);
    if (__pyx_t_4) {

      /* "variant_tools/io_vcf_read.pyx":3834
 *             sample = context.headers.samples[context.sample_index]
 *         if context.sample_field_index >= context.variant_format_indices.size:
 *             format = 'unknown'             # <<<<<<<<<<<<<<
 *         else:
 *             format_index = context.variant_format_indices.data[context.sample_field_index]
 */
      __Pyx_INCREF(__pyx_n_s_unknown);
      __pyx_v_format = __pyx_n_s_unknown;

      /* "variant_tools/io_vcf_read.pyx":3833
 *         else:
 *             sample = context.headers.samples[context.sample_index]
 *         if context.sample_field_index >= context.variant_format_indices.size:             # <<<<<<<<<<<<<<
 *             format = 'unknown'
 *         else:
 */
      goto __pyx_L7;
    }

    /* "variant_tools/io_vcf_read.pyx":3836
 *             format = 'unknown'
 *         else:
 *             format_index = context.variant_format_indices.data[context.sample_field_index]             # <<<<<<<<<<<<<<
 *             format = context.formats[format_index]
 *         message += '; sample: %s:%s (%s:%s)' % (context.sample_index,
 */
    /*else*/ {
      __pyx_v_format_index = (__pyx_v_context->variant_format_indices.data[__pyx_v_context->sample_field_index]);

      /* "variant_tools/io_vcf_read.pyx":3837
 *         else:
 *             format_index = context.variant_format_indices.data[context.sample_field_index]
 *             format = context.formats[format_index]             # <<<<<<<<<<<<<<
 *         message += '; sample: %s:%s (%s:%s)' % (context.sample_index,
 *                                                 context.sample_field_index,
 */
      if (unlikely(__pyx_v_context->formats == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 3837, __pyx_L1_error)
      }
      __pyx_t_1 = PyList_GET_ITEM(__pyx_v_context->formats, __pyx_v_format_index);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_v_format = __pyx_t_1;
      __pyx_t_1 = 0;
    }
    __pyx_L7:;

    /* "variant_tools/io_vcf_read.pyx":3838
 *             format_index = context.variant_format_indices.data[context.sample_field_index]
 *             format = context.formats[format_index]
 *         message += '; sample: %s:%s (%s:%s)' % (context.sample_index,             # <<<<<<<<<<<<<<
 *                                                 context.sample_field_index,
 *                                                 sample,
 */
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_context->sample_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3838, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "variant_tools/io_vcf_read.pyx":3839
 *             format = context.formats[format_index]
 *         message += '; sample: %s:%s (%s:%s)' % (context.sample_index,
 *                                                 context.sample_field_index,             # <<<<<<<<<<<<<<
 *                                                 sample,
 *                                                 format)
 */
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_context->sample_field_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "variant_tools/io_vcf_read.pyx":3838
 *             format_index = context.variant_format_indices.data[context.sample_field_index]
 *             format = context.formats[format_index]
 *         message += '; sample: %s:%s (%s:%s)' % (context.sample_index,             # <<<<<<<<<<<<<<
 *                                                 context.sample_field_index,
 *                                                 sample,
 */
    __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3838, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_sample);
    __Pyx_GIVEREF(__pyx_v_sample);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_sample);
    __Pyx_INCREF(__pyx_v_format);
    __Pyx_GIVEREF(__pyx_v_format);
    PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_format);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_sample_s_s_s_s, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3838, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_message, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3838, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_message, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "variant_tools/io_vcf_read.pyx":3828
 *             chrom = str(chrom, 'ascii')
 *         message += ' (%s:%s)' % (chrom, context.pos)
 *     if context.state == VCFState.CALLDATA:             # <<<<<<<<<<<<<<
 *         if context.sample_index >= len(context.headers.samples):
 *             sample = 'unknown'
 */
  }

  /* "variant_tools/io_vcf_read.pyx":3842
 *                                                 sample,
 *                                                 format)
 *     warnings.warn(message)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_warnings); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_warn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_6 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_v_message) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_message);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "variant_tools/io_vcf_read.pyx":3819
 * 
 * 
 * cdef int warn(message, VCFContext context) except -1:             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t format_index
 *     message += '; field: %s' % vcf_state_labels[context.state]
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.warn", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_chrom);
  __Pyx_XDECREF(__pyx_v_sample);
  __Pyx_XDECREF(__pyx_v_format);
  __Pyx_XDECREF(__pyx_v_message);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4093
 * 
 * 
 * def _normalize_ann_field_prefix(f):             # <<<<<<<<<<<<<<
 *     # normalize prefix
 *     if f.startswith('variants/ANN_'):
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_5_normalize_ann_field_prefix(PyObject *__pyx_self, PyObject *__pyx_v_f); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_5_normalize_ann_field_prefix = {"_normalize_ann_field_prefix", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_5_normalize_ann_field_prefix, METH_O, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_5_normalize_ann_field_prefix(PyObject *__pyx_self, PyObject *__pyx_v_f) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_normalize_ann_field_prefix (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_4_normalize_ann_field_prefix(__pyx_self, ((PyObject *)__pyx_v_f));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_4_normalize_ann_field_prefix(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_f) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("_normalize_ann_field_prefix", 0);
  __Pyx_INCREF(__pyx_v_f);

  /* "variant_tools/io_vcf_read.pyx":4095
 * def _normalize_ann_field_prefix(f):
 *     # normalize prefix
 *     if f.startswith('variants/ANN_'):             # <<<<<<<<<<<<<<
 *         pass
 *     elif f.startswith('ANN_'):
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_startswith); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_kp_s_variants_ANN) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s_variants_ANN);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 4095, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":4097
 *     if f.startswith('variants/ANN_'):
 *         pass
 *     elif f.startswith('ANN_'):             # <<<<<<<<<<<<<<
 *         f = 'variants/' + f
 *     else:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_startswith); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_n_s_ANN) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_ANN);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 4097, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "variant_tools/io_vcf_read.pyx":4098
 *         pass
 *     elif f.startswith('ANN_'):
 *         f = 'variants/' + f             # <<<<<<<<<<<<<<
 *     else:
 *         f = 'variants/ANN_' + f
 */
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_2, __pyx_v_f); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_f, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":4097
 *     if f.startswith('variants/ANN_'):
 *         pass
 *     elif f.startswith('ANN_'):             # <<<<<<<<<<<<<<
 *         f = 'variants/' + f
 *     else:
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":4100
 *         f = 'variants/' + f
 *     else:
 *         f = 'variants/ANN_' + f             # <<<<<<<<<<<<<<
 *     return f
 * 
 */
  /*else*/ {
    __pyx_t_1 = PyNumber_Add(__pyx_kp_s_variants_ANN, __pyx_v_f); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_f, __pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":4101
 *     else:
 *         f = 'variants/ANN_' + f
 *     return f             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_f);
  __pyx_r = __pyx_v_f;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":4093
 * 
 * 
 * def _normalize_ann_field_prefix(f):             # <<<<<<<<<<<<<<
 *     # normalize prefix
 *     if f.startswith('variants/ANN_'):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("variant_tools.io_vcf_read._normalize_ann_field_prefix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4104
 * 
 * 
 * def _normalize_ann_fields(fields):             # <<<<<<<<<<<<<<
 *     normed_fields = list()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_7_normalize_ann_fields(PyObject *__pyx_self, PyObject *__pyx_v_fields); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_7_normalize_ann_fields = {"_normalize_ann_fields", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_7_normalize_ann_fields, METH_O, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_7_normalize_ann_fields(PyObject *__pyx_self, PyObject *__pyx_v_fields) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_normalize_ann_fields (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_6_normalize_ann_fields(__pyx_self, ((PyObject *)__pyx_v_fields));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_6_normalize_ann_fields(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fields) {
  PyObject *__pyx_v_normed_fields = NULL;
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_v_ff = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  __Pyx_RefNannySetupContext("_normalize_ann_fields", 0);

  /* "variant_tools/io_vcf_read.pyx":4105
 * 
 * def _normalize_ann_fields(fields):
 *     normed_fields = list()             # <<<<<<<<<<<<<<
 * 
 *     if fields is None:
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_normed_fields = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":4107
 *     normed_fields = list()
 * 
 *     if fields is None:             # <<<<<<<<<<<<<<
 *         return list(ANN_FIELDS)
 * 
 */
  __pyx_t_2 = (__pyx_v_fields == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4108
 * 
 *     if fields is None:
 *         return list(ANN_FIELDS)             # <<<<<<<<<<<<<<
 * 
 *     else:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_FIELDS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PySequence_List(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "variant_tools/io_vcf_read.pyx":4107
 *     normed_fields = list()
 * 
 *     if fields is None:             # <<<<<<<<<<<<<<
 *         return list(ANN_FIELDS)
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4111
 * 
 *     else:
 *         for f in fields:             # <<<<<<<<<<<<<<
 *             f = _normalize_ann_field_prefix(f)
 *             # convenience features
 */
  /*else*/ {
    if (likely(PyList_CheckExact(__pyx_v_fields)) || PyTuple_CheckExact(__pyx_v_fields)) {
      __pyx_t_4 = __pyx_v_fields; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_fields); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4111, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4111, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 4111, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4111, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        } else {
          if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 4111, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4111, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        }
      } else {
        __pyx_t_1 = __pyx_t_6(__pyx_t_4);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
            else __PYX_ERR(0, 4111, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":4112
 *     else:
 *         for f in fields:
 *             f = _normalize_ann_field_prefix(f)             # <<<<<<<<<<<<<<
 *             # convenience features
 *             if f == ANN_CDNA_FIELD:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_normalize_ann_field_prefix); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4112, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
        if (likely(__pyx_t_8)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_7, function);
        }
      }
      __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_v_f) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_f);
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4112, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF_SET(__pyx_v_f, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":4114
 *             f = _normalize_ann_field_prefix(f)
 *             # convenience features
 *             if f == ANN_CDNA_FIELD:             # <<<<<<<<<<<<<<
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_CDNA_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4114, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = PyObject_RichCompare(__pyx_v_f, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4114, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4114, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4115
 *             # convenience features
 *             if f == ANN_CDNA_FIELD:
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:             # <<<<<<<<<<<<<<
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 */
        __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ANN_CDNA_POS_FIELD); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4115, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_CDNA_LENGTH_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4115, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4115, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_1);
        __pyx_t_7 = 0;
        __pyx_t_1 = 0;
        __pyx_t_1 = __pyx_t_8; __Pyx_INCREF(__pyx_t_1); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        for (;;) {
          if (__pyx_t_9 >= 2) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_9); __Pyx_INCREF(__pyx_t_8); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 4115, __pyx_L1_error)
          #else
          __pyx_t_8 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4115, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          #endif
          __Pyx_XDECREF_SET(__pyx_v_ff, __pyx_t_8);
          __pyx_t_8 = 0;

          /* "variant_tools/io_vcf_read.pyx":4116
 *             if f == ANN_CDNA_FIELD:
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:
 *                     if ff not in normed_fields:             # <<<<<<<<<<<<<<
 *                         normed_fields.append(ff)
 *             elif f == ANN_CDS_FIELD:
 */
          __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_ff, __pyx_v_normed_fields, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4116, __pyx_L1_error)
          __pyx_t_2 = (__pyx_t_3 != 0);
          if (__pyx_t_2) {

            /* "variant_tools/io_vcf_read.pyx":4117
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)             # <<<<<<<<<<<<<<
 *             elif f == ANN_CDS_FIELD:
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:
 */
            __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_normed_fields, __pyx_v_ff); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 4117, __pyx_L1_error)

            /* "variant_tools/io_vcf_read.pyx":4116
 *             if f == ANN_CDNA_FIELD:
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:
 *                     if ff not in normed_fields:             # <<<<<<<<<<<<<<
 *                         normed_fields.append(ff)
 *             elif f == ANN_CDS_FIELD:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4115
 *             # convenience features
 *             if f == ANN_CDNA_FIELD:
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:             # <<<<<<<<<<<<<<
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 */
        }
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4114
 *             f = _normalize_ann_field_prefix(f)
 *             # convenience features
 *             if f == ANN_CDNA_FIELD:             # <<<<<<<<<<<<<<
 *                 for ff in ANN_CDNA_POS_FIELD, ANN_CDNA_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 */
        goto __pyx_L6;
      }

      /* "variant_tools/io_vcf_read.pyx":4118
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 *             elif f == ANN_CDS_FIELD:             # <<<<<<<<<<<<<<
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_CDS_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4118, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_8 = PyObject_RichCompare(__pyx_v_f, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4118, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 4118, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (__pyx_t_2) {

        /* "variant_tools/io_vcf_read.pyx":4119
 *                         normed_fields.append(ff)
 *             elif f == ANN_CDS_FIELD:
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:             # <<<<<<<<<<<<<<
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 */
        __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_CDS_POS_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4119, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_CDS_LENGTH_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4119, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4119, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_8);
        PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1);
        __pyx_t_8 = 0;
        __pyx_t_1 = 0;
        __pyx_t_1 = __pyx_t_7; __Pyx_INCREF(__pyx_t_1); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        for (;;) {
          if (__pyx_t_9 >= 2) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_9); __Pyx_INCREF(__pyx_t_7); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 4119, __pyx_L1_error)
          #else
          __pyx_t_7 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4119, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          #endif
          __Pyx_XDECREF_SET(__pyx_v_ff, __pyx_t_7);
          __pyx_t_7 = 0;

          /* "variant_tools/io_vcf_read.pyx":4120
 *             elif f == ANN_CDS_FIELD:
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:
 *                     if ff not in normed_fields:             # <<<<<<<<<<<<<<
 *                         normed_fields.append(ff)
 *             elif f == ANN_AA_FIELD:
 */
          __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_ff, __pyx_v_normed_fields, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 4120, __pyx_L1_error)
          __pyx_t_3 = (__pyx_t_2 != 0);
          if (__pyx_t_3) {

            /* "variant_tools/io_vcf_read.pyx":4121
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)             # <<<<<<<<<<<<<<
 *             elif f == ANN_AA_FIELD:
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:
 */
            __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_normed_fields, __pyx_v_ff); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 4121, __pyx_L1_error)

            /* "variant_tools/io_vcf_read.pyx":4120
 *             elif f == ANN_CDS_FIELD:
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:
 *                     if ff not in normed_fields:             # <<<<<<<<<<<<<<
 *                         normed_fields.append(ff)
 *             elif f == ANN_AA_FIELD:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4119
 *                         normed_fields.append(ff)
 *             elif f == ANN_CDS_FIELD:
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:             # <<<<<<<<<<<<<<
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 */
        }
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4118
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 *             elif f == ANN_CDS_FIELD:             # <<<<<<<<<<<<<<
 *                 for ff in ANN_CDS_POS_FIELD, ANN_CDS_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 */
        goto __pyx_L6;
      }

      /* "variant_tools/io_vcf_read.pyx":4122
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 *             elif f == ANN_AA_FIELD:             # <<<<<<<<<<<<<<
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_AA_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = PyObject_RichCompare(__pyx_v_f, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4122, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4122, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4123
 *                         normed_fields.append(ff)
 *             elif f == ANN_AA_FIELD:
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:             # <<<<<<<<<<<<<<
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 */
        __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ANN_AA_POS_FIELD); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4123, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_AA_LENGTH_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4123, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4123, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_1);
        __pyx_t_7 = 0;
        __pyx_t_1 = 0;
        __pyx_t_1 = __pyx_t_8; __Pyx_INCREF(__pyx_t_1); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        for (;;) {
          if (__pyx_t_9 >= 2) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_9); __Pyx_INCREF(__pyx_t_8); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 4123, __pyx_L1_error)
          #else
          __pyx_t_8 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4123, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          #endif
          __Pyx_XDECREF_SET(__pyx_v_ff, __pyx_t_8);
          __pyx_t_8 = 0;

          /* "variant_tools/io_vcf_read.pyx":4124
 *             elif f == ANN_AA_FIELD:
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:
 *                     if ff not in normed_fields:             # <<<<<<<<<<<<<<
 *                         normed_fields.append(ff)
 *             # all other fields
 */
          __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_ff, __pyx_v_normed_fields, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4124, __pyx_L1_error)
          __pyx_t_2 = (__pyx_t_3 != 0);
          if (__pyx_t_2) {

            /* "variant_tools/io_vcf_read.pyx":4125
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)             # <<<<<<<<<<<<<<
 *             # all other fields
 *             elif f is not None and f not in normed_fields:
 */
            __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_normed_fields, __pyx_v_ff); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 4125, __pyx_L1_error)

            /* "variant_tools/io_vcf_read.pyx":4124
 *             elif f == ANN_AA_FIELD:
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:
 *                     if ff not in normed_fields:             # <<<<<<<<<<<<<<
 *                         normed_fields.append(ff)
 *             # all other fields
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4123
 *                         normed_fields.append(ff)
 *             elif f == ANN_AA_FIELD:
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:             # <<<<<<<<<<<<<<
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 */
        }
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4122
 *                     if ff not in normed_fields:
 *                         normed_fields.append(ff)
 *             elif f == ANN_AA_FIELD:             # <<<<<<<<<<<<<<
 *                 for ff in ANN_AA_POS_FIELD, ANN_AA_LENGTH_FIELD:
 *                     if ff not in normed_fields:
 */
        goto __pyx_L6;
      }

      /* "variant_tools/io_vcf_read.pyx":4127
 *                         normed_fields.append(ff)
 *             # all other fields
 *             elif f is not None and f not in normed_fields:             # <<<<<<<<<<<<<<
 *                 if f not in ANN_FIELDS:
 *                     warnings.warn('invalid ANN field %r, will be ignored' % f)
 */
      __pyx_t_3 = (__pyx_v_f != Py_None);
      __pyx_t_11 = (__pyx_t_3 != 0);
      if (__pyx_t_11) {
      } else {
        __pyx_t_2 = __pyx_t_11;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_11 = (__Pyx_PySequence_ContainsTF(__pyx_v_f, __pyx_v_normed_fields, Py_NE)); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 4127, __pyx_L1_error)
      __pyx_t_3 = (__pyx_t_11 != 0);
      __pyx_t_2 = __pyx_t_3;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_2) {

        /* "variant_tools/io_vcf_read.pyx":4128
 *             # all other fields
 *             elif f is not None and f not in normed_fields:
 *                 if f not in ANN_FIELDS:             # <<<<<<<<<<<<<<
 *                     warnings.warn('invalid ANN field %r, will be ignored' % f)
 *                 else:
 */
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_FIELDS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4128, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_f, __pyx_t_1, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 4128, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_3 = (__pyx_t_2 != 0);
        if (__pyx_t_3) {

          /* "variant_tools/io_vcf_read.pyx":4129
 *             elif f is not None and f not in normed_fields:
 *                 if f not in ANN_FIELDS:
 *                     warnings.warn('invalid ANN field %r, will be ignored' % f)             # <<<<<<<<<<<<<<
 *                 else:
 *                     normed_fields.append(f)
 */
          __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_warnings); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4129, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_warn); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4129, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __Pyx_PyString_FormatSafe(__pyx_kp_s_invalid_ANN_field_r_will_be_igno, __pyx_v_f); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4129, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_12 = NULL;
          if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
            __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7);
            if (likely(__pyx_t_12)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
              __Pyx_INCREF(__pyx_t_12);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_7, function);
            }
          }
          __pyx_t_1 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_12, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4129, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

          /* "variant_tools/io_vcf_read.pyx":4128
 *             # all other fields
 *             elif f is not None and f not in normed_fields:
 *                 if f not in ANN_FIELDS:             # <<<<<<<<<<<<<<
 *                     warnings.warn('invalid ANN field %r, will be ignored' % f)
 *                 else:
 */
          goto __pyx_L18;
        }

        /* "variant_tools/io_vcf_read.pyx":4131
 *                     warnings.warn('invalid ANN field %r, will be ignored' % f)
 *                 else:
 *                     normed_fields.append(f)             # <<<<<<<<<<<<<<
 * 
 *     return normed_fields
 */
        /*else*/ {
          __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_normed_fields, __pyx_v_f); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 4131, __pyx_L1_error)
        }
        __pyx_L18:;

        /* "variant_tools/io_vcf_read.pyx":4127
 *                         normed_fields.append(ff)
 *             # all other fields
 *             elif f is not None and f not in normed_fields:             # <<<<<<<<<<<<<<
 *                 if f not in ANN_FIELDS:
 *                     warnings.warn('invalid ANN field %r, will be ignored' % f)
 */
      }
      __pyx_L6:;

      /* "variant_tools/io_vcf_read.pyx":4111
 * 
 *     else:
 *         for f in fields:             # <<<<<<<<<<<<<<
 *             f = _normalize_ann_field_prefix(f)
 *             # convenience features
 */
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }

  /* "variant_tools/io_vcf_read.pyx":4133
 *                     normed_fields.append(f)
 * 
 *     return normed_fields             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_normed_fields);
  __pyx_r = __pyx_v_normed_fields;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":4104
 * 
 * 
 * def _normalize_ann_fields(fields):             # <<<<<<<<<<<<<<
 *     normed_fields = list()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("variant_tools.io_vcf_read._normalize_ann_fields", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_normed_fields);
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_v_ff);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4157
 * 
 * 
 * def _normalize_ann_types(fields, types):             # <<<<<<<<<<<<<<
 * 
 *     if types is None:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9_normalize_ann_types(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_9_normalize_ann_types = {"_normalize_ann_types", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9_normalize_ann_types, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_9_normalize_ann_types(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_normalize_ann_types (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_normalize_ann_types", 1, 2, 2, 1); __PYX_ERR(0, 4157, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_normalize_ann_types") < 0)) __PYX_ERR(0, 4157, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_normalize_ann_types", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4157, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read._normalize_ann_types", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_8_normalize_ann_types(__pyx_self, __pyx_v_fields, __pyx_v_types);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_8_normalize_ann_types(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types) {
  PyObject *__pyx_v_normed_types = NULL;
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_7genexpr__pyx_v_f = NULL;
  PyObject *__pyx_7genexpr__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  __Pyx_RefNannySetupContext("_normalize_ann_types", 0);
  __Pyx_INCREF(__pyx_v_types);

  /* "variant_tools/io_vcf_read.pyx":4159
 * def _normalize_ann_types(fields, types):
 * 
 *     if types is None:             # <<<<<<<<<<<<<<
 *         types = dict()
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)
 */
  __pyx_t_1 = (__pyx_v_types == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":4160
 * 
 *     if types is None:
 *         types = dict()             # <<<<<<<<<<<<<<
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)
 *              for f, t in types.items()}
 */
    __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_types, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":4159
 * def _normalize_ann_types(fields, types):
 * 
 *     if types is None:             # <<<<<<<<<<<<<<
 *         types = dict()
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4161
 *     if types is None:
 *         types = dict()
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)             # <<<<<<<<<<<<<<
 *              for f, t in types.items()}
 * 
 */
  { /* enter inner scope */
    __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4161, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "variant_tools/io_vcf_read.pyx":4162
 *         types = dict()
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)
 *              for f, t in types.items()}             # <<<<<<<<<<<<<<
 * 
 *     normed_types = dict()
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_types, __pyx_n_s_items); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4162, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4162, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
      __pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4162, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4162, __pyx_L6_error)
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_5)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 4162, __pyx_L6_error)
          #else
          __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4162, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
        } else {
          if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 4162, __pyx_L6_error)
          #else
          __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4162, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
        }
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
            else __PYX_ERR(0, 4162, __pyx_L6_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_4);
      }
      if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
        PyObject* sequence = __pyx_t_4;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 4162, __pyx_L6_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); 
          __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1); 
        } else {
          __pyx_t_6 = PyList_GET_ITEM(sequence, 0); 
          __pyx_t_9 = PyList_GET_ITEM(sequence, 1); 
        }
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_9);
        #else
        __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4162, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4162, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_9);
        #endif
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4162, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext;
        index = 0; __pyx_t_6 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_6)) goto __pyx_L9_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_6);
        index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L9_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(0, 4162, __pyx_L6_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L10_unpacking_done;
        __pyx_L9_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 4162, __pyx_L6_error)
        __pyx_L10_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_f, __pyx_t_6);
      __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_t, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":4161
 *     if types is None:
 *         types = dict()
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)             # <<<<<<<<<<<<<<
 *              for f, t in types.items()}
 * 
 */
      __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_normalize_ann_field_prefix); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4161, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_9, function);
        }
      }
      __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_6, __pyx_7genexpr__pyx_v_f) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_7genexpr__pyx_v_f);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4161, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_7genexpr__pyx_v_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4161, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (unlikely(PyDict_SetItem(__pyx_t_3, (PyObject*)__pyx_t_4, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 4161, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "variant_tools/io_vcf_read.pyx":4162
 *         types = dict()
 *     types = {_normalize_ann_field_prefix(f): np.dtype(t)
 *              for f, t in types.items()}             # <<<<<<<<<<<<<<
 * 
 *     normed_types = dict()
 */
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_f); __pyx_7genexpr__pyx_v_f = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_t); __pyx_7genexpr__pyx_v_t = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_f); __pyx_7genexpr__pyx_v_f = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_t); __pyx_7genexpr__pyx_v_t = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_types, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":4164
 *              for f, t in types.items()}
 * 
 *     normed_types = dict()             # <<<<<<<<<<<<<<
 *     for f in fields:
 *         if f in types:
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_normed_types = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":4165
 * 
 *     normed_types = dict()
 *     for f in fields:             # <<<<<<<<<<<<<<
 *         if f in types:
 *             normed_types[f] = types[f]
 */
  if (likely(PyList_CheckExact(__pyx_v_fields)) || PyTuple_CheckExact(__pyx_v_fields)) {
    __pyx_t_3 = __pyx_v_fields; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_fields); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4165, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 4165, __pyx_L1_error)
        #else
        __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4165, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 4165, __pyx_L1_error)
        #else
        __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4165, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      }
    } else {
      __pyx_t_5 = __pyx_t_8(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 4165, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "variant_tools/io_vcf_read.pyx":4166
 *     normed_types = dict()
 *     for f in fields:
 *         if f in types:             # <<<<<<<<<<<<<<
 *             normed_types[f] = types[f]
 *         else:
 */
    __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_f, __pyx_v_types, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 4166, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "variant_tools/io_vcf_read.pyx":4167
 *     for f in fields:
 *         if f in types:
 *             normed_types[f] = types[f]             # <<<<<<<<<<<<<<
 *         else:
 *             normed_types[f] = default_ann_types[f]
 */
      __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_types, __pyx_v_f); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4167, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(PyDict_SetItem(__pyx_v_normed_types, __pyx_v_f, __pyx_t_5) < 0)) __PYX_ERR(0, 4167, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":4166
 *     normed_types = dict()
 *     for f in fields:
 *         if f in types:             # <<<<<<<<<<<<<<
 *             normed_types[f] = types[f]
 *         else:
 */
      goto __pyx_L14;
    }

    /* "variant_tools/io_vcf_read.pyx":4169
 *             normed_types[f] = types[f]
 *         else:
 *             normed_types[f] = default_ann_types[f]             # <<<<<<<<<<<<<<
 * 
 *     return normed_types
 */
    /*else*/ {
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4169, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_v_f); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4169, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_normed_types, __pyx_v_f, __pyx_t_9) < 0)) __PYX_ERR(0, 4169, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    }
    __pyx_L14:;

    /* "variant_tools/io_vcf_read.pyx":4165
 * 
 *     normed_types = dict()
 *     for f in fields:             # <<<<<<<<<<<<<<
 *         if f in types:
 *             normed_types[f] = types[f]
 */
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "variant_tools/io_vcf_read.pyx":4171
 *             normed_types[f] = default_ann_types[f]
 * 
 *     return normed_types             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_normed_types);
  __pyx_r = __pyx_v_normed_types;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":4157
 * 
 * 
 * def _normalize_ann_types(fields, types):             # <<<<<<<<<<<<<<
 * 
 *     if types is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("variant_tools.io_vcf_read._normalize_ann_types", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_normed_types);
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_f);
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_types);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4181
 *         bint keep_original
 * 
 *     def __init__(self, fields=None, types=None, keep_original=False):             # <<<<<<<<<<<<<<
 *         self.fields = _normalize_ann_fields(fields)
 *         self.types = _normalize_ann_types(self.fields, types)
 */

/* Python wrapper */
static int __pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_keep_original = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fields,&__pyx_n_s_types,&__pyx_n_s_keep_original,0};
    PyObject* values[3] = {0,0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    values[2] = ((PyObject *)Py_False);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fields);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_keep_original);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 4181, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_fields = values[0];
    __pyx_v_types = values[1];
    __pyx_v_keep_original = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4181, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer___init__(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self), __pyx_v_fields, __pyx_v_types, __pyx_v_keep_original);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer___init__(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_fields, PyObject *__pyx_v_types, PyObject *__pyx_v_keep_original) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "variant_tools/io_vcf_read.pyx":4182
 * 
 *     def __init__(self, fields=None, types=None, keep_original=False):
 *         self.fields = _normalize_ann_fields(fields)             # <<<<<<<<<<<<<<
 *         self.types = _normalize_ann_types(self.fields, types)
 *         self.keep_original = keep_original
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_normalize_ann_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_fields) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_fields);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 4182, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->fields);
  __Pyx_DECREF(__pyx_v_self->fields);
  __pyx_v_self->fields = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":4183
 *     def __init__(self, fields=None, types=None, keep_original=False):
 *         self.fields = _normalize_ann_fields(fields)
 *         self.types = _normalize_ann_types(self.fields, types)             # <<<<<<<<<<<<<<
 *         self.keep_original = keep_original
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_normalize_ann_types); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_self->fields, __pyx_v_types};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4183, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_self->fields, __pyx_v_types};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4183, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_self->fields);
    __Pyx_GIVEREF(__pyx_v_self->fields);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_self->fields);
    __Pyx_INCREF(__pyx_v_types);
    __Pyx_GIVEREF(__pyx_v_types);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_types);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->types);
  __Pyx_DECREF(__pyx_v_self->types);
  __pyx_v_self->types = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":4184
 *         self.fields = _normalize_ann_fields(fields)
 *         self.types = _normalize_ann_types(self.fields, types)
 *         self.keep_original = keep_original             # <<<<<<<<<<<<<<
 * 
 *     def transform_fields(self, fields):
 */
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_keep_original); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4184, __pyx_L1_error)
  __pyx_v_self->keep_original = __pyx_t_6;

  /* "variant_tools/io_vcf_read.pyx":4181
 *         bint keep_original
 * 
 *     def __init__(self, fields=None, types=None, keep_original=False):             # <<<<<<<<<<<<<<
 *         self.fields = _normalize_ann_fields(fields)
 *         self.types = _normalize_ann_types(self.fields, types)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4186
 *         self.keep_original = keep_original
 * 
 *     def transform_fields(self, fields):             # <<<<<<<<<<<<<<
 *         fields_transformed = list()
 *         for f in fields:
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_3transform_fields(PyObject *__pyx_v_self, PyObject *__pyx_v_fields); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_3transform_fields(PyObject *__pyx_v_self, PyObject *__pyx_v_fields) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("transform_fields (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_2transform_fields(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self), ((PyObject *)__pyx_v_fields));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_2transform_fields(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_fields) {
  PyObject *__pyx_v_fields_transformed = NULL;
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("transform_fields", 0);

  /* "variant_tools/io_vcf_read.pyx":4187
 * 
 *     def transform_fields(self, fields):
 *         fields_transformed = list()             # <<<<<<<<<<<<<<
 *         for f in fields:
 *             if f == ANN_FIELD:
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_fields_transformed = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":4188
 *     def transform_fields(self, fields):
 *         fields_transformed = list()
 *         for f in fields:             # <<<<<<<<<<<<<<
 *             if f == ANN_FIELD:
 *                 if self.keep_original:
 */
  if (likely(PyList_CheckExact(__pyx_v_fields)) || PyTuple_CheckExact(__pyx_v_fields)) {
    __pyx_t_1 = __pyx_v_fields; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4188, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 4188, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4188, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 4188, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4188, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 4188, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "variant_tools/io_vcf_read.pyx":4189
 *         fields_transformed = list()
 *         for f in fields:
 *             if f == ANN_FIELD:             # <<<<<<<<<<<<<<
 *                 if self.keep_original:
 *                     fields_transformed.append(f)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ANN_FIELD); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4189, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_f, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4189, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 4189, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_6) {

      /* "variant_tools/io_vcf_read.pyx":4190
 *         for f in fields:
 *             if f == ANN_FIELD:
 *                 if self.keep_original:             # <<<<<<<<<<<<<<
 *                     fields_transformed.append(f)
 *                 fields_transformed.extend(self.fields)
 */
      __pyx_t_6 = (__pyx_v_self->keep_original != 0);
      if (__pyx_t_6) {

        /* "variant_tools/io_vcf_read.pyx":4191
 *             if f == ANN_FIELD:
 *                 if self.keep_original:
 *                     fields_transformed.append(f)             # <<<<<<<<<<<<<<
 *                 fields_transformed.extend(self.fields)
 *             else:
 */
        __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_fields_transformed, __pyx_v_f); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 4191, __pyx_L1_error)

        /* "variant_tools/io_vcf_read.pyx":4190
 *         for f in fields:
 *             if f == ANN_FIELD:
 *                 if self.keep_original:             # <<<<<<<<<<<<<<
 *                     fields_transformed.append(f)
 *                 fields_transformed.extend(self.fields)
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4192
 *                 if self.keep_original:
 *                     fields_transformed.append(f)
 *                 fields_transformed.extend(self.fields)             # <<<<<<<<<<<<<<
 *             else:
 *                 fields_transformed.append(f)
 */
      __pyx_t_5 = __pyx_v_self->fields;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_7 = __Pyx_PyList_Extend(__pyx_v_fields_transformed, __pyx_t_5); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 4192, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "variant_tools/io_vcf_read.pyx":4189
 *         fields_transformed = list()
 *         for f in fields:
 *             if f == ANN_FIELD:             # <<<<<<<<<<<<<<
 *                 if self.keep_original:
 *                     fields_transformed.append(f)
 */
      goto __pyx_L5;
    }

    /* "variant_tools/io_vcf_read.pyx":4194
 *                 fields_transformed.extend(self.fields)
 *             else:
 *                 fields_transformed.append(f)             # <<<<<<<<<<<<<<
 *         return fields_transformed
 * 
 */
    /*else*/ {
      __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_fields_transformed, __pyx_v_f); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 4194, __pyx_L1_error)
    }
    __pyx_L5:;

    /* "variant_tools/io_vcf_read.pyx":4188
 *     def transform_fields(self, fields):
 *         fields_transformed = list()
 *         for f in fields:             # <<<<<<<<<<<<<<
 *             if f == ANN_FIELD:
 *                 if self.keep_original:
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":4195
 *             else:
 *                 fields_transformed.append(f)
 *         return fields_transformed             # <<<<<<<<<<<<<<
 * 
 *     def _malloc_string_array(self, field, shape):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_fields_transformed);
  __pyx_r = __pyx_v_fields_transformed;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":4186
 *         self.keep_original = keep_original
 * 
 *     def transform_fields(self, fields):             # <<<<<<<<<<<<<<
 *         fields_transformed = list()
 *         for f in fields:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer.transform_fields", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_fields_transformed);
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4197
 *         return fields_transformed
 * 
 *     def _malloc_string_array(self, field, shape):             # <<<<<<<<<<<<<<
 *         if field in self.fields:
 *             t = check_string_dtype(self.types[field])
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_5_malloc_string_array(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_5_malloc_string_array(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_field = 0;
  PyObject *__pyx_v_shape = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_malloc_string_array (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_field,&__pyx_n_s_shape,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_field)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_malloc_string_array", 1, 2, 2, 1); __PYX_ERR(0, 4197, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_malloc_string_array") < 0)) __PYX_ERR(0, 4197, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_field = values[0];
    __pyx_v_shape = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_malloc_string_array", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4197, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer._malloc_string_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_4_malloc_string_array(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self), __pyx_v_field, __pyx_v_shape);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_4_malloc_string_array(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_field, PyObject *__pyx_v_shape) {
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_v_a = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("_malloc_string_array", 0);

  /* "variant_tools/io_vcf_read.pyx":4198
 * 
 *     def _malloc_string_array(self, field, shape):
 *         if field in self.fields:             # <<<<<<<<<<<<<<
 *             t = check_string_dtype(self.types[field])
 *             a = np.empty(shape, dtype=t)
 */
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_field, __pyx_v_self->fields, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 4198, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":4199
 *     def _malloc_string_array(self, field, shape):
 *         if field in self.fields:
 *             t = check_string_dtype(self.types[field])             # <<<<<<<<<<<<<<
 *             a = np.empty(shape, dtype=t)
 *             if t.kind == 'S':
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_check_string_dtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_self->types, __pyx_v_field); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_t = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":4200
 *         if field in self.fields:
 *             t = check_string_dtype(self.types[field])
 *             a = np.empty(shape, dtype=t)             # <<<<<<<<<<<<<<
 *             if t.kind == 'S':
 *                 a.fill(b'')
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 4200, __pyx_L1_error)
    __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_a = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "variant_tools/io_vcf_read.pyx":4201
 *             t = check_string_dtype(self.types[field])
 *             a = np.empty(shape, dtype=t)
 *             if t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 a.fill(b'')
 *             else:
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_6, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 4201, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_2) {

      /* "variant_tools/io_vcf_read.pyx":4202
 *             a = np.empty(shape, dtype=t)
 *             if t.kind == 'S':
 *                 a.fill(b'')             # <<<<<<<<<<<<<<
 *             else:
 *                 a.fill('')
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_a, __pyx_n_s_fill); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4202, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_6 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_3, __pyx_kp_b__6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_b__6);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4202, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "variant_tools/io_vcf_read.pyx":4201
 *             t = check_string_dtype(self.types[field])
 *             a = np.empty(shape, dtype=t)
 *             if t.kind == 'S':             # <<<<<<<<<<<<<<
 *                 a.fill(b'')
 *             else:
 */
      goto __pyx_L4;
    }

    /* "variant_tools/io_vcf_read.pyx":4204
 *                 a.fill(b'')
 *             else:
 *                 a.fill('')             # <<<<<<<<<<<<<<
 *         else:
 *             a = None
 */
    /*else*/ {
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_a, __pyx_n_s_fill); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_6 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_3, __pyx_kp_s__6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_s__6);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __pyx_L4:;

    /* "variant_tools/io_vcf_read.pyx":4198
 * 
 *     def _malloc_string_array(self, field, shape):
 *         if field in self.fields:             # <<<<<<<<<<<<<<
 *             t = check_string_dtype(self.types[field])
 *             a = np.empty(shape, dtype=t)
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":4206
 *                 a.fill('')
 *         else:
 *             a = None             # <<<<<<<<<<<<<<
 *         return a
 * 
 */
  /*else*/ {
    __Pyx_INCREF(Py_None);
    __pyx_v_a = Py_None;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":4207
 *         else:
 *             a = None
 *         return a             # <<<<<<<<<<<<<<
 * 
 *     def _malloc_integer_array(self, field, shape):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_a);
  __pyx_r = __pyx_v_a;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":4197
 *         return fields_transformed
 * 
 *     def _malloc_string_array(self, field, shape):             # <<<<<<<<<<<<<<
 *         if field in self.fields:
 *             t = check_string_dtype(self.types[field])
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer._malloc_string_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_a);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4209
 *         return a
 * 
 *     def _malloc_integer_array(self, field, shape):             # <<<<<<<<<<<<<<
 *         if field in self.fields:
 *             t = self.types[field]
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_7_malloc_integer_array(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_7_malloc_integer_array(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_field = 0;
  PyObject *__pyx_v_shape = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_malloc_integer_array (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_field,&__pyx_n_s_shape,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_field)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_malloc_integer_array", 1, 2, 2, 1); __PYX_ERR(0, 4209, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_malloc_integer_array") < 0)) __PYX_ERR(0, 4209, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_field = values[0];
    __pyx_v_shape = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_malloc_integer_array", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4209, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer._malloc_integer_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_6_malloc_integer_array(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self), __pyx_v_field, __pyx_v_shape);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_6_malloc_integer_array(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_field, PyObject *__pyx_v_shape) {
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_v_a = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("_malloc_integer_array", 0);

  /* "variant_tools/io_vcf_read.pyx":4210
 * 
 *     def _malloc_integer_array(self, field, shape):
 *         if field in self.fields:             # <<<<<<<<<<<<<<
 *             t = self.types[field]
 *             if t.kind != 'i':
 */
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_field, __pyx_v_self->fields, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "variant_tools/io_vcf_read.pyx":4211
 *     def _malloc_integer_array(self, field, shape):
 *         if field in self.fields:
 *             t = self.types[field]             # <<<<<<<<<<<<<<
 *             if t.kind != 'i':
 *                 raise ValueError('only signed integer dtype supported for field %r' % field)
 */
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_self->types, __pyx_v_field); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_t = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "variant_tools/io_vcf_read.pyx":4212
 *         if field in self.fields:
 *             t = self.types[field]
 *             if t.kind != 'i':             # <<<<<<<<<<<<<<
 *                 raise ValueError('only signed integer dtype supported for field %r' % field)
 *             a = np.empty(shape, dtype=t)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_kind); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_3, __pyx_n_s_i, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 4212, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(__pyx_t_2)) {

      /* "variant_tools/io_vcf_read.pyx":4213
 *             t = self.types[field]
 *             if t.kind != 'i':
 *                 raise ValueError('only signed integer dtype supported for field %r' % field)             # <<<<<<<<<<<<<<
 *             a = np.empty(shape, dtype=t)
 *             a.fill(-1)
 */
      __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_only_signed_integer_dtype_suppor, __pyx_v_field); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 4213, __pyx_L1_error)

      /* "variant_tools/io_vcf_read.pyx":4212
 *         if field in self.fields:
 *             t = self.types[field]
 *             if t.kind != 'i':             # <<<<<<<<<<<<<<
 *                 raise ValueError('only signed integer dtype supported for field %r' % field)
 *             a = np.empty(shape, dtype=t)
 */
    }

    /* "variant_tools/io_vcf_read.pyx":4214
 *             if t.kind != 'i':
 *                 raise ValueError('only signed integer dtype supported for field %r' % field)
 *             a = np.empty(shape, dtype=t)             # <<<<<<<<<<<<<<
 *             a.fill(-1)
 *         else:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shape);
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_v_t) < 0) __PYX_ERR(0, 4214, __pyx_L1_error)
    __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_a = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "variant_tools/io_vcf_read.pyx":4215
 *                 raise ValueError('only signed integer dtype supported for field %r' % field)
 *             a = np.empty(shape, dtype=t)
 *             a.fill(-1)             # <<<<<<<<<<<<<<
 *         else:
 *             a = None
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_a, __pyx_n_s_fill); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_6 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_int_neg_1) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_int_neg_1);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "variant_tools/io_vcf_read.pyx":4210
 * 
 *     def _malloc_integer_array(self, field, shape):
 *         if field in self.fields:             # <<<<<<<<<<<<<<
 *             t = self.types[field]
 *             if t.kind != 'i':
 */
    goto __pyx_L3;
  }

  /* "variant_tools/io_vcf_read.pyx":4217
 *             a.fill(-1)
 *         else:
 *             a = None             # <<<<<<<<<<<<<<
 *         return a
 * 
 */
  /*else*/ {
    __Pyx_INCREF(Py_None);
    __pyx_v_a = Py_None;
  }
  __pyx_L3:;

  /* "variant_tools/io_vcf_read.pyx":4218
 *         else:
 *             a = None
 *         return a             # <<<<<<<<<<<<<<
 * 
 *     def transform_chunk(self, chunk):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_a);
  __pyx_r = __pyx_v_a;
  goto __pyx_L0;

  /* "variant_tools/io_vcf_read.pyx":4209
 *         return a
 * 
 *     def _malloc_integer_array(self, field, shape):             # <<<<<<<<<<<<<<
 *         if field in self.fields:
 *             t = self.types[field]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer._malloc_integer_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XDECREF(__pyx_v_a);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "variant_tools/io_vcf_read.pyx":4220
 *         return a
 * 
 *     def transform_chunk(self, chunk):             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t i, j, chunk_length, number, n_vals
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_9transform_chunk(PyObject *__pyx_v_self, PyObject *__pyx_v_chunk); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_9transform_chunk(PyObject *__pyx_v_self, PyObject *__pyx_v_chunk) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("transform_chunk (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_8transform_chunk(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self), ((PyObject *)__pyx_v_chunk));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_8transform_chunk(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v_chunk) {
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_j;
  Py_ssize_t __pyx_v_chunk_length;
  Py_ssize_t __pyx_v_number;
  Py_ssize_t __pyx_v_n_vals;
  PyObject *__pyx_v_vals = 0;
  PyObject *__pyx_v_vv = 0;
  PyObject *__pyx_v_ann = NULL;
  PyObject *__pyx_v_shape = NULL;
  PyObject *__pyx_v_allele = NULL;
  PyObject *__pyx_v_annotation = NULL;
  PyObject *__pyx_v_annotation_impact = NULL;
  PyObject *__pyx_v_gene_name = NULL;
  PyObject *__pyx_v_gene_id = NULL;
  PyObject *__pyx_v_feature_type = NULL;
  PyObject *__pyx_v_feature_id = NULL;
  PyObject *__pyx_v_transcript_biotype = NULL;
  PyObject *__pyx_v_rank = NULL;
  PyObject *__pyx_v_hgvs_c = NULL;
  PyObject *__pyx_v_hgvs_p = NULL;
  PyObject *__pyx_v_cdna_pos = NULL;
  PyObject *__pyx_v_cdna_length = NULL;
  PyObject *__pyx_v_cds_pos = NULL;
  PyObject *__pyx_v_cds_length = NULL;
  PyObject *__pyx_v_aa_pos = NULL;
  PyObject *__pyx_v_aa_length = NULL;
  PyObject *__pyx_v_distance = NULL;
  PyObject *__pyx_v_raw = NULL;
  PyObject *__pyx_v_v = NULL;
  PyObject *__pyx_v_ann_chunk = NULL;
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  Py_ssize_t __pyx_t_16;
  __Pyx_RefNannySetupContext("transform_chunk", 0);

  /* "variant_tools/io_vcf_read.pyx":4227
 * 
 *         # obtain array to be transformed
 *         ann = chunk[ANN_FIELD]             # <<<<<<<<<<<<<<
 *         if not self.keep_original:
 *             del chunk[ANN_FIELD]
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_chunk, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_ann = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":4228
 *         # obtain array to be transformed
 *         ann = chunk[ANN_FIELD]
 *         if not self.keep_original:             # <<<<<<<<<<<<<<
 *             del chunk[ANN_FIELD]
 * 
 */
  __pyx_t_3 = ((!(__pyx_v_self->keep_original != 0)) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4229
 *         ann = chunk[ANN_FIELD]
 *         if not self.keep_original:
 *             del chunk[ANN_FIELD]             # <<<<<<<<<<<<<<
 * 
 *         # determine chunk length and number of items
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyObject_DelItem(__pyx_v_chunk, __pyx_t_2) < 0)) __PYX_ERR(0, 4229, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4228
 *         # obtain array to be transformed
 *         ann = chunk[ANN_FIELD]
 *         if not self.keep_original:             # <<<<<<<<<<<<<<
 *             del chunk[ANN_FIELD]
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4232
 * 
 *         # determine chunk length and number of items
 *         chunk_length = ann.shape[0]             # <<<<<<<<<<<<<<
 *         if ann.ndim == 1:
 *             ann = ann[:, np.newaxis]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_ann, __pyx_n_s_shape); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_chunk_length = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":4233
 *         # determine chunk length and number of items
 *         chunk_length = ann.shape[0]
 *         if ann.ndim == 1:             # <<<<<<<<<<<<<<
 *             ann = ann[:, np.newaxis]
 *         number = ann.shape[1]
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_ann, __pyx_n_s_ndim); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_t_1, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4234
 *         chunk_length = ann.shape[0]
 *         if ann.ndim == 1:
 *             ann = ann[:, np.newaxis]             # <<<<<<<<<<<<<<
 *         number = ann.shape[1]
 *         shape = chunk_length, number
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_newaxis); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_slice__31);
    __Pyx_GIVEREF(__pyx_slice__31);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_slice__31);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
    __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_ann, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_ann, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "variant_tools/io_vcf_read.pyx":4233
 *         # determine chunk length and number of items
 *         chunk_length = ann.shape[0]
 *         if ann.ndim == 1:             # <<<<<<<<<<<<<<
 *             ann = ann[:, np.newaxis]
 *         number = ann.shape[1]
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4235
 *         if ann.ndim == 1:
 *             ann = ann[:, np.newaxis]
 *         number = ann.shape[1]             # <<<<<<<<<<<<<<
 *         shape = chunk_length, number
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_ann, __pyx_n_s_shape); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_number = __pyx_t_4;

  /* "variant_tools/io_vcf_read.pyx":4236
 *             ann = ann[:, np.newaxis]
 *         number = ann.shape[1]
 *         shape = chunk_length, number             # <<<<<<<<<<<<<<
 * 
 *         # allocate output arrays
 */
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_chunk_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_v_shape = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4239
 * 
 *         # allocate output arrays
 *         allele = self._malloc_string_array(ANN_ALLELE_FIELD, shape)             # <<<<<<<<<<<<<<
 *         annotation = self._malloc_string_array(ANN_ANNOTATION_FIELD, shape)
 *         annotation_impact = self._malloc_string_array(ANN_ANNOTATION_IMPACT_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_ALLELE_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4239, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4239, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_allele = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4240
 *         # allocate output arrays
 *         allele = self._malloc_string_array(ANN_ALLELE_FIELD, shape)
 *         annotation = self._malloc_string_array(ANN_ANNOTATION_FIELD, shape)             # <<<<<<<<<<<<<<
 *         annotation_impact = self._malloc_string_array(ANN_ANNOTATION_IMPACT_FIELD, shape)
 *         gene_name = self._malloc_string_array(ANN_GENE_NAME_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_ANNOTATION_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4240, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4240, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_2) {
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_7, __pyx_t_8);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_8 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_annotation = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4241
 *         allele = self._malloc_string_array(ANN_ALLELE_FIELD, shape)
 *         annotation = self._malloc_string_array(ANN_ANNOTATION_FIELD, shape)
 *         annotation_impact = self._malloc_string_array(ANN_ANNOTATION_IMPACT_FIELD, shape)             # <<<<<<<<<<<<<<
 *         gene_name = self._malloc_string_array(ANN_GENE_NAME_FIELD, shape)
 *         gene_id = self._malloc_string_array(ANN_GENE_ID_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4241, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4241, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_annotation_impact = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4242
 *         annotation = self._malloc_string_array(ANN_ANNOTATION_FIELD, shape)
 *         annotation_impact = self._malloc_string_array(ANN_ANNOTATION_IMPACT_FIELD, shape)
 *         gene_name = self._malloc_string_array(ANN_GENE_NAME_FIELD, shape)             # <<<<<<<<<<<<<<
 *         gene_id = self._malloc_string_array(ANN_GENE_ID_FIELD, shape)
 *         feature_type = self._malloc_string_array(ANN_FEATURE_TYPE_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_GENE_NAME_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4242, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4242, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_gene_name = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4243
 *         annotation_impact = self._malloc_string_array(ANN_ANNOTATION_IMPACT_FIELD, shape)
 *         gene_name = self._malloc_string_array(ANN_GENE_NAME_FIELD, shape)
 *         gene_id = self._malloc_string_array(ANN_GENE_ID_FIELD, shape)             # <<<<<<<<<<<<<<
 *         feature_type = self._malloc_string_array(ANN_FEATURE_TYPE_FIELD, shape)
 *         feature_id = self._malloc_string_array(ANN_FEATURE_ID_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_GENE_ID_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4243, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4243, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_2) {
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_7, __pyx_t_8);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_8 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_gene_id = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4244
 *         gene_name = self._malloc_string_array(ANN_GENE_NAME_FIELD, shape)
 *         gene_id = self._malloc_string_array(ANN_GENE_ID_FIELD, shape)
 *         feature_type = self._malloc_string_array(ANN_FEATURE_TYPE_FIELD, shape)             # <<<<<<<<<<<<<<
 *         feature_id = self._malloc_string_array(ANN_FEATURE_ID_FIELD, shape)
 *         transcript_biotype = self._malloc_string_array(ANN_TRANSCRIPT_BIOTYPE_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_FEATURE_TYPE_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4244, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4244, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_feature_type = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4245
 *         gene_id = self._malloc_string_array(ANN_GENE_ID_FIELD, shape)
 *         feature_type = self._malloc_string_array(ANN_FEATURE_TYPE_FIELD, shape)
 *         feature_id = self._malloc_string_array(ANN_FEATURE_ID_FIELD, shape)             # <<<<<<<<<<<<<<
 *         transcript_biotype = self._malloc_string_array(ANN_TRANSCRIPT_BIOTYPE_FIELD, shape)
 *         rank = self._malloc_integer_array(ANN_RANK_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_FEATURE_ID_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4245, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4245, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_feature_id = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4246
 *         feature_type = self._malloc_string_array(ANN_FEATURE_TYPE_FIELD, shape)
 *         feature_id = self._malloc_string_array(ANN_FEATURE_ID_FIELD, shape)
 *         transcript_biotype = self._malloc_string_array(ANN_TRANSCRIPT_BIOTYPE_FIELD, shape)             # <<<<<<<<<<<<<<
 *         rank = self._malloc_integer_array(ANN_RANK_FIELD, shape)
 *         hgvs_c = self._malloc_string_array(ANN_HGVS_C_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4246, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4246, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_2) {
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_7, __pyx_t_8);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_8 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_transcript_biotype = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4247
 *         feature_id = self._malloc_string_array(ANN_FEATURE_ID_FIELD, shape)
 *         transcript_biotype = self._malloc_string_array(ANN_TRANSCRIPT_BIOTYPE_FIELD, shape)
 *         rank = self._malloc_integer_array(ANN_RANK_FIELD, shape)             # <<<<<<<<<<<<<<
 *         hgvs_c = self._malloc_string_array(ANN_HGVS_C_FIELD, shape)
 *         hgvs_p = self._malloc_string_array(ANN_HGVS_P_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_RANK_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4247, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4247, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_rank = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4248
 *         transcript_biotype = self._malloc_string_array(ANN_TRANSCRIPT_BIOTYPE_FIELD, shape)
 *         rank = self._malloc_integer_array(ANN_RANK_FIELD, shape)
 *         hgvs_c = self._malloc_string_array(ANN_HGVS_C_FIELD, shape)             # <<<<<<<<<<<<<<
 *         hgvs_p = self._malloc_string_array(ANN_HGVS_P_FIELD, shape)
 *         cdna_pos = self._malloc_integer_array(ANN_CDNA_POS_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_HGVS_C_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4248, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4248, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_hgvs_c = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4249
 *         rank = self._malloc_integer_array(ANN_RANK_FIELD, shape)
 *         hgvs_c = self._malloc_string_array(ANN_HGVS_C_FIELD, shape)
 *         hgvs_p = self._malloc_string_array(ANN_HGVS_P_FIELD, shape)             # <<<<<<<<<<<<<<
 *         cdna_pos = self._malloc_integer_array(ANN_CDNA_POS_FIELD, shape)
 *         cdna_length = self._malloc_integer_array(ANN_CDNA_LENGTH_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_string_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_HGVS_P_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4249, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4249, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_2) {
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_7, __pyx_t_8);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_8 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_hgvs_p = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4250
 *         hgvs_c = self._malloc_string_array(ANN_HGVS_C_FIELD, shape)
 *         hgvs_p = self._malloc_string_array(ANN_HGVS_P_FIELD, shape)
 *         cdna_pos = self._malloc_integer_array(ANN_CDNA_POS_FIELD, shape)             # <<<<<<<<<<<<<<
 *         cdna_length = self._malloc_integer_array(ANN_CDNA_LENGTH_FIELD, shape)
 *         cds_pos = self._malloc_integer_array(ANN_CDS_POS_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_CDNA_POS_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4250, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4250, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cdna_pos = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4251
 *         hgvs_p = self._malloc_string_array(ANN_HGVS_P_FIELD, shape)
 *         cdna_pos = self._malloc_integer_array(ANN_CDNA_POS_FIELD, shape)
 *         cdna_length = self._malloc_integer_array(ANN_CDNA_LENGTH_FIELD, shape)             # <<<<<<<<<<<<<<
 *         cds_pos = self._malloc_integer_array(ANN_CDS_POS_FIELD, shape)
 *         cds_length = self._malloc_integer_array(ANN_CDS_LENGTH_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_CDNA_LENGTH_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4251, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4251, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cdna_length = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4252
 *         cdna_pos = self._malloc_integer_array(ANN_CDNA_POS_FIELD, shape)
 *         cdna_length = self._malloc_integer_array(ANN_CDNA_LENGTH_FIELD, shape)
 *         cds_pos = self._malloc_integer_array(ANN_CDS_POS_FIELD, shape)             # <<<<<<<<<<<<<<
 *         cds_length = self._malloc_integer_array(ANN_CDS_LENGTH_FIELD, shape)
 *         aa_pos = self._malloc_integer_array(ANN_AA_POS_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_CDS_POS_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4252, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4252, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_2) {
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_7, __pyx_t_8);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_8 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cds_pos = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4253
 *         cdna_length = self._malloc_integer_array(ANN_CDNA_LENGTH_FIELD, shape)
 *         cds_pos = self._malloc_integer_array(ANN_CDS_POS_FIELD, shape)
 *         cds_length = self._malloc_integer_array(ANN_CDS_LENGTH_FIELD, shape)             # <<<<<<<<<<<<<<
 *         aa_pos = self._malloc_integer_array(ANN_AA_POS_FIELD, shape)
 *         aa_length = self._malloc_integer_array(ANN_AA_LENGTH_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_CDS_LENGTH_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4253, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4253, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cds_length = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4254
 *         cds_pos = self._malloc_integer_array(ANN_CDS_POS_FIELD, shape)
 *         cds_length = self._malloc_integer_array(ANN_CDS_LENGTH_FIELD, shape)
 *         aa_pos = self._malloc_integer_array(ANN_AA_POS_FIELD, shape)             # <<<<<<<<<<<<<<
 *         aa_length = self._malloc_integer_array(ANN_AA_LENGTH_FIELD, shape)
 *         distance = self._malloc_integer_array(ANN_DISTANCE_FIELD, shape)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_AA_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4254, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_2, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4254, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_aa_pos = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4255
 *         cds_length = self._malloc_integer_array(ANN_CDS_LENGTH_FIELD, shape)
 *         aa_pos = self._malloc_integer_array(ANN_AA_POS_FIELD, shape)
 *         aa_length = self._malloc_integer_array(ANN_AA_LENGTH_FIELD, shape)             # <<<<<<<<<<<<<<
 *         distance = self._malloc_integer_array(ANN_DISTANCE_FIELD, shape)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_AA_LENGTH_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4255, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4255, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_2) {
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __pyx_t_2 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_7, __pyx_t_8);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_8 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_aa_length = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4256
 *         aa_pos = self._malloc_integer_array(ANN_AA_POS_FIELD, shape)
 *         aa_length = self._malloc_integer_array(ANN_AA_LENGTH_FIELD, shape)
 *         distance = self._malloc_integer_array(ANN_DISTANCE_FIELD, shape)             # <<<<<<<<<<<<<<
 * 
 *         # start working
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_malloc_integer_array); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_DISTANCE_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4256, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_v_shape};
    __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4256, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_v_shape);
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_distance = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "variant_tools/io_vcf_read.pyx":4259
 * 
 *         # start working
 *         for i in range(chunk_length):             # <<<<<<<<<<<<<<
 *             for j in range(number):
 * 
 */
  __pyx_t_4 = __pyx_v_chunk_length;
  __pyx_t_9 = __pyx_t_4;
  for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
    __pyx_v_i = __pyx_t_10;

    /* "variant_tools/io_vcf_read.pyx":4260
 *         # start working
 *         for i in range(chunk_length):
 *             for j in range(number):             # <<<<<<<<<<<<<<
 * 
 *                 # obtain raw string value
 */
    __pyx_t_11 = __pyx_v_number;
    __pyx_t_12 = __pyx_t_11;
    for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
      __pyx_v_j = __pyx_t_13;

      /* "variant_tools/io_vcf_read.pyx":4263
 * 
 *                 # obtain raw string value
 *                 raw = ann[i, j]             # <<<<<<<<<<<<<<
 *                 if not PY2 and isinstance(raw, bytes):
 *                     raw = str(raw, 'ascii')
 */
      __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_1);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
      __pyx_t_5 = 0;
      __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_ann, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_raw, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":4264
 *                 # obtain raw string value
 *                 raw = ann[i, j]
 *                 if not PY2 and isinstance(raw, bytes):             # <<<<<<<<<<<<<<
 *                     raw = str(raw, 'ascii')
 * 
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PY2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 4264, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_15 = ((!__pyx_t_14) != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L10_bool_binop_done;
      }
      __pyx_t_15 = PyBytes_Check(__pyx_v_raw); 
      __pyx_t_14 = (__pyx_t_15 != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L10_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4265
 *                 raw = ann[i, j]
 *                 if not PY2 and isinstance(raw, bytes):
 *                     raw = str(raw, 'ascii')             # <<<<<<<<<<<<<<
 * 
 *                 # bail early if no content
 */
        __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4265, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_v_raw);
        __Pyx_GIVEREF(__pyx_v_raw);
        PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_raw);
        __Pyx_INCREF(__pyx_n_s_ascii);
        __Pyx_GIVEREF(__pyx_n_s_ascii);
        PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii);
        __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4265, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_raw, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4264
 *                 # obtain raw string value
 *                 raw = ann[i, j]
 *                 if not PY2 and isinstance(raw, bytes):             # <<<<<<<<<<<<<<
 *                     raw = str(raw, 'ascii')
 * 
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4268
 * 
 *                 # bail early if no content
 *                 if raw == '' or raw == '.':             # <<<<<<<<<<<<<<
 *                     continue
 * 
 */
      __pyx_t_14 = (__Pyx_PyString_Equals(__pyx_v_raw, __pyx_kp_s__6, Py_EQ)); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 4268, __pyx_L1_error)
      if (!__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L13_bool_binop_done;
      }
      __pyx_t_14 = (__Pyx_PyString_Equals(__pyx_v_raw, __pyx_kp_s__13, Py_EQ)); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 4268, __pyx_L1_error)
      __pyx_t_3 = __pyx_t_14;
      __pyx_L13_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4269
 *                 # bail early if no content
 *                 if raw == '' or raw == '.':
 *                     continue             # <<<<<<<<<<<<<<
 * 
 *                 # split fields
 */
        goto __pyx_L7_continue;

        /* "variant_tools/io_vcf_read.pyx":4268
 * 
 *                 # bail early if no content
 *                 if raw == '' or raw == '.':             # <<<<<<<<<<<<<<
 *                     continue
 * 
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4272
 * 
 *                 # split fields
 *                 vals = raw.split('|')             # <<<<<<<<<<<<<<
 *                 n_vals = len(vals)
 * 
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_raw, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4272, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_1, function);
        }
      }
      __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_kp_s__32) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_s__32);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4272, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (!(likely(PyList_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 4272, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_vals, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "variant_tools/io_vcf_read.pyx":4273
 *                 # split fields
 *                 vals = raw.split('|')
 *                 n_vals = len(vals)             # <<<<<<<<<<<<<<
 * 
 *                 # convert and store values
 */
      if (unlikely(__pyx_v_vals == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
        __PYX_ERR(0, 4273, __pyx_L1_error)
      }
      __pyx_t_16 = PyList_GET_SIZE(__pyx_v_vals); if (unlikely(__pyx_t_16 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4273, __pyx_L1_error)
      __pyx_v_n_vals = __pyx_t_16;

      /* "variant_tools/io_vcf_read.pyx":4276
 * 
 *                 # convert and store values
 *                 if allele is not None and n_vals > ANNFidx.ALLELE:             # <<<<<<<<<<<<<<
 *                     allele[i, j] = vals[ANNFidx.ALLELE]
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:
 */
      __pyx_t_14 = (__pyx_v_allele != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L16_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_ALLELE) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L16_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4277
 *                 # convert and store values
 *                 if allele is not None and n_vals > ANNFidx.ALLELE:
 *                     allele[i, j] = vals[ANNFidx.ALLELE]             # <<<<<<<<<<<<<<
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4277, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_ALLELE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
        __pyx_t_2 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_allele, __pyx_t_6, __pyx_t_1) < 0)) __PYX_ERR(0, 4277, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4276
 * 
 *                 # convert and store values
 *                 if allele is not None and n_vals > ANNFidx.ALLELE:             # <<<<<<<<<<<<<<
 *                     allele[i, j] = vals[ANNFidx.ALLELE]
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4278
 *                 if allele is not None and n_vals > ANNFidx.ALLELE:
 *                     allele[i, j] = vals[ANNFidx.ALLELE]
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:             # <<<<<<<<<<<<<<
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:
 */
      __pyx_t_15 = (__pyx_v_annotation != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L19_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_ANNOTATION) != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L19_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4279
 *                     allele[i, j] = vals[ANNFidx.ALLELE]
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]             # <<<<<<<<<<<<<<
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4279, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_ANNOTATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
        __pyx_t_1 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_annotation, __pyx_t_2, __pyx_t_6) < 0)) __PYX_ERR(0, 4279, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":4278
 *                 if allele is not None and n_vals > ANNFidx.ALLELE:
 *                     allele[i, j] = vals[ANNFidx.ALLELE]
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:             # <<<<<<<<<<<<<<
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4280
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:             # <<<<<<<<<<<<<<
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:
 */
      __pyx_t_14 = (__pyx_v_annotation_impact != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L22_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_ANNOTATION_IMPACT) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L22_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4281
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]             # <<<<<<<<<<<<<<
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4281, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_ANNOTATION_IMPACT); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
        __pyx_t_6 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_annotation_impact, __pyx_t_1, __pyx_t_2) < 0)) __PYX_ERR(0, 4281, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4280
 *                 if annotation is not None and n_vals > ANNFidx.ANNOTATION:
 *                     annotation[i, j] = vals[ANNFidx.ANNOTATION]
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:             # <<<<<<<<<<<<<<
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4282
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:             # <<<<<<<<<<<<<<
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:
 */
      __pyx_t_15 = (__pyx_v_gene_name != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L25_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_GENE_NAME) != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L25_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4283
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]             # <<<<<<<<<<<<<<
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4283, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_GENE_NAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4283, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4283, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4283, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4283, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4283, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
        __pyx_t_2 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_gene_name, __pyx_t_6, __pyx_t_1) < 0)) __PYX_ERR(0, 4283, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4282
 *                 if annotation_impact is not None and n_vals > ANNFidx.ANNOTATION_IMPACT:
 *                     annotation_impact[i, j] = vals[ANNFidx.ANNOTATION_IMPACT]
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:             # <<<<<<<<<<<<<<
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4284
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:             # <<<<<<<<<<<<<<
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:
 */
      __pyx_t_14 = (__pyx_v_gene_id != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L28_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_GENE_ID) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L28_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4285
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]             # <<<<<<<<<<<<<<
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4285, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_GENE_ID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
        __pyx_t_1 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_gene_id, __pyx_t_2, __pyx_t_6) < 0)) __PYX_ERR(0, 4285, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":4284
 *                 if gene_name is not None and n_vals > ANNFidx.GENE_NAME:
 *                     gene_name[i, j] = vals[ANNFidx.GENE_NAME]
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:             # <<<<<<<<<<<<<<
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4286
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:             # <<<<<<<<<<<<<<
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:
 */
      __pyx_t_15 = (__pyx_v_feature_type != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L31_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_FEATURE_TYPE) != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L31_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4287
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]             # <<<<<<<<<<<<<<
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4287, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_FEATURE_TYPE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
        __pyx_t_6 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_feature_type, __pyx_t_1, __pyx_t_2) < 0)) __PYX_ERR(0, 4287, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4286
 *                 if gene_id is not None and n_vals > ANNFidx.GENE_ID:
 *                     gene_id[i, j] = vals[ANNFidx.GENE_ID]
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:             # <<<<<<<<<<<<<<
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4288
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:             # <<<<<<<<<<<<<<
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:
 */
      __pyx_t_14 = (__pyx_v_feature_id != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L34_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_FEATURE_ID) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L34_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4289
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]             # <<<<<<<<<<<<<<
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4289, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_FEATURE_ID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4289, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4289, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4289, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4289, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4289, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
        __pyx_t_2 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_feature_id, __pyx_t_6, __pyx_t_1) < 0)) __PYX_ERR(0, 4289, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4288
 *                 if feature_type is not None and n_vals > ANNFidx.FEATURE_TYPE:
 *                     feature_type[i, j] = vals[ANNFidx.FEATURE_TYPE]
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:             # <<<<<<<<<<<<<<
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4290
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:             # <<<<<<<<<<<<<<
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]
 *                 if rank is not None and n_vals > ANNFidx.RANK:
 */
      __pyx_t_15 = (__pyx_v_transcript_biotype != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L37_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_TRANSCRIPT_BIOTYPE) != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L37_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4291
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]             # <<<<<<<<<<<<<<
 *                 if rank is not None and n_vals > ANNFidx.RANK:
 *                     v = vals[ANNFidx.RANK]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4291, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_TRANSCRIPT_BIOTYPE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4291, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4291, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4291, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4291, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4291, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
        __pyx_t_1 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_transcript_biotype, __pyx_t_2, __pyx_t_6) < 0)) __PYX_ERR(0, 4291, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "variant_tools/io_vcf_read.pyx":4290
 *                 if feature_id is not None and n_vals > ANNFidx.FEATURE_ID:
 *                     feature_id[i, j] = vals[ANNFidx.FEATURE_ID]
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:             # <<<<<<<<<<<<<<
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]
 *                 if rank is not None and n_vals > ANNFidx.RANK:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4292
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]
 *                 if rank is not None and n_vals > ANNFidx.RANK:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.RANK]
 *                     if v:
 */
      __pyx_t_14 = (__pyx_v_rank != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L40_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_RANK) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L40_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4293
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]
 *                 if rank is not None and n_vals > ANNFidx.RANK:
 *                     v = vals[ANNFidx.RANK]             # <<<<<<<<<<<<<<
 *                     if v:
 *                         vv = v.split('/')
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4293, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_RANK); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4293, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4293, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4294
 *                 if rank is not None and n_vals > ANNFidx.RANK:
 *                     v = vals[ANNFidx.RANK]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         # ignore second part of rank
 */
        __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_v); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4294, __pyx_L1_error)
        if (__pyx_t_3) {

          /* "variant_tools/io_vcf_read.pyx":4295
 *                     v = vals[ANNFidx.RANK]
 *                     if v:
 *                         vv = v.split('/')             # <<<<<<<<<<<<<<
 *                         # ignore second part of rank
 *                         rank[i, j] = int(vv[0])
 */
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_split); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4295, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_5 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
            if (likely(__pyx_t_5)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_6, function);
            }
          }
          __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_5, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_s__3);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4295, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (!(likely(PyList_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 4295, __pyx_L1_error)
          __Pyx_XDECREF_SET(__pyx_v_vv, ((PyObject*)__pyx_t_2));
          __pyx_t_2 = 0;

          /* "variant_tools/io_vcf_read.pyx":4297
 *                         vv = v.split('/')
 *                         # ignore second part of rank
 *                         rank[i, j] = int(vv[0])             # <<<<<<<<<<<<<<
 *                 if hgvs_c is not None and n_vals > ANNFidx.HGVS_C:
 *                     # strip of leading 'n.' as redundant information
 */
          if (unlikely(__pyx_v_vv == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
            __PYX_ERR(0, 4297, __pyx_L1_error)
          }
          __pyx_t_2 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_GIVEREF(__pyx_t_6);
          PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
          __Pyx_GIVEREF(__pyx_t_5);
          PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
          __pyx_t_6 = 0;
          __pyx_t_5 = 0;
          if (unlikely(PyObject_SetItem(__pyx_v_rank, __pyx_t_1, __pyx_t_2) < 0)) __PYX_ERR(0, 4297, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "variant_tools/io_vcf_read.pyx":4294
 *                 if rank is not None and n_vals > ANNFidx.RANK:
 *                     v = vals[ANNFidx.RANK]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         # ignore second part of rank
 */
        }

        /* "variant_tools/io_vcf_read.pyx":4292
 *                 if transcript_biotype is not None and n_vals > ANNFidx.TRANSCRIPT_BIOTYPE:
 *                     transcript_biotype[i, j] = vals[ANNFidx.TRANSCRIPT_BIOTYPE]
 *                 if rank is not None and n_vals > ANNFidx.RANK:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.RANK]
 *                     if v:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4298
 *                         # ignore second part of rank
 *                         rank[i, j] = int(vv[0])
 *                 if hgvs_c is not None and n_vals > ANNFidx.HGVS_C:             # <<<<<<<<<<<<<<
 *                     # strip of leading 'n.' as redundant information
 *                     hgvs_c[i, j] = vals[ANNFidx.HGVS_C][2:]
 */
      __pyx_t_15 = (__pyx_v_hgvs_c != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L44_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_HGVS_C) != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L44_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4300
 *                 if hgvs_c is not None and n_vals > ANNFidx.HGVS_C:
 *                     # strip of leading 'n.' as redundant information
 *                     hgvs_c[i, j] = vals[ANNFidx.HGVS_C][2:]             # <<<<<<<<<<<<<<
 *                 if hgvs_p is not None and n_vals > ANNFidx.HGVS_P:
 *                     # strip of leading 'p.' as redundant information
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4300, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_HGVS_C); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_t_1, 2, 0, NULL, NULL, &__pyx_slice__33, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_1);
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
        __pyx_t_1 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_hgvs_c, __pyx_t_6, __pyx_t_2) < 0)) __PYX_ERR(0, 4300, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4298
 *                         # ignore second part of rank
 *                         rank[i, j] = int(vv[0])
 *                 if hgvs_c is not None and n_vals > ANNFidx.HGVS_C:             # <<<<<<<<<<<<<<
 *                     # strip of leading 'n.' as redundant information
 *                     hgvs_c[i, j] = vals[ANNFidx.HGVS_C][2:]
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4301
 *                     # strip of leading 'n.' as redundant information
 *                     hgvs_c[i, j] = vals[ANNFidx.HGVS_C][2:]
 *                 if hgvs_p is not None and n_vals > ANNFidx.HGVS_P:             # <<<<<<<<<<<<<<
 *                     # strip of leading 'p.' as redundant information
 *                     hgvs_p[i, j] = vals[ANNFidx.HGVS_P][2:]
 */
      __pyx_t_14 = (__pyx_v_hgvs_p != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L47_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_HGVS_P) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L47_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4303
 *                 if hgvs_p is not None and n_vals > ANNFidx.HGVS_P:
 *                     # strip of leading 'p.' as redundant information
 *                     hgvs_p[i, j] = vals[ANNFidx.HGVS_P][2:]             # <<<<<<<<<<<<<<
 *                 if cdna_pos is not None or cdna_length is not None and n_vals > ANNFidx.CDNA:
 *                     v = vals[ANNFidx.CDNA]
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4303, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_HGVS_P); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_t_6, 2, 0, NULL, NULL, &__pyx_slice__33, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
        __pyx_t_6 = 0;
        __pyx_t_5 = 0;
        if (unlikely(PyObject_SetItem(__pyx_v_hgvs_p, __pyx_t_1, __pyx_t_2) < 0)) __PYX_ERR(0, 4303, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4301
 *                     # strip of leading 'n.' as redundant information
 *                     hgvs_c[i, j] = vals[ANNFidx.HGVS_C][2:]
 *                 if hgvs_p is not None and n_vals > ANNFidx.HGVS_P:             # <<<<<<<<<<<<<<
 *                     # strip of leading 'p.' as redundant information
 *                     hgvs_p[i, j] = vals[ANNFidx.HGVS_P][2:]
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4304
 *                     # strip of leading 'p.' as redundant information
 *                     hgvs_p[i, j] = vals[ANNFidx.HGVS_P][2:]
 *                 if cdna_pos is not None or cdna_length is not None and n_vals > ANNFidx.CDNA:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.CDNA]
 *                     if v:
 */
      __pyx_t_15 = (__pyx_v_cdna_pos != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (!__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L50_bool_binop_done;
      }
      __pyx_t_14 = (__pyx_v_cdna_length != Py_None);
      __pyx_t_15 = (__pyx_t_14 != 0);
      if (__pyx_t_15) {
      } else {
        __pyx_t_3 = __pyx_t_15;
        goto __pyx_L50_bool_binop_done;
      }
      __pyx_t_15 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_CDNA) != 0);
      __pyx_t_3 = __pyx_t_15;
      __pyx_L50_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4305
 *                     hgvs_p[i, j] = vals[ANNFidx.HGVS_P][2:]
 *                 if cdna_pos is not None or cdna_length is not None and n_vals > ANNFidx.CDNA:
 *                     v = vals[ANNFidx.CDNA]             # <<<<<<<<<<<<<<
 *                     if v:
 *                         vv = v.split('/')
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4305, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_CDNA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4305, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4305, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4306
 *                 if cdna_pos is not None or cdna_length is not None and n_vals > ANNFidx.CDNA:
 *                     v = vals[ANNFidx.CDNA]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         if cdna_pos is not None:
 */
        __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_v); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4306, __pyx_L1_error)
        if (__pyx_t_3) {

          /* "variant_tools/io_vcf_read.pyx":4307
 *                     v = vals[ANNFidx.CDNA]
 *                     if v:
 *                         vv = v.split('/')             # <<<<<<<<<<<<<<
 *                         if cdna_pos is not None:
 *                             cdna_pos[i, j] = int(vv[0])
 */
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_split); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4307, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_5 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
            if (likely(__pyx_t_5)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_2, function);
            }
          }
          __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s__3);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4307, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 4307, __pyx_L1_error)
          __Pyx_XDECREF_SET(__pyx_v_vv, ((PyObject*)__pyx_t_1));
          __pyx_t_1 = 0;

          /* "variant_tools/io_vcf_read.pyx":4308
 *                     if v:
 *                         vv = v.split('/')
 *                         if cdna_pos is not None:             # <<<<<<<<<<<<<<
 *                             cdna_pos[i, j] = int(vv[0])
 *                         if cdna_length is not None and len(vv) > 1:
 */
          __pyx_t_3 = (__pyx_v_cdna_pos != Py_None);
          __pyx_t_15 = (__pyx_t_3 != 0);
          if (__pyx_t_15) {

            /* "variant_tools/io_vcf_read.pyx":4309
 *                         vv = v.split('/')
 *                         if cdna_pos is not None:
 *                             cdna_pos[i, j] = int(vv[0])             # <<<<<<<<<<<<<<
 *                         if cdna_length is not None and len(vv) > 1:
 *                             cdna_length[i, j] = int(vv[1])
 */
            if (unlikely(__pyx_v_vv == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 4309, __pyx_L1_error)
            }
            __pyx_t_1 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4309, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4309, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4309, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4309, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_2);
            PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
            __Pyx_GIVEREF(__pyx_t_5);
            PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
            __pyx_t_2 = 0;
            __pyx_t_5 = 0;
            if (unlikely(PyObject_SetItem(__pyx_v_cdna_pos, __pyx_t_6, __pyx_t_1) < 0)) __PYX_ERR(0, 4309, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

            /* "variant_tools/io_vcf_read.pyx":4308
 *                     if v:
 *                         vv = v.split('/')
 *                         if cdna_pos is not None:             # <<<<<<<<<<<<<<
 *                             cdna_pos[i, j] = int(vv[0])
 *                         if cdna_length is not None and len(vv) > 1:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4310
 *                         if cdna_pos is not None:
 *                             cdna_pos[i, j] = int(vv[0])
 *                         if cdna_length is not None and len(vv) > 1:             # <<<<<<<<<<<<<<
 *                             cdna_length[i, j] = int(vv[1])
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:
 */
          __pyx_t_3 = (__pyx_v_cdna_length != Py_None);
          __pyx_t_14 = (__pyx_t_3 != 0);
          if (__pyx_t_14) {
          } else {
            __pyx_t_15 = __pyx_t_14;
            goto __pyx_L56_bool_binop_done;
          }
          if (unlikely(__pyx_v_vv == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
            __PYX_ERR(0, 4310, __pyx_L1_error)
          }
          __pyx_t_16 = PyList_GET_SIZE(__pyx_v_vv); if (unlikely(__pyx_t_16 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4310, __pyx_L1_error)
          __pyx_t_14 = ((__pyx_t_16 > 1) != 0);
          __pyx_t_15 = __pyx_t_14;
          __pyx_L56_bool_binop_done:;
          if (__pyx_t_15) {

            /* "variant_tools/io_vcf_read.pyx":4311
 *                             cdna_pos[i, j] = int(vv[0])
 *                         if cdna_length is not None and len(vv) > 1:
 *                             cdna_length[i, j] = int(vv[1])             # <<<<<<<<<<<<<<
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:
 *                     v = vals[ANNFidx.CDS]
 */
            if (unlikely(__pyx_v_vv == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 4311, __pyx_L1_error)
            }
            __pyx_t_1 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4311, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4311, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4311, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4311, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_GIVEREF(__pyx_t_6);
            PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_5);
            PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
            __pyx_t_6 = 0;
            __pyx_t_5 = 0;
            if (unlikely(PyObject_SetItem(__pyx_v_cdna_length, __pyx_t_2, __pyx_t_1) < 0)) __PYX_ERR(0, 4311, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

            /* "variant_tools/io_vcf_read.pyx":4310
 *                         if cdna_pos is not None:
 *                             cdna_pos[i, j] = int(vv[0])
 *                         if cdna_length is not None and len(vv) > 1:             # <<<<<<<<<<<<<<
 *                             cdna_length[i, j] = int(vv[1])
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4306
 *                 if cdna_pos is not None or cdna_length is not None and n_vals > ANNFidx.CDNA:
 *                     v = vals[ANNFidx.CDNA]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         if cdna_pos is not None:
 */
        }

        /* "variant_tools/io_vcf_read.pyx":4304
 *                     # strip of leading 'p.' as redundant information
 *                     hgvs_p[i, j] = vals[ANNFidx.HGVS_P][2:]
 *                 if cdna_pos is not None or cdna_length is not None and n_vals > ANNFidx.CDNA:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.CDNA]
 *                     if v:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4312
 *                         if cdna_length is not None and len(vv) > 1:
 *                             cdna_length[i, j] = int(vv[1])
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.CDS]
 *                     if v:
 */
      __pyx_t_14 = (__pyx_v_cds_pos != Py_None);
      __pyx_t_3 = (__pyx_t_14 != 0);
      if (!__pyx_t_3) {
      } else {
        __pyx_t_15 = __pyx_t_3;
        goto __pyx_L59_bool_binop_done;
      }
      __pyx_t_3 = (__pyx_v_cds_length != Py_None);
      __pyx_t_14 = (__pyx_t_3 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_15 = __pyx_t_14;
        goto __pyx_L59_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_CDS) != 0);
      __pyx_t_15 = __pyx_t_14;
      __pyx_L59_bool_binop_done:;
      if (__pyx_t_15) {

        /* "variant_tools/io_vcf_read.pyx":4313
 *                             cdna_length[i, j] = int(vv[1])
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:
 *                     v = vals[ANNFidx.CDS]             # <<<<<<<<<<<<<<
 *                     if v:
 *                         vv = v.split('/')
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4313, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_CDS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4313, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4313, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4314
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:
 *                     v = vals[ANNFidx.CDS]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         if cds_pos is not None:
 */
        __pyx_t_15 = __Pyx_PyObject_IsTrue(__pyx_v_v); if (unlikely(__pyx_t_15 < 0)) __PYX_ERR(0, 4314, __pyx_L1_error)
        if (__pyx_t_15) {

          /* "variant_tools/io_vcf_read.pyx":4315
 *                     v = vals[ANNFidx.CDS]
 *                     if v:
 *                         vv = v.split('/')             # <<<<<<<<<<<<<<
 *                         if cds_pos is not None:
 *                             cds_pos[i, j] = int(vv[0])
 */
          __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_5 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
            if (likely(__pyx_t_5)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_1, function);
            }
          }
          __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_s__3);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (!(likely(PyList_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 4315, __pyx_L1_error)
          __Pyx_XDECREF_SET(__pyx_v_vv, ((PyObject*)__pyx_t_2));
          __pyx_t_2 = 0;

          /* "variant_tools/io_vcf_read.pyx":4316
 *                     if v:
 *                         vv = v.split('/')
 *                         if cds_pos is not None:             # <<<<<<<<<<<<<<
 *                             cds_pos[i, j] = int(vv[0])
 *                         if cds_length is not None and len(vv) > 1:
 */
          __pyx_t_15 = (__pyx_v_cds_pos != Py_None);
          __pyx_t_14 = (__pyx_t_15 != 0);
          if (__pyx_t_14) {

            /* "variant_tools/io_vcf_read.pyx":4317
 *                         vv = v.split('/')
 *                         if cds_pos is not None:
 *                             cds_pos[i, j] = int(vv[0])             # <<<<<<<<<<<<<<
 *                         if cds_length is not None and len(vv) > 1:
 *                             cds_length[i, j] = int(vv[1])
 */
            if (unlikely(__pyx_v_vv == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 4317, __pyx_L1_error)
            }
            __pyx_t_2 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4317, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4317, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4317, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4317, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_1);
            PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
            __Pyx_GIVEREF(__pyx_t_5);
            PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
            __pyx_t_1 = 0;
            __pyx_t_5 = 0;
            if (unlikely(PyObject_SetItem(__pyx_v_cds_pos, __pyx_t_6, __pyx_t_2) < 0)) __PYX_ERR(0, 4317, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

            /* "variant_tools/io_vcf_read.pyx":4316
 *                     if v:
 *                         vv = v.split('/')
 *                         if cds_pos is not None:             # <<<<<<<<<<<<<<
 *                             cds_pos[i, j] = int(vv[0])
 *                         if cds_length is not None and len(vv) > 1:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4318
 *                         if cds_pos is not None:
 *                             cds_pos[i, j] = int(vv[0])
 *                         if cds_length is not None and len(vv) > 1:             # <<<<<<<<<<<<<<
 *                             cds_length[i, j] = int(vv[1])
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:
 */
          __pyx_t_15 = (__pyx_v_cds_length != Py_None);
          __pyx_t_3 = (__pyx_t_15 != 0);
          if (__pyx_t_3) {
          } else {
            __pyx_t_14 = __pyx_t_3;
            goto __pyx_L65_bool_binop_done;
          }
          if (unlikely(__pyx_v_vv == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
            __PYX_ERR(0, 4318, __pyx_L1_error)
          }
          __pyx_t_16 = PyList_GET_SIZE(__pyx_v_vv); if (unlikely(__pyx_t_16 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4318, __pyx_L1_error)
          __pyx_t_3 = ((__pyx_t_16 > 1) != 0);
          __pyx_t_14 = __pyx_t_3;
          __pyx_L65_bool_binop_done:;
          if (__pyx_t_14) {

            /* "variant_tools/io_vcf_read.pyx":4319
 *                             cds_pos[i, j] = int(vv[0])
 *                         if cds_length is not None and len(vv) > 1:
 *                             cds_length[i, j] = int(vv[1])             # <<<<<<<<<<<<<<
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:
 *                     v = vals[ANNFidx.AA]
 */
            if (unlikely(__pyx_v_vv == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 4319, __pyx_L1_error)
            }
            __pyx_t_2 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4319, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4319, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4319, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4319, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_GIVEREF(__pyx_t_6);
            PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_5);
            PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
            __pyx_t_6 = 0;
            __pyx_t_5 = 0;
            if (unlikely(PyObject_SetItem(__pyx_v_cds_length, __pyx_t_1, __pyx_t_2) < 0)) __PYX_ERR(0, 4319, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

            /* "variant_tools/io_vcf_read.pyx":4318
 *                         if cds_pos is not None:
 *                             cds_pos[i, j] = int(vv[0])
 *                         if cds_length is not None and len(vv) > 1:             # <<<<<<<<<<<<<<
 *                             cds_length[i, j] = int(vv[1])
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4314
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:
 *                     v = vals[ANNFidx.CDS]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         if cds_pos is not None:
 */
        }

        /* "variant_tools/io_vcf_read.pyx":4312
 *                         if cdna_length is not None and len(vv) > 1:
 *                             cdna_length[i, j] = int(vv[1])
 *                 if cds_pos is not None or cds_length is not None and n_vals > ANNFidx.CDS:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.CDS]
 *                     if v:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4320
 *                         if cds_length is not None and len(vv) > 1:
 *                             cds_length[i, j] = int(vv[1])
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.AA]
 *                     if v:
 */
      __pyx_t_3 = (__pyx_v_aa_pos != Py_None);
      __pyx_t_15 = (__pyx_t_3 != 0);
      if (!__pyx_t_15) {
      } else {
        __pyx_t_14 = __pyx_t_15;
        goto __pyx_L68_bool_binop_done;
      }
      __pyx_t_15 = (__pyx_v_aa_length != Py_None);
      __pyx_t_3 = (__pyx_t_15 != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_14 = __pyx_t_3;
        goto __pyx_L68_bool_binop_done;
      }
      __pyx_t_3 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_AA) != 0);
      __pyx_t_14 = __pyx_t_3;
      __pyx_L68_bool_binop_done:;
      if (__pyx_t_14) {

        /* "variant_tools/io_vcf_read.pyx":4321
 *                             cds_length[i, j] = int(vv[1])
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:
 *                     v = vals[ANNFidx.AA]             # <<<<<<<<<<<<<<
 *                     if v:
 *                         vv = v.split('/')
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4321, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_AA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4321, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4321, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "variant_tools/io_vcf_read.pyx":4322
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:
 *                     v = vals[ANNFidx.AA]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         if aa_pos is not None:
 */
        __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_v); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 4322, __pyx_L1_error)
        if (__pyx_t_14) {

          /* "variant_tools/io_vcf_read.pyx":4323
 *                     v = vals[ANNFidx.AA]
 *                     if v:
 *                         vv = v.split('/')             # <<<<<<<<<<<<<<
 *                         if aa_pos is not None:
 *                             aa_pos[i, j] = int(vv[0])
 */
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_split); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4323, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_5 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
            if (likely(__pyx_t_5)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_2, function);
            }
          }
          __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_kp_s__3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_kp_s__3);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4323, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 4323, __pyx_L1_error)
          __Pyx_XDECREF_SET(__pyx_v_vv, ((PyObject*)__pyx_t_1));
          __pyx_t_1 = 0;

          /* "variant_tools/io_vcf_read.pyx":4324
 *                     if v:
 *                         vv = v.split('/')
 *                         if aa_pos is not None:             # <<<<<<<<<<<<<<
 *                             aa_pos[i, j] = int(vv[0])
 *                         if aa_length is not None and len(vv) > 1:
 */
          __pyx_t_14 = (__pyx_v_aa_pos != Py_None);
          __pyx_t_3 = (__pyx_t_14 != 0);
          if (__pyx_t_3) {

            /* "variant_tools/io_vcf_read.pyx":4325
 *                         vv = v.split('/')
 *                         if aa_pos is not None:
 *                             aa_pos[i, j] = int(vv[0])             # <<<<<<<<<<<<<<
 *                         if aa_length is not None and len(vv) > 1:
 *                             aa_length[i, j] = int(vv[1])
 */
            if (unlikely(__pyx_v_vv == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 4325, __pyx_L1_error)
            }
            __pyx_t_1 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4325, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4325, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4325, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4325, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_2);
            PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
            __Pyx_GIVEREF(__pyx_t_5);
            PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
            __pyx_t_2 = 0;
            __pyx_t_5 = 0;
            if (unlikely(PyObject_SetItem(__pyx_v_aa_pos, __pyx_t_6, __pyx_t_1) < 0)) __PYX_ERR(0, 4325, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

            /* "variant_tools/io_vcf_read.pyx":4324
 *                     if v:
 *                         vv = v.split('/')
 *                         if aa_pos is not None:             # <<<<<<<<<<<<<<
 *                             aa_pos[i, j] = int(vv[0])
 *                         if aa_length is not None and len(vv) > 1:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4326
 *                         if aa_pos is not None:
 *                             aa_pos[i, j] = int(vv[0])
 *                         if aa_length is not None and len(vv) > 1:             # <<<<<<<<<<<<<<
 *                             aa_length[i, j] = int(vv[1])
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:
 */
          __pyx_t_14 = (__pyx_v_aa_length != Py_None);
          __pyx_t_15 = (__pyx_t_14 != 0);
          if (__pyx_t_15) {
          } else {
            __pyx_t_3 = __pyx_t_15;
            goto __pyx_L74_bool_binop_done;
          }
          if (unlikely(__pyx_v_vv == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
            __PYX_ERR(0, 4326, __pyx_L1_error)
          }
          __pyx_t_16 = PyList_GET_SIZE(__pyx_v_vv); if (unlikely(__pyx_t_16 == ((Py_ssize_t)-1))) __PYX_ERR(0, 4326, __pyx_L1_error)
          __pyx_t_15 = ((__pyx_t_16 > 1) != 0);
          __pyx_t_3 = __pyx_t_15;
          __pyx_L74_bool_binop_done:;
          if (__pyx_t_3) {

            /* "variant_tools/io_vcf_read.pyx":4327
 *                             aa_pos[i, j] = int(vv[0])
 *                         if aa_length is not None and len(vv) > 1:
 *                             aa_length[i, j] = int(vv[1])             # <<<<<<<<<<<<<<
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:
 *                     v = vals[ANNFidx.DISTANCE]
 */
            if (unlikely(__pyx_v_vv == Py_None)) {
              PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
              __PYX_ERR(0, 4327, __pyx_L1_error)
            }
            __pyx_t_1 = __Pyx_PyNumber_Int(PyList_GET_ITEM(__pyx_v_vv, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4327, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4327, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4327, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4327, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_GIVEREF(__pyx_t_6);
            PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_5);
            PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
            __pyx_t_6 = 0;
            __pyx_t_5 = 0;
            if (unlikely(PyObject_SetItem(__pyx_v_aa_length, __pyx_t_2, __pyx_t_1) < 0)) __PYX_ERR(0, 4327, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

            /* "variant_tools/io_vcf_read.pyx":4326
 *                         if aa_pos is not None:
 *                             aa_pos[i, j] = int(vv[0])
 *                         if aa_length is not None and len(vv) > 1:             # <<<<<<<<<<<<<<
 *                             aa_length[i, j] = int(vv[1])
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:
 */
          }

          /* "variant_tools/io_vcf_read.pyx":4322
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:
 *                     v = vals[ANNFidx.AA]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         vv = v.split('/')
 *                         if aa_pos is not None:
 */
        }

        /* "variant_tools/io_vcf_read.pyx":4320
 *                         if cds_length is not None and len(vv) > 1:
 *                             cds_length[i, j] = int(vv[1])
 *                 if aa_pos is not None or aa_length is not None and n_vals > ANNFidx.AA:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.AA]
 *                     if v:
 */
      }

      /* "variant_tools/io_vcf_read.pyx":4328
 *                         if aa_length is not None and len(vv) > 1:
 *                             aa_length[i, j] = int(vv[1])
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.DISTANCE]
 *                     if v:
 */
      __pyx_t_15 = (__pyx_v_distance != Py_None);
      __pyx_t_14 = (__pyx_t_15 != 0);
      if (__pyx_t_14) {
      } else {
        __pyx_t_3 = __pyx_t_14;
        goto __pyx_L77_bool_binop_done;
      }
      __pyx_t_14 = ((__pyx_v_n_vals > __pyx_e_13variant_tools_11io_vcf_read_DISTANCE) != 0);
      __pyx_t_3 = __pyx_t_14;
      __pyx_L77_bool_binop_done:;
      if (__pyx_t_3) {

        /* "variant_tools/io_vcf_read.pyx":4329
 *                             aa_length[i, j] = int(vv[1])
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:
 *                     v = vals[ANNFidx.DISTANCE]             # <<<<<<<<<<<<<<
 *                     if v:
 *                         distance[i, j] = int(v)
 */
        if (unlikely(__pyx_v_vals == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 4329, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(__pyx_e_13variant_tools_11io_vcf_read_DISTANCE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4329, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_vals, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4329, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "variant_tools/io_vcf_read.pyx":4330
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:
 *                     v = vals[ANNFidx.DISTANCE]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         distance[i, j] = int(v)
 * 
 */
        __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_v); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 4330, __pyx_L1_error)
        if (__pyx_t_3) {

          /* "variant_tools/io_vcf_read.pyx":4331
 *                     v = vals[ANNFidx.DISTANCE]
 *                     if v:
 *                         distance[i, j] = int(v)             # <<<<<<<<<<<<<<
 * 
 *         ann_chunk = dict()
 */
          __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4331, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4331, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4331, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4331, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_GIVEREF(__pyx_t_1);
          PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
          __Pyx_GIVEREF(__pyx_t_5);
          PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
          __pyx_t_1 = 0;
          __pyx_t_5 = 0;
          if (unlikely(PyObject_SetItem(__pyx_v_distance, __pyx_t_6, __pyx_t_2) < 0)) __PYX_ERR(0, 4331, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "variant_tools/io_vcf_read.pyx":4330
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:
 *                     v = vals[ANNFidx.DISTANCE]
 *                     if v:             # <<<<<<<<<<<<<<
 *                         distance[i, j] = int(v)
 * 
 */
        }

        /* "variant_tools/io_vcf_read.pyx":4328
 *                         if aa_length is not None and len(vv) > 1:
 *                             aa_length[i, j] = int(vv[1])
 *                 if distance is not None and n_vals > ANNFidx.DISTANCE:             # <<<<<<<<<<<<<<
 *                     v = vals[ANNFidx.DISTANCE]
 *                     if v:
 */
      }
      __pyx_L7_continue:;
    }
  }

  /* "variant_tools/io_vcf_read.pyx":4333
 *                         distance[i, j] = int(v)
 * 
 *         ann_chunk = dict()             # <<<<<<<<<<<<<<
 *         if allele is not None:
 *             ann_chunk[ANN_ALLELE_FIELD] = allele
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_ann_chunk = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":4334
 * 
 *         ann_chunk = dict()
 *         if allele is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_ALLELE_FIELD] = allele
 *         if annotation is not None:
 */
  __pyx_t_3 = (__pyx_v_allele != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4335
 *         ann_chunk = dict()
 *         if allele is not None:
 *             ann_chunk[ANN_ALLELE_FIELD] = allele             # <<<<<<<<<<<<<<
 *         if annotation is not None:
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_ALLELE_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4335, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_allele) < 0)) __PYX_ERR(0, 4335, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4334
 * 
 *         ann_chunk = dict()
 *         if allele is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_ALLELE_FIELD] = allele
 *         if annotation is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4336
 *         if allele is not None:
 *             ann_chunk[ANN_ALLELE_FIELD] = allele
 *         if annotation is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation
 *         if annotation_impact is not None:
 */
  __pyx_t_14 = (__pyx_v_annotation != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4337
 *             ann_chunk[ANN_ALLELE_FIELD] = allele
 *         if annotation is not None:
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation             # <<<<<<<<<<<<<<
 *         if annotation_impact is not None:
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_ANNOTATION_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_annotation) < 0)) __PYX_ERR(0, 4337, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4336
 *         if allele is not None:
 *             ann_chunk[ANN_ALLELE_FIELD] = allele
 *         if annotation is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation
 *         if annotation_impact is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4338
 *         if annotation is not None:
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation
 *         if annotation_impact is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact
 *         if gene_name is not None:
 */
  __pyx_t_3 = (__pyx_v_annotation_impact != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4339
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation
 *         if annotation_impact is not None:
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact             # <<<<<<<<<<<<<<
 *         if gene_name is not None:
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_annotation_impact) < 0)) __PYX_ERR(0, 4339, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4338
 *         if annotation is not None:
 *             ann_chunk[ANN_ANNOTATION_FIELD] = annotation
 *         if annotation_impact is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact
 *         if gene_name is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4340
 *         if annotation_impact is not None:
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact
 *         if gene_name is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name
 *         if gene_id is not None:
 */
  __pyx_t_14 = (__pyx_v_gene_name != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4341
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact
 *         if gene_name is not None:
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name             # <<<<<<<<<<<<<<
 *         if gene_id is not None:
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_GENE_NAME_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_gene_name) < 0)) __PYX_ERR(0, 4341, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4340
 *         if annotation_impact is not None:
 *             ann_chunk[ANN_ANNOTATION_IMPACT_FIELD] = annotation_impact
 *         if gene_name is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name
 *         if gene_id is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4342
 *         if gene_name is not None:
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name
 *         if gene_id is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id
 *         if feature_type is not None:
 */
  __pyx_t_3 = (__pyx_v_gene_id != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4343
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name
 *         if gene_id is not None:
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id             # <<<<<<<<<<<<<<
 *         if feature_type is not None:
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_GENE_ID_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4343, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_gene_id) < 0)) __PYX_ERR(0, 4343, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4342
 *         if gene_name is not None:
 *             ann_chunk[ANN_GENE_NAME_FIELD] = gene_name
 *         if gene_id is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id
 *         if feature_type is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4344
 *         if gene_id is not None:
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id
 *         if feature_type is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type
 *         if feature_id is not None:
 */
  __pyx_t_14 = (__pyx_v_feature_type != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4345
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id
 *         if feature_type is not None:
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type             # <<<<<<<<<<<<<<
 *         if feature_id is not None:
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_FEATURE_TYPE_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_feature_type) < 0)) __PYX_ERR(0, 4345, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4344
 *         if gene_id is not None:
 *             ann_chunk[ANN_GENE_ID_FIELD] = gene_id
 *         if feature_type is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type
 *         if feature_id is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4346
 *         if feature_type is not None:
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type
 *         if feature_id is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id
 *         if transcript_biotype is not None:
 */
  __pyx_t_3 = (__pyx_v_feature_id != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4347
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type
 *         if feature_id is not None:
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id             # <<<<<<<<<<<<<<
 *         if transcript_biotype is not None:
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_FEATURE_ID_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_feature_id) < 0)) __PYX_ERR(0, 4347, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4346
 *         if feature_type is not None:
 *             ann_chunk[ANN_FEATURE_TYPE_FIELD] = feature_type
 *         if feature_id is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id
 *         if transcript_biotype is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4348
 *         if feature_id is not None:
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id
 *         if transcript_biotype is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype
 *         if rank is not None:
 */
  __pyx_t_14 = (__pyx_v_transcript_biotype != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4349
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id
 *         if transcript_biotype is not None:
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype             # <<<<<<<<<<<<<<
 *         if rank is not None:
 *             ann_chunk[ANN_RANK_FIELD] = rank
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_transcript_biotype) < 0)) __PYX_ERR(0, 4349, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4348
 *         if feature_id is not None:
 *             ann_chunk[ANN_FEATURE_ID_FIELD] = feature_id
 *         if transcript_biotype is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype
 *         if rank is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4350
 *         if transcript_biotype is not None:
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype
 *         if rank is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_RANK_FIELD] = rank
 *         if hgvs_c is not None:
 */
  __pyx_t_3 = (__pyx_v_rank != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4351
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype
 *         if rank is not None:
 *             ann_chunk[ANN_RANK_FIELD] = rank             # <<<<<<<<<<<<<<
 *         if hgvs_c is not None:
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_RANK_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_rank) < 0)) __PYX_ERR(0, 4351, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4350
 *         if transcript_biotype is not None:
 *             ann_chunk[ANN_TRANSCRIPT_BIOTYPE_FIELD] = transcript_biotype
 *         if rank is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_RANK_FIELD] = rank
 *         if hgvs_c is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4352
 *         if rank is not None:
 *             ann_chunk[ANN_RANK_FIELD] = rank
 *         if hgvs_c is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c
 *         if hgvs_p is not None:
 */
  __pyx_t_14 = (__pyx_v_hgvs_c != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4353
 *             ann_chunk[ANN_RANK_FIELD] = rank
 *         if hgvs_c is not None:
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c             # <<<<<<<<<<<<<<
 *         if hgvs_p is not None:
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_HGVS_C_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_hgvs_c) < 0)) __PYX_ERR(0, 4353, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4352
 *         if rank is not None:
 *             ann_chunk[ANN_RANK_FIELD] = rank
 *         if hgvs_c is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c
 *         if hgvs_p is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4354
 *         if hgvs_c is not None:
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c
 *         if hgvs_p is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p
 *         if cdna_pos is not None:
 */
  __pyx_t_3 = (__pyx_v_hgvs_p != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4355
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c
 *         if hgvs_p is not None:
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p             # <<<<<<<<<<<<<<
 *         if cdna_pos is not None:
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_HGVS_P_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4355, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_hgvs_p) < 0)) __PYX_ERR(0, 4355, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4354
 *         if hgvs_c is not None:
 *             ann_chunk[ANN_HGVS_C_FIELD] = hgvs_c
 *         if hgvs_p is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p
 *         if cdna_pos is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4356
 *         if hgvs_p is not None:
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p
 *         if cdna_pos is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos
 *         if cdna_length is not None:
 */
  __pyx_t_14 = (__pyx_v_cdna_pos != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4357
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p
 *         if cdna_pos is not None:
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos             # <<<<<<<<<<<<<<
 *         if cdna_length is not None:
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_CDNA_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_cdna_pos) < 0)) __PYX_ERR(0, 4357, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4356
 *         if hgvs_p is not None:
 *             ann_chunk[ANN_HGVS_P_FIELD] = hgvs_p
 *         if cdna_pos is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos
 *         if cdna_length is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4358
 *         if cdna_pos is not None:
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos
 *         if cdna_length is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length
 *         if cds_pos is not None:
 */
  __pyx_t_3 = (__pyx_v_cdna_length != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4359
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos
 *         if cdna_length is not None:
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length             # <<<<<<<<<<<<<<
 *         if cds_pos is not None:
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_CDNA_LENGTH_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_cdna_length) < 0)) __PYX_ERR(0, 4359, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4358
 *         if cdna_pos is not None:
 *             ann_chunk[ANN_CDNA_POS_FIELD] = cdna_pos
 *         if cdna_length is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length
 *         if cds_pos is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4360
 *         if cdna_length is not None:
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length
 *         if cds_pos is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos
 *         if cds_length is not None:
 */
  __pyx_t_14 = (__pyx_v_cds_pos != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4361
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length
 *         if cds_pos is not None:
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos             # <<<<<<<<<<<<<<
 *         if cds_length is not None:
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_CDS_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_cds_pos) < 0)) __PYX_ERR(0, 4361, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4360
 *         if cdna_length is not None:
 *             ann_chunk[ANN_CDNA_LENGTH_FIELD] = cdna_length
 *         if cds_pos is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos
 *         if cds_length is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4362
 *         if cds_pos is not None:
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos
 *         if cds_length is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length
 *         if aa_pos is not None:
 */
  __pyx_t_3 = (__pyx_v_cds_length != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4363
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos
 *         if cds_length is not None:
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length             # <<<<<<<<<<<<<<
 *         if aa_pos is not None:
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_CDS_LENGTH_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_cds_length) < 0)) __PYX_ERR(0, 4363, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4362
 *         if cds_pos is not None:
 *             ann_chunk[ANN_CDS_POS_FIELD] = cds_pos
 *         if cds_length is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length
 *         if aa_pos is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4364
 *         if cds_length is not None:
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length
 *         if aa_pos is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos
 *         if aa_length is not None:
 */
  __pyx_t_14 = (__pyx_v_aa_pos != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4365
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length
 *         if aa_pos is not None:
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos             # <<<<<<<<<<<<<<
 *         if aa_length is not None:
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_AA_POS_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_aa_pos) < 0)) __PYX_ERR(0, 4365, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4364
 *         if cds_length is not None:
 *             ann_chunk[ANN_CDS_LENGTH_FIELD] = cds_length
 *         if aa_pos is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos
 *         if aa_length is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4366
 *         if aa_pos is not None:
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos
 *         if aa_length is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length
 *         if distance is not None:
 */
  __pyx_t_3 = (__pyx_v_aa_length != Py_None);
  __pyx_t_14 = (__pyx_t_3 != 0);
  if (__pyx_t_14) {

    /* "variant_tools/io_vcf_read.pyx":4367
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos
 *         if aa_length is not None:
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length             # <<<<<<<<<<<<<<
 *         if distance is not None:
 *             ann_chunk[ANN_DISTANCE_FIELD] = distance
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_AA_LENGTH_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4367, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_aa_length) < 0)) __PYX_ERR(0, 4367, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4366
 *         if aa_pos is not None:
 *             ann_chunk[ANN_AA_POS_FIELD] = aa_pos
 *         if aa_length is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length
 *         if distance is not None:
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4368
 *         if aa_length is not None:
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length
 *         if distance is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_DISTANCE_FIELD] = distance
 * 
 */
  __pyx_t_14 = (__pyx_v_distance != Py_None);
  __pyx_t_3 = (__pyx_t_14 != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4369
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length
 *         if distance is not None:
 *             ann_chunk[ANN_DISTANCE_FIELD] = distance             # <<<<<<<<<<<<<<
 * 
 *         if number == 1:
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_DISTANCE_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4369, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_t_2, __pyx_v_distance) < 0)) __PYX_ERR(0, 4369, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4368
 *         if aa_length is not None:
 *             ann_chunk[ANN_AA_LENGTH_FIELD] = aa_length
 *         if distance is not None:             # <<<<<<<<<<<<<<
 *             ann_chunk[ANN_DISTANCE_FIELD] = distance
 * 
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4371
 *             ann_chunk[ANN_DISTANCE_FIELD] = distance
 * 
 *         if number == 1:             # <<<<<<<<<<<<<<
 *             for k in list(ann_chunk.keys()):
 *                 ann_chunk[k] = ann_chunk[k].squeeze(axis=1)
 */
  __pyx_t_3 = ((__pyx_v_number == 1) != 0);
  if (__pyx_t_3) {

    /* "variant_tools/io_vcf_read.pyx":4372
 * 
 *         if number == 1:
 *             for k in list(ann_chunk.keys()):             # <<<<<<<<<<<<<<
 *                 ann_chunk[k] = ann_chunk[k].squeeze(axis=1)
 * 
 */
    __pyx_t_2 = __Pyx_PyDict_Keys(__pyx_v_ann_chunk); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    for (;;) {
      if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 4372, __pyx_L1_error)
      #else
      __pyx_t_6 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4372, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      #endif
      __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "variant_tools/io_vcf_read.pyx":4373
 *         if number == 1:
 *             for k in list(ann_chunk.keys()):
 *                 ann_chunk[k] = ann_chunk[k].squeeze(axis=1)             # <<<<<<<<<<<<<<
 * 
 *         chunk.update(ann_chunk)
 */
      __pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_v_ann_chunk, __pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4373, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_squeeze); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4373, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4373, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_axis, __pyx_int_1) < 0) __PYX_ERR(0, 4373, __pyx_L1_error)
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4373, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(PyDict_SetItem(__pyx_v_ann_chunk, __pyx_v_k, __pyx_t_1) < 0)) __PYX_ERR(0, 4373, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "variant_tools/io_vcf_read.pyx":4372
 * 
 *         if number == 1:
 *             for k in list(ann_chunk.keys()):             # <<<<<<<<<<<<<<
 *                 ann_chunk[k] = ann_chunk[k].squeeze(axis=1)
 * 
 */
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "variant_tools/io_vcf_read.pyx":4371
 *             ann_chunk[ANN_DISTANCE_FIELD] = distance
 * 
 *         if number == 1:             # <<<<<<<<<<<<<<
 *             for k in list(ann_chunk.keys()):
 *                 ann_chunk[k] = ann_chunk[k].squeeze(axis=1)
 */
  }

  /* "variant_tools/io_vcf_read.pyx":4375
 *                 ann_chunk[k] = ann_chunk[k].squeeze(axis=1)
 * 
 *         chunk.update(ann_chunk)             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_chunk, __pyx_n_s_update); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_v_ann_chunk) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_ann_chunk);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":4220
 *         return a
 * 
 *     def transform_chunk(self, chunk):             # <<<<<<<<<<<<<<
 *         cdef:
 *             Py_ssize_t i, j, chunk_length, number, n_vals
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer.transform_chunk", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_vals);
  __Pyx_XDECREF(__pyx_v_vv);
  __Pyx_XDECREF(__pyx_v_ann);
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_XDECREF(__pyx_v_allele);
  __Pyx_XDECREF(__pyx_v_annotation);
  __Pyx_XDECREF(__pyx_v_annotation_impact);
  __Pyx_XDECREF(__pyx_v_gene_name);
  __Pyx_XDECREF(__pyx_v_gene_id);
  __Pyx_XDECREF(__pyx_v_feature_type);
  __Pyx_XDECREF(__pyx_v_feature_id);
  __Pyx_XDECREF(__pyx_v_transcript_biotype);
  __Pyx_XDECREF(__pyx_v_rank);
  __Pyx_XDECREF(__pyx_v_hgvs_c);
  __Pyx_XDECREF(__pyx_v_hgvs_p);
  __Pyx_XDECREF(__pyx_v_cdna_pos);
  __Pyx_XDECREF(__pyx_v_cdna_length);
  __Pyx_XDECREF(__pyx_v_cds_pos);
  __Pyx_XDECREF(__pyx_v_cds_length);
  __Pyx_XDECREF(__pyx_v_aa_pos);
  __Pyx_XDECREF(__pyx_v_aa_length);
  __Pyx_XDECREF(__pyx_v_distance);
  __Pyx_XDECREF(__pyx_v_raw);
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XDECREF(__pyx_v_ann_chunk);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_10__reduce_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_10__reduce_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.fields, self.keep_original, self.types)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->keep_original); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->fields);
  __Pyx_GIVEREF(__pyx_v_self->fields);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->fields);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_INCREF(__pyx_v_self->types);
  __Pyx_GIVEREF(__pyx_v_self->types);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->types);
  __pyx_t_1 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.fields, self.keep_original, self.types)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_2 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v__dict = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "(tree fragment)":7
 *     state = (self.fields, self.keep_original, self.types)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_3 = (__pyx_v__dict != Py_None);
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__dict);
    __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.fields is not None or self.types is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.fields, self.keep_original, self.types)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.fields is not None or self.types is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, None), state
 */
  /*else*/ {
    __pyx_t_3 = (__pyx_v_self->fields != ((PyObject*)Py_None));
    __pyx_t_5 = (__pyx_t_3 != 0);
    if (!__pyx_t_5) {
    } else {
      __pyx_t_4 = __pyx_t_5;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->types != Py_None);
    __pyx_t_3 = (__pyx_t_5 != 0);
    __pyx_t_4 = __pyx_t_3;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_4;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.fields is not None or self.types is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, None), state
 *     else:
 */
  __pyx_t_4 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_4) {

    /* "(tree fragment)":13
 *         use_setstate = self.fields is not None or self.types is not None
 *     if use_setstate:
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_ANNTransformer); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_126768758);
    __Pyx_GIVEREF(__pyx_int_126768758);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_126768758);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.fields is not None or self.types is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, None), state
 *     else:
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_ANNTransformer__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pyx_unpickle_ANNTransformer); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_126768758);
    __Pyx_GIVEREF(__pyx_int_126768758);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_126768758);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_state);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __pyx_t_6 = 0;
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_ANNTransformer__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_12__setstate_cython__(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14ANNTransformer_12__setstate_cython__(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_ANNTransformer__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_ANNTransformer__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_ANNTransformer, (type(self), 0x78e5676, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_ANNTransformer__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.ANNTransformer.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_InputStreamBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_11__pyx_unpickle_InputStreamBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_11__pyx_unpickle_InputStreamBase = {"__pyx_unpickle_InputStreamBase", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_11__pyx_unpickle_InputStreamBase, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_11__pyx_unpickle_InputStreamBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_InputStreamBase (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_InputStreamBase", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_InputStreamBase", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_InputStreamBase") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_InputStreamBase", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_InputStreamBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_10__pyx_unpickle_InputStreamBase(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_10__pyx_unpickle_InputStreamBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_InputStreamBase", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x4a8a08f:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x4a8a08f) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x4a8a08f:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)
 *     __pyx_result = InputStreamBase.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x4a8a08f:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = InputStreamBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x4a, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x4a8a08f:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)
 *     __pyx_result = InputStreamBase.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)
 *     __pyx_result = InputStreamBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = InputStreamBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_InputStreamBase__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4a8a08f = (c))" % __pyx_checksum)
 *     __pyx_result = InputStreamBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.c = __pyx_state[0]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_InputStreamBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_InputStreamBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.c = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_InputStreamBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char __pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_InputStreamBase__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.c = __pyx_state[0]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[1])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyInt_As_char(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (char)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->c = __pyx_t_1;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.c = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[1])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_3 > 1) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_2 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "(tree fragment)":14
 *     __pyx_result.c = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[1])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_6 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 1));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.c = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[1])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.c = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_InputStreamBase__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_FileInputStream(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13__pyx_unpickle_FileInputStream(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_13__pyx_unpickle_FileInputStream = {"__pyx_unpickle_FileInputStream", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_13__pyx_unpickle_FileInputStream, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_13__pyx_unpickle_FileInputStream(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_FileInputStream (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FileInputStream", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FileInputStream", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_FileInputStream") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_FileInputStream", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_FileInputStream", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_12__pyx_unpickle_FileInputStream(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_12__pyx_unpickle_FileInputStream(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_FileInputStream", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x8c48138:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x8c48138) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x8c48138:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)
 *     __pyx_result = FileInputStream.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x8c48138:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = FileInputStream.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x8c, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x8c48138:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)
 *     __pyx_result = FileInputStream.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_FileInputStream), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)
 *     __pyx_result = FileInputStream.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = FileInputStream.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_FileInputStream__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x8c48138 = (buffer, buffer_end, buffer_size, buffer_start, c, close, fileobj, stream))" % __pyx_checksum)
 *     __pyx_result = FileInputStream.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_FileInputStream(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_FileInputStream", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_FileInputStream__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  Py_ssize_t __pyx_t_3;
  char __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_FileInputStream__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyByteArray_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytearray", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->buffer);
  __Pyx_DECREF(__pyx_v___pyx_result->buffer);
  __pyx_v___pyx_result->buffer = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->buffer_end = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 2)); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->buffer_size = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->buffer_start = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyInt_As_char(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)); if (unlikely((__pyx_t_4 == (char)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.c = __pyx_t_4;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->close = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->fileobj);
  __Pyx_DECREF(__pyx_v___pyx_result->fileobj);
  __pyx_v___pyx_result->fileobj = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->stream = __pyx_t_2;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = ((__pyx_t_3 > 8) != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_7 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_7;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_5) {

    /* "(tree fragment)":14
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_update); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_9, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_FileInputStream__set_state(<FileInputStream> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_FileInputStream__set_state(FileInputStream __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.buffer = __pyx_state[0]; __pyx_result.buffer_end = __pyx_state[1]; __pyx_result.buffer_size = __pyx_state[2]; __pyx_result.buffer_start = __pyx_state[3]; __pyx_result.c = __pyx_state[4]; __pyx_result.close = __pyx_state[5]; __pyx_result.fileobj = __pyx_state[6]; __pyx_result.stream = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_FileInputStream__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFChunkIterator(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15__pyx_unpickle_VCFChunkIterator(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_15__pyx_unpickle_VCFChunkIterator = {"__pyx_unpickle_VCFChunkIterator", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_15__pyx_unpickle_VCFChunkIterator, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_15__pyx_unpickle_VCFChunkIterator(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFChunkIterator (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFChunkIterator", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFChunkIterator", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFChunkIterator") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFChunkIterator", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFChunkIterator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_14__pyx_unpickle_VCFChunkIterator(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_14__pyx_unpickle_VCFChunkIterator(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFChunkIterator", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x710ccc2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x710ccc2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x710ccc2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)
 *     __pyx_result = VCFChunkIterator.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x710ccc2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFChunkIterator.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x71, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x710ccc2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)
 *     __pyx_result = VCFChunkIterator.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFChunkIterator), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)
 *     __pyx_result = VCFChunkIterator.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFChunkIterator.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChunkIterator__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x710ccc2 = (context, parser, stream))" % __pyx_checksum)
 *     __pyx_result = VCFChunkIterator.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFChunkIterator(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFChunkIterator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChunkIterator__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFChunkIterator__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[3])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0), __pyx_ptype_13variant_tools_11io_vcf_read_VCFContext))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->context);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->context));
  __pyx_v___pyx_result->context = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_13variant_tools_11io_vcf_read_VCFParser))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->parser));
  __pyx_v___pyx_result->parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 2)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 2), __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->stream);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->stream));
  __pyx_v___pyx_result->stream = ((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[3])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_3 > 3) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_2 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "(tree fragment)":14
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[3])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 3));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[3])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFChunkIterator__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17__pyx_unpickle_VCFParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_17__pyx_unpickle_VCFParser = {"__pyx_unpickle_VCFParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_17__pyx_unpickle_VCFParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_17__pyx_unpickle_VCFParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_16__pyx_unpickle_VCFParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_16__pyx_unpickle_VCFParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x4539edd:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x4539edd) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x4539edd:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)
 *     __pyx_result = VCFParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x4539edd:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x45, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x4539edd:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)
 *     __pyx_result = VCFParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)
 *     __pyx_result = VCFParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x4539edd = (alt_parser, calldata_parser, chrom_pos_parser, chunk_length, filter_parser, format_parser, id_parser, info_parser, loc_samples, qual_parser, ref_parser, region_begin, region_chrom, region_end))" % __pyx_checksum)
 *     __pyx_result = VCFParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]
 *     if len(__pyx_state) > 14 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 14 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[14])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->alt_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->alt_parser));
  __pyx_v___pyx_result->alt_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->calldata_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->calldata_parser));
  __pyx_v___pyx_result->calldata_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 2)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 2), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->chrom_pos_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->chrom_pos_parser));
  __pyx_v___pyx_result->chrom_pos_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->chunk_length = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->filter_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->filter_parser));
  __pyx_v___pyx_result->filter_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 5);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->format_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->format_parser));
  __pyx_v___pyx_result->format_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->id_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->id_parser));
  __pyx_v___pyx_result->id_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->info_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->info_parser));
  __pyx_v___pyx_result->info_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->loc_samples, 0);
  __pyx_v___pyx_result->loc_samples = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 9), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 9);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->qual_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->qual_parser));
  __pyx_v___pyx_result->qual_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 10)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 10), __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 10);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->ref_parser);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->ref_parser));
  __pyx_v___pyx_result->ref_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 11)); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->region_begin = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 12)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 12)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 12))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 12);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->region_chrom);
  __Pyx_DECREF(__pyx_v___pyx_result->region_chrom);
  __pyx_v___pyx_result->region_chrom = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 13)); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->region_end = __pyx_t_2;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]
 *     if len(__pyx_state) > 14 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[14])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_2 > 14) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]
 *     if len(__pyx_state) > 14 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[14])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 14)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 14));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]
 *     if len(__pyx_state) > 14 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[14])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFParser__set_state(<VCFParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFParser__set_state(VCFParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.alt_parser = __pyx_state[0]; __pyx_result.calldata_parser = __pyx_state[1]; __pyx_result.chrom_pos_parser = __pyx_state[2]; __pyx_result.chunk_length = __pyx_state[3]; __pyx_result.filter_parser = __pyx_state[4]; __pyx_result.format_parser = __pyx_state[5]; __pyx_result.id_parser = __pyx_state[6]; __pyx_result.info_parser = __pyx_state[7]; __pyx_result.loc_samples = __pyx_state[8]; __pyx_result.qual_parser = __pyx_state[9]; __pyx_result.ref_parser = __pyx_state[10]; __pyx_result.region_begin = __pyx_state[11]; __pyx_result.region_chrom = __pyx_state[12]; __pyx_result.region_end = __pyx_state[13]
 *     if len(__pyx_state) > 14 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFFieldParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19__pyx_unpickle_VCFFieldParserBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_19__pyx_unpickle_VCFFieldParserBase = {"__pyx_unpickle_VCFFieldParserBase", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_19__pyx_unpickle_VCFFieldParserBase, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_19__pyx_unpickle_VCFFieldParserBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFFieldParserBase (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFFieldParserBase", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFFieldParserBase", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFFieldParserBase") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFFieldParserBase", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFFieldParserBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_18__pyx_unpickle_VCFFieldParserBase(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_18__pyx_unpickle_VCFFieldParserBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFFieldParserBase", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFFieldParserBase.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFFieldParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFFieldParserBase.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFFieldParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFFieldParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFFieldParserBase__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFFieldParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFFieldParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFFieldParserBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFFieldParserBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFFieldParserBase__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->dtype));
  __pyx_v___pyx_result->dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->fill);
  __Pyx_DECREF(__pyx_v___pyx_result->fill);
  __pyx_v___pyx_result->fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->key);
  __Pyx_DECREF(__pyx_v___pyx_result->key);
  __pyx_v___pyx_result->key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->values));
  __pyx_v___pyx_result->values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFFieldParserBase__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFSkipFieldParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21__pyx_unpickle_VCFSkipFieldParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_21__pyx_unpickle_VCFSkipFieldParser = {"__pyx_unpickle_VCFSkipFieldParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_21__pyx_unpickle_VCFSkipFieldParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_21__pyx_unpickle_VCFSkipFieldParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFSkipFieldParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFSkipFieldParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFSkipFieldParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFSkipFieldParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFSkipFieldParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFSkipFieldParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_20__pyx_unpickle_VCFSkipFieldParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_20__pyx_unpickle_VCFSkipFieldParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFSkipFieldParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipFieldParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFSkipFieldParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipFieldParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipFieldParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFSkipFieldParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipFieldParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipFieldParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFSkipFieldParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFSkipFieldParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipFieldParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFSkipFieldParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFSkipFieldParser__set_state(<VCFSkipFieldParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipFieldParser__set_state(VCFSkipFieldParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFSkipFieldParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFChromPosParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23__pyx_unpickle_VCFChromPosParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_23__pyx_unpickle_VCFChromPosParser = {"__pyx_unpickle_VCFChromPosParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_23__pyx_unpickle_VCFChromPosParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_23__pyx_unpickle_VCFChromPosParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFChromPosParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFChromPosParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFChromPosParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFChromPosParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFChromPosParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFChromPosParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_22__pyx_unpickle_VCFChromPosParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_22__pyx_unpickle_VCFChromPosParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFChromPosParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xb6dfd14:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xb6dfd14) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xb6dfd14:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)
 *     __pyx_result = VCFChromPosParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xb6dfd14:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFChromPosParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xb6, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xb6dfd14:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)
 *     __pyx_result = VCFChromPosParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)
 *     __pyx_result = VCFChromPosParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFChromPosParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChromPosParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb6dfd14 = (chrom_memory, chrom_values, chunk_length, dtype, fill, itemsize, key, number, pos_memory, pos_values, region_begin, region_chrom, region_end, store_chrom, store_pos, values))" % __pyx_checksum)
 *     __pyx_result = VCFChromPosParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFChromPosParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFChromPosParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFChromPosParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  __Pyx_memviewslice __pyx_t_4 = { 0, 0, { 0 }, { 0 }, { 0 } };
  char *__pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFChromPosParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[16])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0), PyBUF_WRITABLE); if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->chrom_memory, 0);
  __pyx_v___pyx_result->chrom_memory = __pyx_t_1;
  __pyx_t_1.memview = NULL;
  __pyx_t_1.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->chrom_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->chrom_values));
  __pyx_v___pyx_result->chrom_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 2)); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 3);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), PyBUF_WRITABLE); if (unlikely(!__pyx_t_4.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->pos_memory, 0);
  __pyx_v___pyx_result->pos_memory = __pyx_t_4;
  __pyx_t_4.memview = NULL;
  __pyx_t_4.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 9), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 9);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->pos_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pos_values));
  __pyx_v___pyx_result->pos_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 10)); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->region_begin = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(PyTuple_GET_ITEM(__pyx_v___pyx_state, 11)); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->region_chrom = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 12)); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->region_end = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 13)); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_chrom = __pyx_t_6;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 14)); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_pos = __pyx_t_6;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 15)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 15), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 15);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[16])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_7 = ((__pyx_t_3 > 16) != 0);
  if (__pyx_t_7) {
  } else {
    __pyx_t_6 = __pyx_t_7;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_7 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_8 = (__pyx_t_7 != 0);
  __pyx_t_6 = __pyx_t_8;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_6) {

    /* "(tree fragment)":14
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[16])             # <<<<<<<<<<<<<<
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_update); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
      }
    }
    __pyx_t_2 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, PyTuple_GET_ITEM(__pyx_v___pyx_state, 16)) : __Pyx_PyObject_CallOneArg(__pyx_t_10, PyTuple_GET_ITEM(__pyx_v___pyx_state, 16));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[16])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_4, 1);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFChromPosParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFIDStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25__pyx_unpickle_VCFIDStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_25__pyx_unpickle_VCFIDStringParser = {"__pyx_unpickle_VCFIDStringParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_25__pyx_unpickle_VCFIDStringParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_25__pyx_unpickle_VCFIDStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFIDStringParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFIDStringParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFIDStringParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFIDStringParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFIDStringParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFIDStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_24__pyx_unpickle_VCFIDStringParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_24__pyx_unpickle_VCFIDStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFIDStringParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDStringParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFIDStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDStringParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFIDStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDStringParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFIDStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFIDStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFIDStringParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFIDStringParser__set_state(<VCFIDStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDStringParser__set_state(VCFIDStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFIDStringParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFIDObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_27__pyx_unpickle_VCFIDObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_27__pyx_unpickle_VCFIDObjectParser = {"__pyx_unpickle_VCFIDObjectParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_27__pyx_unpickle_VCFIDObjectParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_27__pyx_unpickle_VCFIDObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFIDObjectParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFIDObjectParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFIDObjectParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFIDObjectParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFIDObjectParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFIDObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_26__pyx_unpickle_VCFIDObjectParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_26__pyx_unpickle_VCFIDObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFIDObjectParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDObjectParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFIDObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDObjectParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFIDObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDObjectParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFIDObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFIDObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFIDObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFIDObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFIDObjectParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFIDObjectParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFRefStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_29__pyx_unpickle_VCFRefStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_29__pyx_unpickle_VCFRefStringParser = {"__pyx_unpickle_VCFRefStringParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_29__pyx_unpickle_VCFRefStringParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_29__pyx_unpickle_VCFRefStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFRefStringParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFRefStringParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFRefStringParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFRefStringParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFRefStringParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFRefStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_28__pyx_unpickle_VCFRefStringParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_28__pyx_unpickle_VCFRefStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFRefStringParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xe2ae35d:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xe2ae35d) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xe2ae35d:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefStringParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xe2ae35d:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFRefStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xe2, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xe2ae35d:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefStringParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFRefStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefStringParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xe2ae35d = (chunk_length, dtype, fill, itemsize, key, memory, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFRefStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFRefStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFRefStringParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store = __pyx_t_4;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFRefStringParser__set_state(<VCFRefStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefStringParser__set_state(VCFRefStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.store = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFRefStringParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFRefObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_31__pyx_unpickle_VCFRefObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_31__pyx_unpickle_VCFRefObjectParser = {"__pyx_unpickle_VCFRefObjectParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_31__pyx_unpickle_VCFRefObjectParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_31__pyx_unpickle_VCFRefObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFRefObjectParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFRefObjectParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFRefObjectParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFRefObjectParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFRefObjectParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFRefObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_30__pyx_unpickle_VCFRefObjectParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_30__pyx_unpickle_VCFRefObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFRefObjectParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x7e9add0:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x7e9add0) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x7e9add0:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefObjectParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x7e9add0:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFRefObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x7e, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x7e9add0:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefObjectParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFRefObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefObjectParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7e9add0 = (chunk_length, dtype, fill, itemsize, key, number, store, values))" % __pyx_checksum)
 *     __pyx_result = VCFRefObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFRefObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFRefObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFRefObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFRefObjectParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFRefObjectParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFAltStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_33__pyx_unpickle_VCFAltStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_33__pyx_unpickle_VCFAltStringParser = {"__pyx_unpickle_VCFAltStringParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_33__pyx_unpickle_VCFAltStringParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_33__pyx_unpickle_VCFAltStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFAltStringParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFAltStringParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFAltStringParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFAltStringParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFAltStringParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFAltStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_32__pyx_unpickle_VCFAltStringParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_32__pyx_unpickle_VCFAltStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFAltStringParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x03d73fd:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x03d73fd) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x03d73fd:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltStringParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x03d73fd:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFAltStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03_2, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x03d73fd:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltStringParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFAltStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltStringParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x03d73fd = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, memory, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFAltStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFAltStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]
 *     if len(__pyx_state) > 18 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_4 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_5;
  __Pyx_memviewslice __pyx_t_6 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFAltStringParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 18 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[18])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->is_snp_memory, 0);
  __pyx_v___pyx_result->is_snp_memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->is_snp_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->is_snp_values));
  __pyx_v___pyx_result->is_snp_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), PyBUF_WRITABLE); if (unlikely(!__pyx_t_4.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->numalt_memory, 0);
  __pyx_v___pyx_result->numalt_memory = __pyx_t_4;
  __pyx_t_4.memview = NULL;
  __pyx_t_4.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 9), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 9);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->numalt_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->numalt_values));
  __pyx_v___pyx_result->numalt_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 10)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 11)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_alt = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 12)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_is_snp = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 13)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_numalt = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 14)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_svlen = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 15), PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->svlen_memory, 0);
  __pyx_v___pyx_result->svlen_memory = __pyx_t_6;
  __pyx_t_6.memview = NULL;
  __pyx_t_6.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 16)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 16), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 16);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->svlen_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->svlen_values));
  __pyx_v___pyx_result->svlen_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 17)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 17), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 17);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]
 *     if len(__pyx_state) > 18 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[18])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_7 = ((__pyx_t_1 > 18) != 0);
  if (__pyx_t_7) {
  } else {
    __pyx_t_5 = __pyx_t_7;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_7 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_8 = (__pyx_t_7 != 0);
  __pyx_t_5 = __pyx_t_8;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_5) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]
 *     if len(__pyx_state) > 18 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[18])             # <<<<<<<<<<<<<<
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_update); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
      }
    }
    __pyx_t_2 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, PyTuple_GET_ITEM(__pyx_v___pyx_state, 18)) : __Pyx_PyObject_CallOneArg(__pyx_t_10, PyTuple_GET_ITEM(__pyx_v___pyx_state, 18));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]
 *     if len(__pyx_state) > 18 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[18])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFAltStringParser__set_state(<VCFAltStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltStringParser__set_state(VCFAltStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.memory = __pyx_state[7]; __pyx_result.numalt_memory = __pyx_state[8]; __pyx_result.numalt_values = __pyx_state[9]; __pyx_result.number = __pyx_state[10]; __pyx_result.store_alt = __pyx_state[11]; __pyx_result.store_is_snp = __pyx_state[12]; __pyx_result.store_numalt = __pyx_state[13]; __pyx_result.store_svlen = __pyx_state[14]; __pyx_result.svlen_memory = __pyx_state[15]; __pyx_result.svlen_values = __pyx_state[16]; __pyx_result.values = __pyx_state[17]
 *     if len(__pyx_state) > 18 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_4, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_6, 1);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFAltStringParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFAltObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_35__pyx_unpickle_VCFAltObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_35__pyx_unpickle_VCFAltObjectParser = {"__pyx_unpickle_VCFAltObjectParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_35__pyx_unpickle_VCFAltObjectParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_35__pyx_unpickle_VCFAltObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFAltObjectParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFAltObjectParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFAltObjectParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFAltObjectParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFAltObjectParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFAltObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_34__pyx_unpickle_VCFAltObjectParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_34__pyx_unpickle_VCFAltObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFAltObjectParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x1a8a803:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x1a8a803) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x1a8a803:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltObjectParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x1a8a803:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFAltObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x1a, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x1a8a803:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltObjectParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFAltObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltObjectParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x1a8a803 = (chunk_length, dtype, fill, is_snp_memory, is_snp_values, itemsize, key, numalt_memory, numalt_values, number, store_alt, store_is_snp, store_numalt, store_svlen, svlen_memory, svlen_values, values))" % __pyx_checksum)
 *     __pyx_result = VCFAltObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFAltObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFAltObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFAltObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  __Pyx_memviewslice __pyx_t_4 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_5;
  __Pyx_memviewslice __pyx_t_6 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFAltObjectParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[17])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->is_snp_memory, 0);
  __pyx_v___pyx_result->is_snp_memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->is_snp_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->is_snp_values));
  __pyx_v___pyx_result->is_snp_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), PyBUF_WRITABLE); if (unlikely(!__pyx_t_4.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->numalt_memory, 0);
  __pyx_v___pyx_result->numalt_memory = __pyx_t_4;
  __pyx_t_4.memview = NULL;
  __pyx_t_4.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->numalt_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->numalt_values));
  __pyx_v___pyx_result->numalt_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 10)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_alt = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 11)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_is_snp = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 12)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_numalt = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 13)); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->store_svlen = __pyx_t_5;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 14), PyBUF_WRITABLE); if (unlikely(!__pyx_t_6.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->svlen_memory, 0);
  __pyx_v___pyx_result->svlen_memory = __pyx_t_6;
  __pyx_t_6.memview = NULL;
  __pyx_t_6.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 15)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 15), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 15);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->svlen_values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->svlen_values));
  __pyx_v___pyx_result->svlen_values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 16)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 16), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 16);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[17])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_7 = ((__pyx_t_1 > 17) != 0);
  if (__pyx_t_7) {
  } else {
    __pyx_t_5 = __pyx_t_7;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_7 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_8 = (__pyx_t_7 != 0);
  __pyx_t_5 = __pyx_t_8;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_5) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[17])             # <<<<<<<<<<<<<<
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_update); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
      }
    }
    __pyx_t_2 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, PyTuple_GET_ITEM(__pyx_v___pyx_state, 17)) : __Pyx_PyObject_CallOneArg(__pyx_t_10, PyTuple_GET_ITEM(__pyx_v___pyx_state, 17));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[17])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_4, 1);
  __PYX_XDEC_MEMVIEW(&__pyx_t_6, 1);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFAltObjectParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFQualParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_37__pyx_unpickle_VCFQualParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_37__pyx_unpickle_VCFQualParser = {"__pyx_unpickle_VCFQualParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_37__pyx_unpickle_VCFQualParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_37__pyx_unpickle_VCFQualParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFQualParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFQualParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFQualParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFQualParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFQualParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFQualParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_36__pyx_unpickle_VCFQualParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_36__pyx_unpickle_VCFQualParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFQualParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFQualParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFQualParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFQualParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFQualParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFQualParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFQualParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFQualParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFQualParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFQualParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFQualParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFQualParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_float32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFQualParser__set_state(<VCFQualParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFQualParser__set_state(VCFQualParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFQualParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_39__pyx_unpickle_VCFInfoParserBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_39__pyx_unpickle_VCFInfoParserBase = {"__pyx_unpickle_VCFInfoParserBase", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_39__pyx_unpickle_VCFInfoParserBase, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_39__pyx_unpickle_VCFInfoParserBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoParserBase (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoParserBase", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoParserBase", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoParserBase") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoParserBase", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoParserBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_38__pyx_unpickle_VCFInfoParserBase(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_38__pyx_unpickle_VCFInfoParserBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoParserBase", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoParserBase.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoParserBase.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoParserBase__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoParserBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoParserBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoParserBase__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->dtype));
  __pyx_v___pyx_result->dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->fill);
  __Pyx_DECREF(__pyx_v___pyx_result->fill);
  __pyx_v___pyx_result->fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->key);
  __Pyx_DECREF(__pyx_v___pyx_result->key);
  __pyx_v___pyx_result->key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->values));
  __pyx_v___pyx_result->values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoParserBase__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_41__pyx_unpickle_VCFInfoInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_41__pyx_unpickle_VCFInfoInt8Parser = {"__pyx_unpickle_VCFInfoInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_41__pyx_unpickle_VCFInfoInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_41__pyx_unpickle_VCFInfoInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_40__pyx_unpickle_VCFInfoInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_40__pyx_unpickle_VCFInfoInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt8Parser__set_state(<VCFInfoInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt8Parser__set_state(VCFInfoInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_43__pyx_unpickle_VCFInfoInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_43__pyx_unpickle_VCFInfoInt16Parser = {"__pyx_unpickle_VCFInfoInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_43__pyx_unpickle_VCFInfoInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_43__pyx_unpickle_VCFInfoInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_42__pyx_unpickle_VCFInfoInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_42__pyx_unpickle_VCFInfoInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_45__pyx_unpickle_VCFInfoInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_45__pyx_unpickle_VCFInfoInt32Parser = {"__pyx_unpickle_VCFInfoInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_45__pyx_unpickle_VCFInfoInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_45__pyx_unpickle_VCFInfoInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_44__pyx_unpickle_VCFInfoInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_44__pyx_unpickle_VCFInfoInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt32Parser__set_state(<VCFInfoInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt32Parser__set_state(VCFInfoInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_47__pyx_unpickle_VCFInfoInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_47__pyx_unpickle_VCFInfoInt64Parser = {"__pyx_unpickle_VCFInfoInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_47__pyx_unpickle_VCFInfoInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_47__pyx_unpickle_VCFInfoInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_46__pyx_unpickle_VCFInfoInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_46__pyx_unpickle_VCFInfoInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_49__pyx_unpickle_VCFInfoUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_49__pyx_unpickle_VCFInfoUInt8Parser = {"__pyx_unpickle_VCFInfoUInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_49__pyx_unpickle_VCFInfoUInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_49__pyx_unpickle_VCFInfoUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoUInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_48__pyx_unpickle_VCFInfoUInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_48__pyx_unpickle_VCFInfoUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt8Parser__set_state(<VCFInfoUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt8Parser__set_state(VCFInfoUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_51__pyx_unpickle_VCFInfoUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_51__pyx_unpickle_VCFInfoUInt16Parser = {"__pyx_unpickle_VCFInfoUInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_51__pyx_unpickle_VCFInfoUInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_51__pyx_unpickle_VCFInfoUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoUInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_50__pyx_unpickle_VCFInfoUInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_50__pyx_unpickle_VCFInfoUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_53__pyx_unpickle_VCFInfoUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_53__pyx_unpickle_VCFInfoUInt32Parser = {"__pyx_unpickle_VCFInfoUInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_53__pyx_unpickle_VCFInfoUInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_53__pyx_unpickle_VCFInfoUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoUInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_52__pyx_unpickle_VCFInfoUInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_52__pyx_unpickle_VCFInfoUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt32Parser__set_state(<VCFInfoUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt32Parser__set_state(VCFInfoUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_55__pyx_unpickle_VCFInfoUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_55__pyx_unpickle_VCFInfoUInt64Parser = {"__pyx_unpickle_VCFInfoUInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_55__pyx_unpickle_VCFInfoUInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_55__pyx_unpickle_VCFInfoUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoUInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoUInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_54__pyx_unpickle_VCFInfoUInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_54__pyx_unpickle_VCFInfoUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoUInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoUInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFloat32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_57__pyx_unpickle_VCFInfoFloat32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_57__pyx_unpickle_VCFInfoFloat32Parser = {"__pyx_unpickle_VCFInfoFloat32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_57__pyx_unpickle_VCFInfoFloat32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_57__pyx_unpickle_VCFInfoFloat32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFloat32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFloat32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFloat32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoFloat32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFloat32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFloat32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_56__pyx_unpickle_VCFInfoFloat32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_56__pyx_unpickle_VCFInfoFloat32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFloat32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFloat32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFloat32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFloat32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFloat32Parser__set_state(<VCFInfoFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat32Parser__set_state(VCFInfoFloat32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFloat32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFloat64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_59__pyx_unpickle_VCFInfoFloat64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_59__pyx_unpickle_VCFInfoFloat64Parser = {"__pyx_unpickle_VCFInfoFloat64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_59__pyx_unpickle_VCFInfoFloat64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_59__pyx_unpickle_VCFInfoFloat64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFloat64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFloat64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFloat64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoFloat64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFloat64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFloat64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_58__pyx_unpickle_VCFInfoFloat64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_58__pyx_unpickle_VCFInfoFloat64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFloat64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFloat64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFloat64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFloat64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFloat64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFloat64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFlagParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_61__pyx_unpickle_VCFInfoFlagParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_61__pyx_unpickle_VCFInfoFlagParser = {"__pyx_unpickle_VCFInfoFlagParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_61__pyx_unpickle_VCFInfoFlagParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_61__pyx_unpickle_VCFInfoFlagParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFlagParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFlagParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFlagParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoFlagParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoFlagParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFlagParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_60__pyx_unpickle_VCFInfoFlagParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_60__pyx_unpickle_VCFInfoFlagParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFlagParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFlagParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoFlagParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFlagParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFlagParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoFlagParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFlagParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoFlagParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFlagParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFlagParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoFlagParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoFlagParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFlagParser__set_state(<VCFInfoFlagParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFlagParser__set_state(VCFInfoFlagParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoFlagParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_63__pyx_unpickle_VCFInfoStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_63__pyx_unpickle_VCFInfoStringParser = {"__pyx_unpickle_VCFInfoStringParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_63__pyx_unpickle_VCFInfoStringParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_63__pyx_unpickle_VCFInfoStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoStringParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoStringParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoStringParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoStringParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoStringParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_62__pyx_unpickle_VCFInfoStringParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_62__pyx_unpickle_VCFInfoStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoStringParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0333bb8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoStringParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0333bb8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0333bb8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoStringParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoStringParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0333bb8 = (chunk_length, dtype, fill, itemsize, key, memory, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoStringParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoStringParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_65__pyx_unpickle_VCFInfoObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_65__pyx_unpickle_VCFInfoObjectParser = {"__pyx_unpickle_VCFInfoObjectParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_65__pyx_unpickle_VCFInfoObjectParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_65__pyx_unpickle_VCFInfoObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoObjectParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoObjectParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoObjectParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoObjectParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoObjectParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_64__pyx_unpickle_VCFInfoObjectParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_64__pyx_unpickle_VCFInfoObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoObjectParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoObjectParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoObjectParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoObjectParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoObjectParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoObjectParser__set_state(<VCFInfoObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoObjectParser__set_state(VCFInfoObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoObjectParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoSkipParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_67__pyx_unpickle_VCFInfoSkipParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_67__pyx_unpickle_VCFInfoSkipParser = {"__pyx_unpickle_VCFInfoSkipParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_67__pyx_unpickle_VCFInfoSkipParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_67__pyx_unpickle_VCFInfoSkipParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoSkipParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoSkipParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoSkipParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFInfoSkipParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFInfoSkipParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoSkipParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_66__pyx_unpickle_VCFInfoSkipParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_66__pyx_unpickle_VCFInfoSkipParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoSkipParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoSkipParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFInfoSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoSkipParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFInfoSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoSkipParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFInfoSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoSkipParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoSkipParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFInfoSkipParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFInfoSkipParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFInfoSkipParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFSkipAllCallDataParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_69__pyx_unpickle_VCFSkipAllCallDataParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_69__pyx_unpickle_VCFSkipAllCallDataParser = {"__pyx_unpickle_VCFSkipAllCallDataParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_69__pyx_unpickle_VCFSkipAllCallDataParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_69__pyx_unpickle_VCFSkipAllCallDataParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFSkipAllCallDataParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFSkipAllCallDataParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFSkipAllCallDataParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFSkipAllCallDataParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFSkipAllCallDataParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFSkipAllCallDataParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_68__pyx_unpickle_VCFSkipAllCallDataParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_68__pyx_unpickle_VCFSkipAllCallDataParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFSkipAllCallDataParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x6dddfd2) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipAllCallDataParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x6dddfd2:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFSkipAllCallDataParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x6dddfd2:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipAllCallDataParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipAllCallDataParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFSkipAllCallDataParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipAllCallDataParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x6dddfd2 = (chunk_length, dtype, fill, itemsize, key, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFSkipAllCallDataParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFSkipAllCallDataParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFSkipAllCallDataParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFSkipAllCallDataParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFSkipAllCallDataParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 6);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 7) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFSkipAllCallDataParser__set_state(<VCFSkipAllCallDataParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFSkipAllCallDataParser__set_state(VCFSkipAllCallDataParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFSkipAllCallDataParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_71__pyx_unpickle_VCFCallDataParserBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_71__pyx_unpickle_VCFCallDataParserBase = {"__pyx_unpickle_VCFCallDataParserBase", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_71__pyx_unpickle_VCFCallDataParserBase, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_71__pyx_unpickle_VCFCallDataParserBase(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataParserBase (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataParserBase", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataParserBase", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataParserBase") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataParserBase", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataParserBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_70__pyx_unpickle_VCFCallDataParserBase(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_70__pyx_unpickle_VCFCallDataParserBase(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataParserBase", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x3c8cbe8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x3c8cbe8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x3c8cbe8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataParserBase.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x3c8cbe8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x3c, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x3c8cbe8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataParserBase.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataParserBase__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataParserBase.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataParserBase", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataParserBase__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataParserBase__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->dtype));
  __pyx_v___pyx_result->dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->fill);
  __Pyx_DECREF(__pyx_v___pyx_result->fill);
  __pyx_v___pyx_result->fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->key);
  __Pyx_DECREF(__pyx_v___pyx_result->key);
  __pyx_v___pyx_result->key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->values));
  __pyx_v___pyx_result->values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataParserBase__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataSkipParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_73__pyx_unpickle_VCFCallDataSkipParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_73__pyx_unpickle_VCFCallDataSkipParser = {"__pyx_unpickle_VCFCallDataSkipParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_73__pyx_unpickle_VCFCallDataSkipParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_73__pyx_unpickle_VCFCallDataSkipParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataSkipParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataSkipParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataSkipParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataSkipParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataSkipParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataSkipParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_72__pyx_unpickle_VCFCallDataSkipParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_72__pyx_unpickle_VCFCallDataSkipParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataSkipParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x3c8cbe8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x3c8cbe8) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x3c8cbe8:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataSkipParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x3c8cbe8:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x3c, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x3c8cbe8:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataSkipParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataSkipParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x3c8cbe8 = (chunk_length, dtype, fill, itemsize, key, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataSkipParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataSkipParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataSkipParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataSkipParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataSkipParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_1 > 8) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[8])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 8));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[8])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataSkipParser__set_state(<VCFCallDataSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataSkipParser__set_state(VCFCallDataSkipParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataSkipParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_75__pyx_unpickle_VCFGenotypeInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_75__pyx_unpickle_VCFGenotypeInt8Parser = {"__pyx_unpickle_VCFGenotypeInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_75__pyx_unpickle_VCFGenotypeInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_75__pyx_unpickle_VCFGenotypeInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_74__pyx_unpickle_VCFGenotypeInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_74__pyx_unpickle_VCFGenotypeInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_77__pyx_unpickle_VCFGenotypeInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_77__pyx_unpickle_VCFGenotypeInt16Parser = {"__pyx_unpickle_VCFGenotypeInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_77__pyx_unpickle_VCFGenotypeInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_77__pyx_unpickle_VCFGenotypeInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_76__pyx_unpickle_VCFGenotypeInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_76__pyx_unpickle_VCFGenotypeInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt16Parser__set_state(<VCFGenotypeInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt16Parser__set_state(VCFGenotypeInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_79__pyx_unpickle_VCFGenotypeInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_79__pyx_unpickle_VCFGenotypeInt32Parser = {"__pyx_unpickle_VCFGenotypeInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_79__pyx_unpickle_VCFGenotypeInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_79__pyx_unpickle_VCFGenotypeInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_78__pyx_unpickle_VCFGenotypeInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_78__pyx_unpickle_VCFGenotypeInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_81__pyx_unpickle_VCFGenotypeInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_81__pyx_unpickle_VCFGenotypeInt64Parser = {"__pyx_unpickle_VCFGenotypeInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_81__pyx_unpickle_VCFGenotypeInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_81__pyx_unpickle_VCFGenotypeInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_80__pyx_unpickle_VCFGenotypeInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_80__pyx_unpickle_VCFGenotypeInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt64Parser__set_state(<VCFGenotypeInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt64Parser__set_state(VCFGenotypeInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_83__pyx_unpickle_VCFGenotypeUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_83__pyx_unpickle_VCFGenotypeUInt8Parser = {"__pyx_unpickle_VCFGenotypeUInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_83__pyx_unpickle_VCFGenotypeUInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_83__pyx_unpickle_VCFGenotypeUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeUInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_82__pyx_unpickle_VCFGenotypeUInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_82__pyx_unpickle_VCFGenotypeUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_85__pyx_unpickle_VCFGenotypeUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_85__pyx_unpickle_VCFGenotypeUInt16Parser = {"__pyx_unpickle_VCFGenotypeUInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_85__pyx_unpickle_VCFGenotypeUInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_85__pyx_unpickle_VCFGenotypeUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeUInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_84__pyx_unpickle_VCFGenotypeUInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_84__pyx_unpickle_VCFGenotypeUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(<VCFGenotypeUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt16Parser__set_state(VCFGenotypeUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_87__pyx_unpickle_VCFGenotypeUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_87__pyx_unpickle_VCFGenotypeUInt32Parser = {"__pyx_unpickle_VCFGenotypeUInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_87__pyx_unpickle_VCFGenotypeUInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_87__pyx_unpickle_VCFGenotypeUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeUInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_86__pyx_unpickle_VCFGenotypeUInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_86__pyx_unpickle_VCFGenotypeUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_89__pyx_unpickle_VCFGenotypeUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_89__pyx_unpickle_VCFGenotypeUInt64Parser = {"__pyx_unpickle_VCFGenotypeUInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_89__pyx_unpickle_VCFGenotypeUInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_89__pyx_unpickle_VCFGenotypeUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeUInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeUInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_88__pyx_unpickle_VCFGenotypeUInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_88__pyx_unpickle_VCFGenotypeUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeUInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(<VCFGenotypeUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt64Parser__set_state(VCFGenotypeUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeUInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_91__pyx_unpickle_VCFGenotypeACInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_91__pyx_unpickle_VCFGenotypeACInt8Parser = {"__pyx_unpickle_VCFGenotypeACInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_91__pyx_unpickle_VCFGenotypeACInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_91__pyx_unpickle_VCFGenotypeACInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_90__pyx_unpickle_VCFGenotypeACInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_90__pyx_unpickle_VCFGenotypeACInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_93__pyx_unpickle_VCFGenotypeACInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_93__pyx_unpickle_VCFGenotypeACInt16Parser = {"__pyx_unpickle_VCFGenotypeACInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_93__pyx_unpickle_VCFGenotypeACInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_93__pyx_unpickle_VCFGenotypeACInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_92__pyx_unpickle_VCFGenotypeACInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_92__pyx_unpickle_VCFGenotypeACInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(<VCFGenotypeACInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt16Parser__set_state(VCFGenotypeACInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_95__pyx_unpickle_VCFGenotypeACInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_95__pyx_unpickle_VCFGenotypeACInt32Parser = {"__pyx_unpickle_VCFGenotypeACInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_95__pyx_unpickle_VCFGenotypeACInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_95__pyx_unpickle_VCFGenotypeACInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_94__pyx_unpickle_VCFGenotypeACInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_94__pyx_unpickle_VCFGenotypeACInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_97__pyx_unpickle_VCFGenotypeACInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_97__pyx_unpickle_VCFGenotypeACInt64Parser = {"__pyx_unpickle_VCFGenotypeACInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_97__pyx_unpickle_VCFGenotypeACInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_97__pyx_unpickle_VCFGenotypeACInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_96__pyx_unpickle_VCFGenotypeACInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_96__pyx_unpickle_VCFGenotypeACInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(<VCFGenotypeACInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt64Parser__set_state(VCFGenotypeACInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_99__pyx_unpickle_VCFGenotypeACUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_99__pyx_unpickle_VCFGenotypeACUInt8Parser = {"__pyx_unpickle_VCFGenotypeACUInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_99__pyx_unpickle_VCFGenotypeACUInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_99__pyx_unpickle_VCFGenotypeACUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACUInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_98__pyx_unpickle_VCFGenotypeACUInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_98__pyx_unpickle_VCFGenotypeACUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_101__pyx_unpickle_VCFGenotypeACUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_101__pyx_unpickle_VCFGenotypeACUInt16Parser = {"__pyx_unpickle_VCFGenotypeACUInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_101__pyx_unpickle_VCFGenotypeACUInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_101__pyx_unpickle_VCFGenotypeACUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACUInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_100__pyx_unpickle_VCFGenotypeACUInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_100__pyx_unpickle_VCFGenotypeACUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(<VCFGenotypeACUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt16Parser__set_state(VCFGenotypeACUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_103__pyx_unpickle_VCFGenotypeACUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_103__pyx_unpickle_VCFGenotypeACUInt32Parser = {"__pyx_unpickle_VCFGenotypeACUInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_103__pyx_unpickle_VCFGenotypeACUInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_103__pyx_unpickle_VCFGenotypeACUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACUInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_102__pyx_unpickle_VCFGenotypeACUInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_102__pyx_unpickle_VCFGenotypeACUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_105__pyx_unpickle_VCFGenotypeACUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_105__pyx_unpickle_VCFGenotypeACUInt64Parser = {"__pyx_unpickle_VCFGenotypeACUInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_105__pyx_unpickle_VCFGenotypeACUInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_105__pyx_unpickle_VCFGenotypeACUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFGenotypeACUInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFGenotypeACUInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_104__pyx_unpickle_VCFGenotypeACUInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_104__pyx_unpickle_VCFGenotypeACUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFGenotypeACUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFGenotypeACUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFGenotypeACUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFGenotypeACUInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(<VCFGenotypeACUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt64Parser__set_state(VCFGenotypeACUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFGenotypeACUInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_107__pyx_unpickle_VCFCallDataInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_107__pyx_unpickle_VCFCallDataInt8Parser = {"__pyx_unpickle_VCFCallDataInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_107__pyx_unpickle_VCFCallDataInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_107__pyx_unpickle_VCFCallDataInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_106__pyx_unpickle_VCFCallDataInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_106__pyx_unpickle_VCFCallDataInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_109__pyx_unpickle_VCFCallDataInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_109__pyx_unpickle_VCFCallDataInt16Parser = {"__pyx_unpickle_VCFCallDataInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_109__pyx_unpickle_VCFCallDataInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_109__pyx_unpickle_VCFCallDataInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_108__pyx_unpickle_VCFCallDataInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_108__pyx_unpickle_VCFCallDataInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt16Parser__set_state(<VCFCallDataInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt16Parser__set_state(VCFCallDataInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_111__pyx_unpickle_VCFCallDataInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_111__pyx_unpickle_VCFCallDataInt32Parser = {"__pyx_unpickle_VCFCallDataInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_111__pyx_unpickle_VCFCallDataInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_111__pyx_unpickle_VCFCallDataInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_110__pyx_unpickle_VCFCallDataInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_110__pyx_unpickle_VCFCallDataInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_113__pyx_unpickle_VCFCallDataInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_113__pyx_unpickle_VCFCallDataInt64Parser = {"__pyx_unpickle_VCFCallDataInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_113__pyx_unpickle_VCFCallDataInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_113__pyx_unpickle_VCFCallDataInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_112__pyx_unpickle_VCFCallDataInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_112__pyx_unpickle_VCFCallDataInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt64Parser__set_state(<VCFCallDataInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt64Parser__set_state(VCFCallDataInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_115__pyx_unpickle_VCFCallDataUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_115__pyx_unpickle_VCFCallDataUInt8Parser = {"__pyx_unpickle_VCFCallDataUInt8Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_115__pyx_unpickle_VCFCallDataUInt8Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_115__pyx_unpickle_VCFCallDataUInt8Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt8Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt8Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt8Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataUInt8Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt8Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_114__pyx_unpickle_VCFCallDataUInt8Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_114__pyx_unpickle_VCFCallDataUInt8Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt8Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt8Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt8Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt8Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt8Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt8Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt8Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt8Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt8Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_117__pyx_unpickle_VCFCallDataUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_117__pyx_unpickle_VCFCallDataUInt16Parser = {"__pyx_unpickle_VCFCallDataUInt16Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_117__pyx_unpickle_VCFCallDataUInt16Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_117__pyx_unpickle_VCFCallDataUInt16Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt16Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt16Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt16Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataUInt16Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt16Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_116__pyx_unpickle_VCFCallDataUInt16Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_116__pyx_unpickle_VCFCallDataUInt16Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt16Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt16Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt16Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt16Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt16Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt16Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt16Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt16Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt16Parser__set_state(<VCFCallDataUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt16Parser__set_state(VCFCallDataUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt16Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_119__pyx_unpickle_VCFCallDataUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_119__pyx_unpickle_VCFCallDataUInt32Parser = {"__pyx_unpickle_VCFCallDataUInt32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_119__pyx_unpickle_VCFCallDataUInt32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_119__pyx_unpickle_VCFCallDataUInt32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataUInt32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_118__pyx_unpickle_VCFCallDataUInt32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_118__pyx_unpickle_VCFCallDataUInt32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_121__pyx_unpickle_VCFCallDataUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_121__pyx_unpickle_VCFCallDataUInt64Parser = {"__pyx_unpickle_VCFCallDataUInt64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_121__pyx_unpickle_VCFCallDataUInt64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_121__pyx_unpickle_VCFCallDataUInt64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataUInt64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataUInt64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_120__pyx_unpickle_VCFCallDataUInt64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_120__pyx_unpickle_VCFCallDataUInt64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataUInt64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataUInt64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataUInt64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt64Parser__set_state(<VCFCallDataUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt64Parser__set_state(VCFCallDataUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataUInt64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataFloat32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_123__pyx_unpickle_VCFCallDataFloat32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_123__pyx_unpickle_VCFCallDataFloat32Parser = {"__pyx_unpickle_VCFCallDataFloat32Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_123__pyx_unpickle_VCFCallDataFloat32Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_123__pyx_unpickle_VCFCallDataFloat32Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataFloat32Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataFloat32Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataFloat32Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataFloat32Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataFloat32Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataFloat32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_122__pyx_unpickle_VCFCallDataFloat32Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_122__pyx_unpickle_VCFCallDataFloat32Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataFloat32Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat32Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat32Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat32Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat32Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataFloat32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataFloat32Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat32Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataFloat32Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float32_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataFloat32Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataFloat64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_125__pyx_unpickle_VCFCallDataFloat64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_125__pyx_unpickle_VCFCallDataFloat64Parser = {"__pyx_unpickle_VCFCallDataFloat64Parser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_125__pyx_unpickle_VCFCallDataFloat64Parser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_125__pyx_unpickle_VCFCallDataFloat64Parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataFloat64Parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataFloat64Parser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataFloat64Parser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataFloat64Parser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataFloat64Parser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataFloat64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_124__pyx_unpickle_VCFCallDataFloat64Parser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_124__pyx_unpickle_VCFCallDataFloat64Parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataFloat64Parser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat64Parser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat64Parser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat64Parser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataFloat64Parser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataFloat64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataFloat64Parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataFloat64Parser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataFloat64Parser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float64_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataFloat64Parser__set_state(<VCFCallDataFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat64Parser__set_state(VCFCallDataFloat64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataFloat64Parser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_127__pyx_unpickle_VCFCallDataStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_127__pyx_unpickle_VCFCallDataStringParser = {"__pyx_unpickle_VCFCallDataStringParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_127__pyx_unpickle_VCFCallDataStringParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_127__pyx_unpickle_VCFCallDataStringParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataStringParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataStringParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataStringParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataStringParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataStringParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_126__pyx_unpickle_VCFCallDataStringParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_126__pyx_unpickle_VCFCallDataStringParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataStringParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataStringParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataStringParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataStringParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataStringParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataStringParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataStringParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataStringParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataStringParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_129__pyx_unpickle_VCFCallDataObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_129__pyx_unpickle_VCFCallDataObjectParser = {"__pyx_unpickle_VCFCallDataObjectParser", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_129__pyx_unpickle_VCFCallDataObjectParser, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_129__pyx_unpickle_VCFCallDataObjectParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataObjectParser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataObjectParser", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataObjectParser", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_VCFCallDataObjectParser") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_VCFCallDataObjectParser", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_128__pyx_unpickle_VCFCallDataObjectParser(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_128__pyx_unpickle_VCFCallDataObjectParser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataObjectParser", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xf8181b4) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataObjectParser.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xf8181b4:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = VCFCallDataObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xf8181b4:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataObjectParser.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = VCFCallDataObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataObjectParser__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xf8181b4 = (chunk_length, dtype, fill, itemsize, key, memory, n_samples_out, number, values))" % __pyx_checksum)
 *     __pyx_result = VCFCallDataObjectParser.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataObjectParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_VCFCallDataObjectParser__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_VCFCallDataObjectParser__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.chunk_length = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.dtype);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.dtype));
  __pyx_v___pyx_result->__pyx_base.dtype = ((PyArray_Descr *)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.fill);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.fill);
  __pyx_v___pyx_result->__pyx_base.fill = __pyx_t_2;
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.itemsize = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyBytes_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.key);
  __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.key);
  __pyx_v___pyx_result->__pyx_base.key = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE); if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
  __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->memory, 0);
  __pyx_v___pyx_result->memory = __pyx_t_3;
  __pyx_t_3.memview = NULL;
  __pyx_t_3.data = NULL;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.n_samples_out = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyIndex_AsSsize_t(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->__pyx_base.number = __pyx_t_1;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.values);
  __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->__pyx_base.values));
  __pyx_v___pyx_result->__pyx_base.values = ((PyArrayObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_1 > 9) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":14
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[9])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 9));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[9])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataObjectParser__set_state(<VCFCallDataObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataObjectParser__set_state(VCFCallDataObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_VCFCallDataObjectParser__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_ANNTransformer(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_131__pyx_unpickle_ANNTransformer(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_13variant_tools_11io_vcf_read_131__pyx_unpickle_ANNTransformer = {"__pyx_unpickle_ANNTransformer", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_131__pyx_unpickle_ANNTransformer, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_13variant_tools_11io_vcf_read_131__pyx_unpickle_ANNTransformer(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_ANNTransformer (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ANNTransformer", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ANNTransformer", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_ANNTransformer") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_ANNTransformer", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_ANNTransformer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_13variant_tools_11io_vcf_read_130__pyx_unpickle_ANNTransformer(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_13variant_tools_11io_vcf_read_130__pyx_unpickle_ANNTransformer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_ANNTransformer", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x78e5676:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x78e5676) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x78e5676:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)
 *     __pyx_result = ANNTransformer.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x78e5676:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = ANNTransformer.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x78, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x78e5676:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)
 *     __pyx_result = ANNTransformer.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_13variant_tools_11io_vcf_read_ANNTransformer), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)
 *     __pyx_result = ANNTransformer.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = ANNTransformer.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_ANNTransformer__set_state(((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x78e5676 = (fields, keep_original, types))" % __pyx_checksum)
 *     __pyx_result = ANNTransformer.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_ANNTransformer(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_ANNTransformer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_13variant_tools_11io_vcf_read___pyx_unpickle_ANNTransformer__set_state(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_ANNTransformer__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[3])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  if (!(likely(PyList_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->fields);
  __Pyx_DECREF(__pyx_v___pyx_result->fields);
  __pyx_v___pyx_result->fields = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1)); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
  __pyx_v___pyx_result->keep_original = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->types);
  __Pyx_DECREF(__pyx_v___pyx_result->types);
  __pyx_v___pyx_result->types = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[3])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_3 > 3) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_2 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "(tree fragment)":14
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[3])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, PyTuple_GET_ITEM(__pyx_v___pyx_state, 3)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 3));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[3])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_ANNTransformer__set_state(<ANNTransformer> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_ANNTransformer__set_state(ANNTransformer __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.fields = __pyx_state[0]; __pyx_result.keep_original = __pyx_state[1]; __pyx_result.types = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("variant_tools.io_vcf_read.__pyx_unpickle_ANNTransformer__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":258
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
 *         # -- the details of this may change.
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
 *             # This implementation of getbuffer is geared towards Cython
 *             # requirements, and does not yet fulfill the PEP.
 */

/* Python wrapper */
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_v_i;
  int __pyx_v_ndim;
  int __pyx_v_endian_detector;
  int __pyx_v_little_endian;
  int __pyx_v_t;
  char *__pyx_v_f;
  PyArray_Descr *__pyx_v_descr = 0;
  int __pyx_v_offset;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyArray_Descr *__pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  char *__pyx_t_9;
  if (__pyx_v_info == NULL) {
    PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete");
    return -1;
  }
  __Pyx_RefNannySetupContext("__getbuffer__", 0);
  __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(__pyx_v_info->obj);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":265
 * 
 *             cdef int i, ndim
 *             cdef int endian_detector = 1             # <<<<<<<<<<<<<<
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
 * 
 */
  __pyx_v_endian_detector = 1;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":266
 *             cdef int i, ndim
 *             cdef int endian_detector = 1
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)             # <<<<<<<<<<<<<<
 * 
 *             ndim = PyArray_NDIM(self)
 */
  __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":268
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
 * 
 *             ndim = PyArray_NDIM(self)             # <<<<<<<<<<<<<<
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 */
  __pyx_v_ndim = PyArray_NDIM(__pyx_v_self);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270
 *             ndim = PyArray_NDIM(self)
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")
 */
  __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":271
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):             # <<<<<<<<<<<<<<
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 */
  __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_ARRAY_C_CONTIGUOUS) != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270
 *             ndim = PyArray_NDIM(self)
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")
 */
  if (unlikely(__pyx_t_1)) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")             # <<<<<<<<<<<<<<
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(2, 272, __pyx_L1_error)

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270
 *             ndim = PyArray_NDIM(self)
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 */
  __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":275
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):             # <<<<<<<<<<<<<<
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 * 
 */
  __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_ARRAY_F_CONTIGUOUS) != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 */
  if (unlikely(__pyx_t_1)) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")             # <<<<<<<<<<<<<<
 * 
 *             info.buf = PyArray_DATA(self)
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(2, 276, __pyx_L1_error)

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":278
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 * 
 *             info.buf = PyArray_DATA(self)             # <<<<<<<<<<<<<<
 *             info.ndim = ndim
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 */
  __pyx_v_info->buf = PyArray_DATA(__pyx_v_self);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":279
 * 
 *             info.buf = PyArray_DATA(self)
 *             info.ndim = ndim             # <<<<<<<<<<<<<<
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 *                 # Allocate new buffer for strides and shape info.
 */
  __pyx_v_info->ndim = __pyx_v_ndim;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280
 *             info.buf = PyArray_DATA(self)
 *             info.ndim = ndim
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 # Allocate new buffer for strides and shape info.
 *                 # This is allocated as one block, strides first.
 */
  __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
  if (__pyx_t_1) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":283
 *                 # Allocate new buffer for strides and shape info.
 *                 # This is allocated as one block, strides first.
 *                 info.strides = <Py_ssize_t*>PyObject_Malloc(sizeof(Py_ssize_t) * 2 * <size_t>ndim)             # <<<<<<<<<<<<<<
 *                 info.shape = info.strides + ndim
 *                 for i in range(ndim):
 */
    __pyx_v_info->strides = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * 2) * ((size_t)__pyx_v_ndim))));

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":284
 *                 # This is allocated as one block, strides first.
 *                 info.strides = <Py_ssize_t*>PyObject_Malloc(sizeof(Py_ssize_t) * 2 * <size_t>ndim)
 *                 info.shape = info.strides + ndim             # <<<<<<<<<<<<<<
 *                 for i in range(ndim):
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
 */
    __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":285
 *                 info.strides = <Py_ssize_t*>PyObject_Malloc(sizeof(Py_ssize_t) * 2 * <size_t>ndim)
 *                 info.shape = info.strides + ndim
 *                 for i in range(ndim):             # <<<<<<<<<<<<<<
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
 *                     info.shape[i] = PyArray_DIMS(self)[i]
 */
    __pyx_t_4 = __pyx_v_ndim;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":286
 *                 info.shape = info.strides + ndim
 *                 for i in range(ndim):
 *                     info.strides[i] = PyArray_STRIDES(self)[i]             # <<<<<<<<<<<<<<
 *                     info.shape[i] = PyArray_DIMS(self)[i]
 *             else:
 */
      (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":287
 *                 for i in range(ndim):
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
 *                     info.shape[i] = PyArray_DIMS(self)[i]             # <<<<<<<<<<<<<<
 *             else:
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
 */
      (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]);
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280
 *             info.buf = PyArray_DATA(self)
 *             info.ndim = ndim
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 # Allocate new buffer for strides and shape info.
 *                 # This is allocated as one block, strides first.
 */
    goto __pyx_L9;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":289
 *                     info.shape[i] = PyArray_DIMS(self)[i]
 *             else:
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)             # <<<<<<<<<<<<<<
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
 *             info.suboffsets = NULL
 */
  /*else*/ {
    __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":290
 *             else:
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)             # <<<<<<<<<<<<<<
 *             info.suboffsets = NULL
 *             info.itemsize = PyArray_ITEMSIZE(self)
 */
    __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self));
  }
  __pyx_L9:;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":291
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
 *             info.suboffsets = NULL             # <<<<<<<<<<<<<<
 *             info.itemsize = PyArray_ITEMSIZE(self)
 *             info.readonly = not PyArray_ISWRITEABLE(self)
 */
  __pyx_v_info->suboffsets = NULL;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":292
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
 *             info.suboffsets = NULL
 *             info.itemsize = PyArray_ITEMSIZE(self)             # <<<<<<<<<<<<<<
 *             info.readonly = not PyArray_ISWRITEABLE(self)
 * 
 */
  __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":293
 *             info.suboffsets = NULL
 *             info.itemsize = PyArray_ITEMSIZE(self)
 *             info.readonly = not PyArray_ISWRITEABLE(self)             # <<<<<<<<<<<<<<
 * 
 *             cdef int t
 */
  __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":296
 * 
 *             cdef int t
 *             cdef char* f = NULL             # <<<<<<<<<<<<<<
 *             cdef dtype descr = <dtype>PyArray_DESCR(self)
 *             cdef int offset
 */
  __pyx_v_f = NULL;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297
 *             cdef int t
 *             cdef char* f = NULL
 *             cdef dtype descr = <dtype>PyArray_DESCR(self)             # <<<<<<<<<<<<<<
 *             cdef int offset
 * 
 */
  __pyx_t_7 = PyArray_DESCR(__pyx_v_self);
  __pyx_t_3 = ((PyObject *)__pyx_t_7);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":300
 *             cdef int offset
 * 
 *             info.obj = self             # <<<<<<<<<<<<<<
 * 
 *             if not PyDataType_HASFIELDS(descr):
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  __Pyx_GOTREF(__pyx_v_info->obj);
  __Pyx_DECREF(__pyx_v_info->obj);
  __pyx_v_info->obj = ((PyObject *)__pyx_v_self);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":302
 *             info.obj = self
 * 
 *             if not PyDataType_HASFIELDS(descr):             # <<<<<<<<<<<<<<
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or
 */
  __pyx_t_1 = ((!(PyDataType_HASFIELDS(__pyx_v_descr) != 0)) != 0);
  if (__pyx_t_1) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":303
 * 
 *             if not PyDataType_HASFIELDS(descr):
 *                 t = descr.type_num             # <<<<<<<<<<<<<<
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):
 */
    __pyx_t_4 = __pyx_v_descr->type_num;
    __pyx_v_t = __pyx_t_4;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304
 *             if not PyDataType_HASFIELDS(descr):
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 */
    __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0);
    if (!__pyx_t_2) {
      goto __pyx_L15_next_or;
    } else {
    }
    __pyx_t_2 = (__pyx_v_little_endian != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L14_bool_binop_done;
    }
    __pyx_L15_next_or:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":305
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):             # <<<<<<<<<<<<<<
 *                     raise ValueError(u"Non-native byte order not supported")
 *                 if   t == NPY_BYTE:        f = "b"
 */
    __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L14_bool_binop_done;
    }
    __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L14_bool_binop_done:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304
 *             if not PyDataType_HASFIELDS(descr):
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 */
    if (unlikely(__pyx_t_1)) {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":306
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 306, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(2, 306, __pyx_L1_error)

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304
 *             if not PyDataType_HASFIELDS(descr):
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 */
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":307
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 *                 if   t == NPY_BYTE:        f = "b"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_UBYTE:       f = "B"
 *                 elif t == NPY_SHORT:       f = "h"
 */
    switch (__pyx_v_t) {
      case NPY_BYTE:
      __pyx_v_f = ((char *)"b");
      break;
      case NPY_UBYTE:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":308
 *                     raise ValueError(u"Non-native byte order not supported")
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_SHORT:       f = "h"
 *                 elif t == NPY_USHORT:      f = "H"
 */
      __pyx_v_f = ((char *)"B");
      break;
      case NPY_SHORT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":309
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"
 *                 elif t == NPY_SHORT:       f = "h"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_USHORT:      f = "H"
 *                 elif t == NPY_INT:         f = "i"
 */
      __pyx_v_f = ((char *)"h");
      break;
      case NPY_USHORT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":310
 *                 elif t == NPY_UBYTE:       f = "B"
 *                 elif t == NPY_SHORT:       f = "h"
 *                 elif t == NPY_USHORT:      f = "H"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_INT:         f = "i"
 *                 elif t == NPY_UINT:        f = "I"
 */
      __pyx_v_f = ((char *)"H");
      break;
      case NPY_INT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":311
 *                 elif t == NPY_SHORT:       f = "h"
 *                 elif t == NPY_USHORT:      f = "H"
 *                 elif t == NPY_INT:         f = "i"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_UINT:        f = "I"
 *                 elif t == NPY_LONG:        f = "l"
 */
      __pyx_v_f = ((char *)"i");
      break;
      case NPY_UINT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":312
 *                 elif t == NPY_USHORT:      f = "H"
 *                 elif t == NPY_INT:         f = "i"
 *                 elif t == NPY_UINT:        f = "I"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_LONG:        f = "l"
 *                 elif t == NPY_ULONG:       f = "L"
 */
      __pyx_v_f = ((char *)"I");
      break;
      case NPY_LONG:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":313
 *                 elif t == NPY_INT:         f = "i"
 *                 elif t == NPY_UINT:        f = "I"
 *                 elif t == NPY_LONG:        f = "l"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_ULONG:       f = "L"
 *                 elif t == NPY_LONGLONG:    f = "q"
 */
      __pyx_v_f = ((char *)"l");
      break;
      case NPY_ULONG:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":314
 *                 elif t == NPY_UINT:        f = "I"
 *                 elif t == NPY_LONG:        f = "l"
 *                 elif t == NPY_ULONG:       f = "L"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_LONGLONG:    f = "q"
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 */
      __pyx_v_f = ((char *)"L");
      break;
      case NPY_LONGLONG:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":315
 *                 elif t == NPY_LONG:        f = "l"
 *                 elif t == NPY_ULONG:       f = "L"
 *                 elif t == NPY_LONGLONG:    f = "q"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 *                 elif t == NPY_FLOAT:       f = "f"
 */
      __pyx_v_f = ((char *)"q");
      break;
      case NPY_ULONGLONG:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":316
 *                 elif t == NPY_ULONG:       f = "L"
 *                 elif t == NPY_LONGLONG:    f = "q"
 *                 elif t == NPY_ULONGLONG:   f = "Q"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_FLOAT:       f = "f"
 *                 elif t == NPY_DOUBLE:      f = "d"
 */
      __pyx_v_f = ((char *)"Q");
      break;
      case NPY_FLOAT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":317
 *                 elif t == NPY_LONGLONG:    f = "q"
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 *                 elif t == NPY_FLOAT:       f = "f"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_DOUBLE:      f = "d"
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 */
      __pyx_v_f = ((char *)"f");
      break;
      case NPY_DOUBLE:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":318
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 *                 elif t == NPY_FLOAT:       f = "f"
 *                 elif t == NPY_DOUBLE:      f = "d"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 */
      __pyx_v_f = ((char *)"d");
      break;
      case NPY_LONGDOUBLE:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":319
 *                 elif t == NPY_FLOAT:       f = "f"
 *                 elif t == NPY_DOUBLE:      f = "d"
 *                 elif t == NPY_LONGDOUBLE:  f = "g"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 */
      __pyx_v_f = ((char *)"g");
      break;
      case NPY_CFLOAT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":320
 *                 elif t == NPY_DOUBLE:      f = "d"
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 *                 elif t == NPY_CFLOAT:      f = "Zf"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
 */
      __pyx_v_f = ((char *)"Zf");
      break;
      case NPY_CDOUBLE:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":321
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 *                 elif t == NPY_CDOUBLE:     f = "Zd"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
 *                 elif t == NPY_OBJECT:      f = "O"
 */
      __pyx_v_f = ((char *)"Zd");
      break;
      case NPY_CLONGDOUBLE:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":322
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_OBJECT:      f = "O"
 *                 else:
 */
      __pyx_v_f = ((char *)"Zg");
      break;
      case NPY_OBJECT:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":323
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
 *                 elif t == NPY_OBJECT:      f = "O"             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 */
      __pyx_v_f = ((char *)"O");
      break;
      default:

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":325
 *                 elif t == NPY_OBJECT:      f = "O"
 *                 else:
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)             # <<<<<<<<<<<<<<
 *                 info.format = f
 *                 return
 */
      __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 325, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 325, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 325, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(2, 325, __pyx_L1_error)
      break;
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":326
 *                 else:
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 *                 info.format = f             # <<<<<<<<<<<<<<
 *                 return
 *             else:
 */
    __pyx_v_info->format = __pyx_v_f;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":327
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 *                 info.format = f
 *                 return             # <<<<<<<<<<<<<<
 *             else:
 *                 info.format = <char*>PyObject_Malloc(_buffer_format_string_len)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":302
 *             info.obj = self
 * 
 *             if not PyDataType_HASFIELDS(descr):             # <<<<<<<<<<<<<<
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":329
 *                 return
 *             else:
 *                 info.format = <char*>PyObject_Malloc(_buffer_format_string_len)             # <<<<<<<<<<<<<<
 *                 info.format[0] = c'^' # Native data types, manual alignment
 *                 offset = 0
 */
  /*else*/ {
    __pyx_v_info->format = ((char *)PyObject_Malloc(0xFF));

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":330
 *             else:
 *                 info.format = <char*>PyObject_Malloc(_buffer_format_string_len)
 *                 info.format[0] = c'^' # Native data types, manual alignment             # <<<<<<<<<<<<<<
 *                 offset = 0
 *                 f = _util_dtypestring(descr, info.format + 1,
 */
    (__pyx_v_info->format[0]) = '^';

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":331
 *                 info.format = <char*>PyObject_Malloc(_buffer_format_string_len)
 *                 info.format[0] = c'^' # Native data types, manual alignment
 *                 offset = 0             # <<<<<<<<<<<<<<
 *                 f = _util_dtypestring(descr, info.format + 1,
 *                                       info.format + _buffer_format_string_len,
 */
    __pyx_v_offset = 0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":332
 *                 info.format[0] = c'^' # Native data types, manual alignment
 *                 offset = 0
 *                 f = _util_dtypestring(descr, info.format + 1,             # <<<<<<<<<<<<<<
 *                                       info.format + _buffer_format_string_len,
 *                                       &offset)
 */
    __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_9 == ((char *)NULL))) __PYX_ERR(2, 332, __pyx_L1_error)
    __pyx_v_f = __pyx_t_9;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":335
 *                                       info.format + _buffer_format_string_len,
 *                                       &offset)
 *                 f[0] = c'\0' # Terminate format string             # <<<<<<<<<<<<<<
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 */
    (__pyx_v_f[0]) = '\x00';
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":258
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
 *         # -- the details of this may change.
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
 *             # This implementation of getbuffer is geared towards Cython
 *             # requirements, and does not yet fulfill the PEP.
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  if (__pyx_v_info->obj != NULL) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
  }
  goto __pyx_L2;
  __pyx_L0:;
  if (__pyx_v_info->obj == Py_None) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
  }
  __pyx_L2:;
  __Pyx_XDECREF((PyObject *)__pyx_v_descr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":337
 *                 f[0] = c'\0' # Terminate format string
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
 *             if PyArray_HASFIELDS(self):
 *                 PyObject_Free(info.format)
 */

/* Python wrapper */
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0);
  __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__releasebuffer__", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":338
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 *             if PyArray_HASFIELDS(self):             # <<<<<<<<<<<<<<
 *                 PyObject_Free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 */
  __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
  if (__pyx_t_1) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":339
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 *             if PyArray_HASFIELDS(self):
 *                 PyObject_Free(info.format)             # <<<<<<<<<<<<<<
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 *                 PyObject_Free(info.strides)
 */
    PyObject_Free(__pyx_v_info->format);

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":338
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 *             if PyArray_HASFIELDS(self):             # <<<<<<<<<<<<<<
 *                 PyObject_Free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":340
 *             if PyArray_HASFIELDS(self):
 *                 PyObject_Free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 PyObject_Free(info.strides)
 *                 # info.shape was stored after info.strides in the same block
 */
  __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
  if (__pyx_t_1) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":341
 *                 PyObject_Free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 *                 PyObject_Free(info.strides)             # <<<<<<<<<<<<<<
 *                 # info.shape was stored after info.strides in the same block
 * 
 */
    PyObject_Free(__pyx_v_info->strides);

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":340
 *             if PyArray_HASFIELDS(self):
 *                 PyObject_Free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 PyObject_Free(info.strides)
 *                 # info.shape was stored after info.strides in the same block
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":337
 *                 f[0] = c'\0' # Terminate format string
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
 *             if PyArray_HASFIELDS(self):
 *                 PyObject_Free(info.format)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":821
 * ctypedef npy_cdouble     complex_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":822
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 *     return PyArray_MultiIterNew(1, <void*>a)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":821
 * ctypedef npy_cdouble     complex_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":825
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":828
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":830
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":830
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)             # <<<<<<<<<<<<<<
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":836
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):             # <<<<<<<<<<<<<<
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):             # <<<<<<<<<<<<<<
 *         return <tuple>d.subarray.shape
 *     else:
 */
  __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
  if (__pyx_t_1) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":838
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape             # <<<<<<<<<<<<<<
 *     else:
 *         return ()
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
    __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
    goto __pyx_L0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):             # <<<<<<<<<<<<<<
 *         return <tuple>d.subarray.shape
 *     else:
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":840
 *         return <tuple>d.subarray.shape
 *     else:
 *         return ()             # <<<<<<<<<<<<<<
 * 
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_empty_tuple);
    __pyx_r = __pyx_empty_tuple;
    goto __pyx_L0;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":836
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):             # <<<<<<<<<<<<<<
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842
 *         return ()
 * 
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:             # <<<<<<<<<<<<<<
 *     # Recursive utility function used in __getbuffer__ to get format
 *     # string. The new location in the format string is returned.
 */

static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) {
  PyArray_Descr *__pyx_v_child = 0;
  int __pyx_v_endian_detector;
  int __pyx_v_little_endian;
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_childname = NULL;
  PyObject *__pyx_v_new_offset = NULL;
  PyObject *__pyx_v_t = NULL;
  char *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  long __pyx_t_8;
  char *__pyx_t_9;
  __Pyx_RefNannySetupContext("_util_dtypestring", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":847
 * 
 *     cdef dtype child
 *     cdef int endian_detector = 1             # <<<<<<<<<<<<<<
 *     cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
 *     cdef tuple fields
 */
  __pyx_v_endian_detector = 1;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":848
 *     cdef dtype child
 *     cdef int endian_detector = 1
 *     cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)             # <<<<<<<<<<<<<<
 *     cdef tuple fields
 * 
 */
  __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851
 *     cdef tuple fields
 * 
 *     for childname in descr.names:             # <<<<<<<<<<<<<<
 *         fields = descr.fields[childname]
 *         child, new_offset = fields
 */
  if (unlikely(__pyx_v_descr->names == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(2, 851, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(2, 851, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 851, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":852
 * 
 *     for childname in descr.names:
 *         fields = descr.fields[childname]             # <<<<<<<<<<<<<<
 *         child, new_offset = fields
 * 
 */
    if (unlikely(__pyx_v_descr->fields == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(2, 852, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 852, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(2, 852, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":853
 *     for childname in descr.names:
 *         fields = descr.fields[childname]
 *         child, new_offset = fields             # <<<<<<<<<<<<<<
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
 */
    if (likely(__pyx_v_fields != Py_None)) {
      PyObject* sequence = __pyx_v_fields;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(2, 853, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      #else
      __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 853, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 853, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      #endif
    } else {
      __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(2, 853, __pyx_L1_error)
    }
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(2, 853, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
    __pyx_t_3 = 0;
    __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855
 *         child, new_offset = fields
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:             # <<<<<<<<<<<<<<
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 */
    __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 855, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0);
    if (unlikely(__pyx_t_6)) {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")             # <<<<<<<<<<<<<<
 * 
 *         if ((child.byteorder == c'>' and little_endian) or
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 856, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(2, 856, __pyx_L1_error)

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855
 *         child, new_offset = fields
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:             # <<<<<<<<<<<<<<
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 */
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")
 */
    __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0);
    if (!__pyx_t_7) {
      goto __pyx_L8_next_or;
    } else {
    }
    __pyx_t_7 = (__pyx_v_little_endian != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_L8_next_or:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":859
 * 
 *         if ((child.byteorder == c'>' and little_endian) or
 *             (child.byteorder == c'<' and not little_endian)):             # <<<<<<<<<<<<<<
 *             raise ValueError(u"Non-native byte order not supported")
 *             # One could encode it in the format string and have Cython
 */
    __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0);
    if (__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0);
    __pyx_t_6 = __pyx_t_7;
    __pyx_L7_bool_binop_done:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")
 */
    if (unlikely(__pyx_t_6)) {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":860
 *         if ((child.byteorder == c'>' and little_endian) or
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *             # One could encode it in the format string and have Cython
 *             # complain instead, BUT: < and > in format strings also imply
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 860, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(2, 860, __pyx_L1_error)

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")
 */
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":870
 * 
 *         # Output padding bytes
 *         while offset[0] < new_offset:             # <<<<<<<<<<<<<<
 *             f[0] = 120 # "x"; pad byte
 *             f += 1
 */
    while (1) {
      __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 870, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 870, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 870, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!__pyx_t_6) break;

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":871
 *         # Output padding bytes
 *         while offset[0] < new_offset:
 *             f[0] = 120 # "x"; pad byte             # <<<<<<<<<<<<<<
 *             f += 1
 *             offset[0] += 1
 */
      (__pyx_v_f[0]) = 0x78;

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":872
 *         while offset[0] < new_offset:
 *             f[0] = 120 # "x"; pad byte
 *             f += 1             # <<<<<<<<<<<<<<
 *             offset[0] += 1
 * 
 */
      __pyx_v_f = (__pyx_v_f + 1);

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":873
 *             f[0] = 120 # "x"; pad byte
 *             f += 1
 *             offset[0] += 1             # <<<<<<<<<<<<<<
 * 
 *         offset[0] += child.itemsize
 */
      __pyx_t_8 = 0;
      (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1);
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":875
 *             offset[0] += 1
 * 
 *         offset[0] += child.itemsize             # <<<<<<<<<<<<<<
 * 
 *         if not PyDataType_HASFIELDS(child):
 */
    __pyx_t_8 = 0;
    (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":877
 *         offset[0] += child.itemsize
 * 
 *         if not PyDataType_HASFIELDS(child):             # <<<<<<<<<<<<<<
 *             t = child.type_num
 *             if end - f < 5:
 */
    __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
    if (__pyx_t_6) {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":878
 * 
 *         if not PyDataType_HASFIELDS(child):
 *             t = child.type_num             # <<<<<<<<<<<<<<
 *             if end - f < 5:
 *                 raise RuntimeError(u"Format string allocated too short.")
 */
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 878, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":879
 *         if not PyDataType_HASFIELDS(child):
 *             t = child.type_num
 *             if end - f < 5:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError(u"Format string allocated too short.")
 * 
 */
      __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
      if (unlikely(__pyx_t_6)) {

        /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":880
 *             t = child.type_num
 *             if end - f < 5:
 *                 raise RuntimeError(u"Format string allocated too short.")             # <<<<<<<<<<<<<<
 * 
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 */
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 880, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_Raise(__pyx_t_4, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __PYX_ERR(2, 880, __pyx_L1_error)

        /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":879
 *         if not PyDataType_HASFIELDS(child):
 *             t = child.type_num
 *             if end - f < 5:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError(u"Format string allocated too short.")
 * 
 */
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":883
 * 
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"             # <<<<<<<<<<<<<<
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 883, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 883, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 883, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 98;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":884
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"             # <<<<<<<<<<<<<<
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 884, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 884, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 884, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 66;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":885
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"             # <<<<<<<<<<<<<<
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 885, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 885, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 885, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x68;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":886
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"             # <<<<<<<<<<<<<<
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 886, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 886, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 886, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 72;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":887
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 *             elif t == NPY_INT:         f[0] = 105 #"i"             # <<<<<<<<<<<<<<
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 887, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 887, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 887, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x69;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":888
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 *             elif t == NPY_UINT:        f[0] =  73 #"I"             # <<<<<<<<<<<<<<
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 888, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 888, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 73;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":889
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 *             elif t == NPY_LONG:        f[0] = 108 #"l"             # <<<<<<<<<<<<<<
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 889, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 889, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 889, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x6C;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":890
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"             # <<<<<<<<<<<<<<
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 890, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 890, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 890, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 76;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":891
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"             # <<<<<<<<<<<<<<
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 891, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 891, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x71;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":892
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"             # <<<<<<<<<<<<<<
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 892, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 892, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 81;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":893
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"             # <<<<<<<<<<<<<<
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 893, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 893, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 893, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x66;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":894
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"             # <<<<<<<<<<<<<<
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 894, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 894, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 894, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x64;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":895
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"             # <<<<<<<<<<<<<<
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 895, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 895, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 895, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x67;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":896
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf             # <<<<<<<<<<<<<<
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 896, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 896, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 896, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 90;
        (__pyx_v_f[1]) = 0x66;
        __pyx_v_f = (__pyx_v_f + 1);
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":897
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd             # <<<<<<<<<<<<<<
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 897, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 897, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 897, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 90;
        (__pyx_v_f[1]) = 0x64;
        __pyx_v_f = (__pyx_v_f + 1);
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":898
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg             # <<<<<<<<<<<<<<
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
 *             else:
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 898, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 898, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 898, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 90;
        (__pyx_v_f[1]) = 0x67;
        __pyx_v_f = (__pyx_v_f + 1);
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":899
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 899, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 899, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 899, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (likely(__pyx_t_6)) {
        (__pyx_v_f[0]) = 79;
        goto __pyx_L15;
      }

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":901
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
 *             else:
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)             # <<<<<<<<<<<<<<
 *             f += 1
 *         else:
 */
      /*else*/ {
        __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 901, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 901, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_4, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __PYX_ERR(2, 901, __pyx_L1_error)
      }
      __pyx_L15:;

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":902
 *             else:
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 *             f += 1             # <<<<<<<<<<<<<<
 *         else:
 *             # Cython ignores struct boundary information ("T{...}"),
 */
      __pyx_v_f = (__pyx_v_f + 1);

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":877
 *         offset[0] += child.itemsize
 * 
 *         if not PyDataType_HASFIELDS(child):             # <<<<<<<<<<<<<<
 *             t = child.type_num
 *             if end - f < 5:
 */
      goto __pyx_L13;
    }

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":906
 *             # Cython ignores struct boundary information ("T{...}"),
 *             # so don't output it
 *             f = _util_dtypestring(child, f, end, offset)             # <<<<<<<<<<<<<<
 *     return f
 * 
 */
    /*else*/ {
      __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == ((char *)NULL))) __PYX_ERR(2, 906, __pyx_L1_error)
      __pyx_v_f = __pyx_t_9;
    }
    __pyx_L13:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851
 *     cdef tuple fields
 * 
 *     for childname in descr.names:             # <<<<<<<<<<<<<<
 *         fields = descr.fields[childname]
 *         child, new_offset = fields
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":907
 *             # so don't output it
 *             f = _util_dtypestring(child, f, end, offset)
 *     return f             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_f;
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842
 *         return ()
 * 
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:             # <<<<<<<<<<<<<<
 *     # Recursive utility function used in __getbuffer__ to get format
 *     # string. The new location in the format string is returned.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_child);
  __Pyx_XDECREF(__pyx_v_fields);
  __Pyx_XDECREF(__pyx_v_childname);
  __Pyx_XDECREF(__pyx_v_new_offset);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1022
 *     int _import_umath() except -1
 * 
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)
 */

static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_array_base", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1023
 * 
 * cdef inline void set_array_base(ndarray arr, object base):
 *     Py_INCREF(base) # important to do this before stealing the reference below!             # <<<<<<<<<<<<<<
 *     PyArray_SetBaseObject(arr, base)
 * 
 */
  Py_INCREF(__pyx_v_base);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1024
 * cdef inline void set_array_base(ndarray arr, object base):
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object get_array_base(ndarray arr):
 */
  (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1022
 *     int _import_umath() except -1
 * 
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1026
 *     PyArray_SetBaseObject(arr, base)
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
  PyObject *__pyx_v_base;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("get_array_base", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1027
 * 
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)             # <<<<<<<<<<<<<<
 *     if base is NULL:
 *         return None
 */
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1028
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)
 *     if base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return <object>base
 */
  __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
  if (__pyx_t_1) {

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1029
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 *         return None             # <<<<<<<<<<<<<<
 *     return <object>base
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1028
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)
 *     if base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return <object>base
 */
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1030
 *     if base is NULL:
 *         return None
 *     return <object>base             # <<<<<<<<<<<<<<
 * 
 * # Versions of the import_* functions which are more suitable for
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_base));
  __pyx_r = ((PyObject *)__pyx_v_base);
  goto __pyx_L0;

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1026
 *     PyArray_SetBaseObject(arr, base)
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1034
 * # Versions of the import_* functions which are more suitable for
 * # Cython code.
 * cdef inline int import_array() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_array()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("import_array", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_array()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1036
 * cdef inline int import_array() except -1:
 *     try:
 *         _import_array()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy.core.multiarray failed to import")
 */
      __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1036, __pyx_L3_error)

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_array()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1037
 *     try:
 *         _import_array()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy.core.multiarray failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1037, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1038
 *         _import_array()
 *     except Exception:
 *         raise ImportError("numpy.core.multiarray failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_umath() except -1:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1038, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(2, 1038, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_array()
 *     except Exception:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1034
 * # Versions of the import_* functions which are more suitable for
 * # Cython code.
 * cdef inline int import_array() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_array()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1040
 *         raise ImportError("numpy.core.multiarray failed to import")
 * 
 * cdef inline int import_umath() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("import_umath", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1042
 * cdef inline int import_umath() except -1:
 *     try:
 *         _import_umath()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")
 */
      __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1042, __pyx_L3_error)

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1043
 *     try:
 *         _import_umath()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1043, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1044
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_ufunc() except -1:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1044, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(2, 1044, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1040
 *         raise ImportError("numpy.core.multiarray failed to import")
 * 
 * cdef inline int import_umath() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1046
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("import_ufunc", 0);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1048
 * cdef inline int import_ufunc() except -1:
 *     try:
 *         _import_umath()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")
 */
      __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1048, __pyx_L3_error)

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1049
 *     try:
 *         _import_umath()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy.core.umath failed to import")
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1049, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1050
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")             # <<<<<<<<<<<<<<
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1050, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(2, 1050, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1046
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":122
 *         cdef bint dtype_is_object
 * 
 *     def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None,             # <<<<<<<<<<<<<<
 *                   mode="c", bint allocate_buffer=True):
 * 
 */

/* Python wrapper */
static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_shape = 0;
  Py_ssize_t __pyx_v_itemsize;
  PyObject *__pyx_v_format = 0;
  PyObject *__pyx_v_mode = 0;
  int __pyx_v_allocate_buffer;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shape,&__pyx_n_s_itemsize,&__pyx_n_s_format,&__pyx_n_s_mode,&__pyx_n_s_allocate_buffer,0};
    PyObject* values[5] = {0,0,0,0,0};
    values[3] = ((PyObject *)__pyx_n_s_c);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_itemsize)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, 1); __PYX_ERR(1, 122, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, 2); __PYX_ERR(1, 122, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mode);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_allocate_buffer);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(1, 122, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_shape = ((PyObject*)values[0]);
    __pyx_v_itemsize = __Pyx_PyIndex_AsSsize_t(values[1]); if (unlikely((__pyx_v_itemsize == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 122, __pyx_L3_error)
    __pyx_v_format = values[2];
    __pyx_v_mode = values[3];
    if (values[4]) {
      __pyx_v_allocate_buffer = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_allocate_buffer == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 123, __pyx_L3_error)
    } else {

      /* "View.MemoryView":123
 * 
 *     def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None,
 *                   mode="c", bint allocate_buffer=True):             # <<<<<<<<<<<<<<
 * 
 *         cdef int idx
 */
      __pyx_v_allocate_buffer = ((int)1);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 122, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shape), (&PyTuple_Type), 1, "shape", 1))) __PYX_ERR(1, 122, __pyx_L1_error)
  if (unlikely(((PyObject *)__pyx_v_format) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "format"); __PYX_ERR(1, 122, __pyx_L1_error)
  }
  __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(((struct __pyx_array_obj *)__pyx_v_self), __pyx_v_shape, __pyx_v_itemsize, __pyx_v_format, __pyx_v_mode, __pyx_v_allocate_buffer);

  /* "View.MemoryView":122
 *         cdef bint dtype_is_object
 * 
 *     def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None,             # <<<<<<<<<<<<<<
 *                   mode="c", bint allocate_buffer=True):
 * 
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer) {
  int __pyx_v_idx;
  Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_dim;
  PyObject **__pyx_v_p;
  char __pyx_v_order;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char *__pyx_t_7;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  __Pyx_RefNannySetupContext("__cinit__", 0);
  __Pyx_INCREF(__pyx_v_format);

  /* "View.MemoryView":129
 *         cdef PyObject **p
 * 
 *         self.ndim = <int> len(shape)             # <<<<<<<<<<<<<<
 *         self.itemsize = itemsize
 * 
 */
  if (unlikely(__pyx_v_shape == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 129, __pyx_L1_error)
  }
  __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_shape); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 129, __pyx_L1_error)
  __pyx_v_self->ndim = ((int)__pyx_t_1);

  /* "View.MemoryView":130
 * 
 *         self.ndim = <int> len(shape)
 *         self.itemsize = itemsize             # <<<<<<<<<<<<<<
 * 
 *         if not self.ndim:
 */
  __pyx_v_self->itemsize = __pyx_v_itemsize;

  /* "View.MemoryView":132
 *         self.itemsize = itemsize
 * 
 *         if not self.ndim:             # <<<<<<<<<<<<<<
 *             raise ValueError("Empty shape tuple for cython.array")
 * 
 */
  __pyx_t_2 = ((!(__pyx_v_self->ndim != 0)) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "View.MemoryView":133
 * 
 *         if not self.ndim:
 *             raise ValueError("Empty shape tuple for cython.array")             # <<<<<<<<<<<<<<
 * 
 *         if itemsize <= 0:
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 133, __pyx_L1_error)

    /* "View.MemoryView":132
 *         self.itemsize = itemsize
 * 
 *         if not self.ndim:             # <<<<<<<<<<<<<<
 *             raise ValueError("Empty shape tuple for cython.array")
 * 
 */
  }

  /* "View.MemoryView":135
 *             raise ValueError("Empty shape tuple for cython.array")
 * 
 *         if itemsize <= 0:             # <<<<<<<<<<<<<<
 *             raise ValueError("itemsize <= 0 for cython.array")
 * 
 */
  __pyx_t_2 = ((__pyx_v_itemsize <= 0) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "View.MemoryView":136
 * 
 *         if itemsize <= 0:
 *             raise ValueError("itemsize <= 0 for cython.array")             # <<<<<<<<<<<<<<
 * 
 *         if not isinstance(format, bytes):
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 136, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 136, __pyx_L1_error)

    /* "View.MemoryView":135
 *             raise ValueError("Empty shape tuple for cython.array")
 * 
 *         if itemsize <= 0:             # <<<<<<<<<<<<<<
 *             raise ValueError("itemsize <= 0 for cython.array")
 * 
 */
  }

  /* "View.MemoryView":138
 *             raise ValueError("itemsize <= 0 for cython.array")
 * 
 *         if not isinstance(format, bytes):             # <<<<<<<<<<<<<<
 *             format = format.encode('ASCII')
 *         self._format = format  # keep a reference to the byte string
 */
  __pyx_t_2 = PyBytes_Check(__pyx_v_format); 
  __pyx_t_4 = ((!(__pyx_t_2 != 0)) != 0);
  if (__pyx_t_4) {

    /* "View.MemoryView":139
 * 
 *         if not isinstance(format, bytes):
 *             format = format.encode('ASCII')             # <<<<<<<<<<<<<<
 *         self._format = format  # keep a reference to the byte string
 *         self.format = self._format
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_format, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 139, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_n_s_ASCII) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ASCII);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 139, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_format, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "View.MemoryView":138
 *             raise ValueError("itemsize <= 0 for cython.array")
 * 
 *         if not isinstance(format, bytes):             # <<<<<<<<<<<<<<
 *             format = format.encode('ASCII')
 *         self._format = format  # keep a reference to the byte string
 */
  }

  /* "View.MemoryView":140
 *         if not isinstance(format, bytes):
 *             format = format.encode('ASCII')
 *         self._format = format  # keep a reference to the byte string             # <<<<<<<<<<<<<<
 *         self.format = self._format
 * 
 */
  if (!(likely(PyBytes_CheckExact(__pyx_v_format))||((__pyx_v_format) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_format)->tp_name), 0))) __PYX_ERR(1, 140, __pyx_L1_error)
  __pyx_t_3 = __pyx_v_format;
  __Pyx_INCREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_format);
  __Pyx_DECREF(__pyx_v_self->_format);
  __pyx_v_self->_format = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "View.MemoryView":141
 *             format = format.encode('ASCII')
 *         self._format = format  # keep a reference to the byte string
 *         self.format = self._format             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (unlikely(__pyx_v_self->_format == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(1, 141, __pyx_L1_error)
  }
  __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_self->_format); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(1, 141, __pyx_L1_error)
  __pyx_v_self->format = __pyx_t_7;

  /* "View.MemoryView":144
 * 
 * 
 *         self._shape = <Py_ssize_t *> PyObject_Malloc(sizeof(Py_ssize_t)*self.ndim*2)             # <<<<<<<<<<<<<<
 *         self._strides = self._shape + self.ndim
 * 
 */
  __pyx_v_self->_shape = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * __pyx_v_self->ndim) * 2)));

  /* "View.MemoryView":145
 * 
 *         self._shape = <Py_ssize_t *> PyObject_Malloc(sizeof(Py_ssize_t)*self.ndim*2)
 *         self._strides = self._shape + self.ndim             # <<<<<<<<<<<<<<
 * 
 *         if not self._shape:
 */
  __pyx_v_self->_strides = (__pyx_v_self->_shape + __pyx_v_self->ndim);

  /* "View.MemoryView":147
 *         self._strides = self._shape + self.ndim
 * 
 *         if not self._shape:             # <<<<<<<<<<<<<<
 *             raise MemoryError("unable to allocate shape and strides.")
 * 
 */
  __pyx_t_4 = ((!(__pyx_v_self->_shape != 0)) != 0);
  if (unlikely(__pyx_t_4)) {

    /* "View.MemoryView":148
 * 
 *         if not self._shape:
 *             raise MemoryError("unable to allocate shape and strides.")             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 148, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 148, __pyx_L1_error)

    /* "View.MemoryView":147
 *         self._strides = self._shape + self.ndim
 * 
 *         if not self._shape:             # <<<<<<<<<<<<<<
 *             raise MemoryError("unable to allocate shape and strides.")
 * 
 */
  }

  /* "View.MemoryView":151
 * 
 * 
 *         for idx, dim in enumerate(shape):             # <<<<<<<<<<<<<<
 *             if dim <= 0:
 *                 raise ValueError("Invalid shape in axis %d: %d." % (idx, dim))
 */
  __pyx_t_8 = 0;
  __pyx_t_3 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(1, 151, __pyx_L1_error)
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 151, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_dim = __pyx_t_9;
    __pyx_v_idx = __pyx_t_8;
    __pyx_t_8 = (__pyx_t_8 + 1);

    /* "View.MemoryView":152
 * 
 *         for idx, dim in enumerate(shape):
 *             if dim <= 0:             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid shape in axis %d: %d." % (idx, dim))
 *             self._shape[idx] = dim
 */
    __pyx_t_4 = ((__pyx_v_dim <= 0) != 0);
    if (unlikely(__pyx_t_4)) {

      /* "View.MemoryView":153
 *         for idx, dim in enumerate(shape):
 *             if dim <= 0:
 *                 raise ValueError("Invalid shape in axis %d: %d." % (idx, dim))             # <<<<<<<<<<<<<<
 *             self._shape[idx] = dim
 * 
 */
      __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_idx); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_dim); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_6);
      PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_6);
      __pyx_t_5 = 0;
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_Raise(__pyx_t_10, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __PYX_ERR(1, 153, __pyx_L1_error)

      /* "View.MemoryView":152
 * 
 *         for idx, dim in enumerate(shape):
 *             if dim <= 0:             # <<<<<<<<<<<<<<
 *                 raise ValueError("Invalid shape in axis %d: %d." % (idx, dim))
 *             self._shape[idx] = dim
 */
    }

    /* "View.MemoryView":154
 *             if dim <= 0:
 *                 raise ValueError("Invalid shape in axis %d: %d." % (idx, dim))
 *             self._shape[idx] = dim             # <<<<<<<<<<<<<<
 * 
 *         cdef char order
 */
    (__pyx_v_self->_shape[__pyx_v_idx]) = __pyx_v_dim;

    /* "View.MemoryView":151
 * 
 * 
 *         for idx, dim in enumerate(shape):             # <<<<<<<<<<<<<<
 *             if dim <= 0:
 *                 raise ValueError("Invalid shape in axis %d: %d." % (idx, dim))
 */
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "View.MemoryView":157
 * 
 *         cdef char order
 *         if mode == 'fortran':             # <<<<<<<<<<<<<<
 *             order = b'F'
 *             self.mode = u'fortran'
 */
  __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_fortran, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(1, 157, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "View.MemoryView":158
 *         cdef char order
 *         if mode == 'fortran':
 *             order = b'F'             # <<<<<<<<<<<<<<
 *             self.mode = u'fortran'
 *         elif mode == 'c':
 */
    __pyx_v_order = 'F';

    /* "View.MemoryView":159
 *         if mode == 'fortran':
 *             order = b'F'
 *             self.mode = u'fortran'             # <<<<<<<<<<<<<<
 *         elif mode == 'c':
 *             order = b'C'
 */
    __Pyx_INCREF(__pyx_n_u_fortran);
    __Pyx_GIVEREF(__pyx_n_u_fortran);
    __Pyx_GOTREF(__pyx_v_self->mode);
    __Pyx_DECREF(__pyx_v_self->mode);
    __pyx_v_self->mode = __pyx_n_u_fortran;

    /* "View.MemoryView":157
 * 
 *         cdef char order
 *         if mode == 'fortran':             # <<<<<<<<<<<<<<
 *             order = b'F'
 *             self.mode = u'fortran'
 */
    goto __pyx_L10;
  }

  /* "View.MemoryView":160
 *             order = b'F'
 *             self.mode = u'fortran'
 *         elif mode == 'c':             # <<<<<<<<<<<<<<
 *             order = b'C'
 *             self.mode = u'c'
 */
  __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_c, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(1, 160, __pyx_L1_error)
  if (likely(__pyx_t_4)) {

    /* "View.MemoryView":161
 *             self.mode = u'fortran'
 *         elif mode == 'c':
 *             order = b'C'             # <<<<<<<<<<<<<<
 *             self.mode = u'c'
 *         else:
 */
    __pyx_v_order = 'C';

    /* "View.MemoryView":162
 *         elif mode == 'c':
 *             order = b'C'
 *             self.mode = u'c'             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError("Invalid mode, expected 'c' or 'fortran', got %s" % mode)
 */
    __Pyx_INCREF(__pyx_n_u_c);
    __Pyx_GIVEREF(__pyx_n_u_c);
    __Pyx_GOTREF(__pyx_v_self->mode);
    __Pyx_DECREF(__pyx_v_self->mode);
    __pyx_v_self->mode = __pyx_n_u_c;

    /* "View.MemoryView":160
 *             order = b'F'
 *             self.mode = u'fortran'
 *         elif mode == 'c':             # <<<<<<<<<<<<<<
 *             order = b'C'
 *             self.mode = u'c'
 */
    goto __pyx_L10;
  }

  /* "View.MemoryView":164
 *             self.mode = u'c'
 *         else:
 *             raise ValueError("Invalid mode, expected 'c' or 'fortran', got %s" % mode)             # <<<<<<<<<<<<<<
 * 
 *         self.len = fill_contig_strides_array(self._shape, self._strides,
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_v_mode); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_t_10, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __PYX_ERR(1, 164, __pyx_L1_error)
  }
  __pyx_L10:;

  /* "View.MemoryView":166
 *             raise ValueError("Invalid mode, expected 'c' or 'fortran', got %s" % mode)
 * 
 *         self.len = fill_contig_strides_array(self._shape, self._strides,             # <<<<<<<<<<<<<<
 *                                              itemsize, self.ndim, order)
 * 
 */
  __pyx_v_self->len = __pyx_fill_contig_strides_array(__pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_itemsize, __pyx_v_self->ndim, __pyx_v_order);

  /* "View.MemoryView":169
 *                                              itemsize, self.ndim, order)
 * 
 *         self.free_data = allocate_buffer             # <<<<<<<<<<<<<<
 *         self.dtype_is_object = format == b'O'
 *         if allocate_buffer:
 */
  __pyx_v_self->free_data = __pyx_v_allocate_buffer;

  /* "View.MemoryView":170
 * 
 *         self.free_data = allocate_buffer
 *         self.dtype_is_object = format == b'O'             # <<<<<<<<<<<<<<
 *         if allocate_buffer:
 * 
 */
  __pyx_t_10 = PyObject_RichCompare(__pyx_v_format, __pyx_n_b_O, Py_EQ); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 170, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_v_self->dtype_is_object = __pyx_t_4;

  /* "View.MemoryView":171
 *         self.free_data = allocate_buffer
 *         self.dtype_is_object = format == b'O'
 *         if allocate_buffer:             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_4 = (__pyx_v_allocate_buffer != 0);
  if (__pyx_t_4) {

    /* "View.MemoryView":174
 * 
 * 
 *             self.data = <char *>malloc(self.len)             # <<<<<<<<<<<<<<
 *             if not self.data:
 *                 raise MemoryError("unable to allocate array data.")
 */
    __pyx_v_self->data = ((char *)malloc(__pyx_v_self->len));

    /* "View.MemoryView":175
 * 
 *             self.data = <char *>malloc(self.len)
 *             if not self.data:             # <<<<<<<<<<<<<<
 *                 raise MemoryError("unable to allocate array data.")
 * 
 */
    __pyx_t_4 = ((!(__pyx_v_self->data != 0)) != 0);
    if (unlikely(__pyx_t_4)) {

      /* "View.MemoryView":176
 *             self.data = <char *>malloc(self.len)
 *             if not self.data:
 *                 raise MemoryError("unable to allocate array data.")             # <<<<<<<<<<<<<<
 * 
 *             if self.dtype_is_object:
 */
      __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 176, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_Raise(__pyx_t_10, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __PYX_ERR(1, 176, __pyx_L1_error)

      /* "View.MemoryView":175
 * 
 *             self.data = <char *>malloc(self.len)
 *             if not self.data:             # <<<<<<<<<<<<<<
 *                 raise MemoryError("unable to allocate array data.")
 * 
 */
    }

    /* "View.MemoryView":178
 *                 raise MemoryError("unable to allocate array data.")
 * 
 *             if self.dtype_is_object:             # <<<<<<<<<<<<<<
 *                 p = <PyObject **> self.data
 *                 for i in range(self.len / itemsize):
 */
    __pyx_t_4 = (__pyx_v_self->dtype_is_object != 0);
    if (__pyx_t_4) {

      /* "View.MemoryView":179
 * 
 *             if self.dtype_is_object:
 *                 p = <PyObject **> self.data             # <<<<<<<<<<<<<<
 *                 for i in range(self.len / itemsize):
 *                     p[i] = Py_None
 */
      __pyx_v_p = ((PyObject **)__pyx_v_self->data);

      /* "View.MemoryView":180
 *             if self.dtype_is_object:
 *                 p = <PyObject **> self.data
 *                 for i in range(self.len / itemsize):             # <<<<<<<<<<<<<<
 *                     p[i] = Py_None
 *                     Py_INCREF(Py_None)
 */
      if (unlikely(__pyx_v_itemsize == 0)) {
        PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero");
        __PYX_ERR(1, 180, __pyx_L1_error)
      }
      else if (sizeof(Py_ssize_t) == sizeof(long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1)  && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_self->len))) {
        PyErr_SetString(PyExc_OverflowError, "value too large to perform division");
        __PYX_ERR(1, 180, __pyx_L1_error)
      }
      __pyx_t_1 = __Pyx_div_Py_ssize_t(__pyx_v_self->len, __pyx_v_itemsize);
      __pyx_t_9 = __pyx_t_1;
      for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_9; __pyx_t_11+=1) {
        __pyx_v_i = __pyx_t_11;

        /* "View.MemoryView":181
 *                 p = <PyObject **> self.data
 *                 for i in range(self.len / itemsize):
 *                     p[i] = Py_None             # <<<<<<<<<<<<<<
 *                     Py_INCREF(Py_None)
 * 
 */
        (__pyx_v_p[__pyx_v_i]) = Py_None;

        /* "View.MemoryView":182
 *                 for i in range(self.len / itemsize):
 *                     p[i] = Py_None
 *                     Py_INCREF(Py_None)             # <<<<<<<<<<<<<<
 * 
 *     @cname('getbuffer')
 */
        Py_INCREF(Py_None);
      }

      /* "View.MemoryView":178
 *                 raise MemoryError("unable to allocate array data.")
 * 
 *             if self.dtype_is_object:             # <<<<<<<<<<<<<<
 *                 p = <PyObject **> self.data
 *                 for i in range(self.len / itemsize):
 */
    }

    /* "View.MemoryView":171
 *         self.free_data = allocate_buffer
 *         self.dtype_is_object = format == b'O'
 *         if allocate_buffer:             # <<<<<<<<<<<<<<
 * 
 * 
 */
  }

  /* "View.MemoryView":122
 *         cdef bint dtype_is_object
 * 
 *     def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None,             # <<<<<<<<<<<<<<
 *                   mode="c", bint allocate_buffer=True):
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_format);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":185
 * 
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):             # <<<<<<<<<<<<<<
 *         cdef int bufmode = -1
 *         if self.mode == u"c":
 */

/* Python wrapper */
static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
  __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(((struct __pyx_array_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_v_bufmode;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  char *__pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t *__pyx_t_7;
  if (__pyx_v_info == NULL) {
    PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete");
    return -1;
  }
  __Pyx_RefNannySetupContext("__getbuffer__", 0);
  __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(__pyx_v_info->obj);

  /* "View.MemoryView":186
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         cdef int bufmode = -1             # <<<<<<<<<<<<<<
 *         if self.mode == u"c":
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 */
  __pyx_v_bufmode = -1;

  /* "View.MemoryView":187
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         cdef int bufmode = -1
 *         if self.mode == u"c":             # <<<<<<<<<<<<<<
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         elif self.mode == u"fortran":
 */
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_c, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 187, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":188
 *         cdef int bufmode = -1
 *         if self.mode == u"c":
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS             # <<<<<<<<<<<<<<
 *         elif self.mode == u"fortran":
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 */
    __pyx_v_bufmode = (PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS);

    /* "View.MemoryView":187
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         cdef int bufmode = -1
 *         if self.mode == u"c":             # <<<<<<<<<<<<<<
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         elif self.mode == u"fortran":
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":189
 *         if self.mode == u"c":
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         elif self.mode == u"fortran":             # <<<<<<<<<<<<<<
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         if not (flags & bufmode):
 */
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_fortran, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 189, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":190
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         elif self.mode == u"fortran":
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS             # <<<<<<<<<<<<<<
 *         if not (flags & bufmode):
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")
 */
    __pyx_v_bufmode = (PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS);

    /* "View.MemoryView":189
 *         if self.mode == u"c":
 *             bufmode = PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         elif self.mode == u"fortran":             # <<<<<<<<<<<<<<
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         if not (flags & bufmode):
 */
  }
  __pyx_L3:;

  /* "View.MemoryView":191
 *         elif self.mode == u"fortran":
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         if not (flags & bufmode):             # <<<<<<<<<<<<<<
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")
 *         info.buf = self.data
 */
  __pyx_t_1 = ((!((__pyx_v_flags & __pyx_v_bufmode) != 0)) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "View.MemoryView":192
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         if not (flags & bufmode):
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")             # <<<<<<<<<<<<<<
 *         info.buf = self.data
 *         info.len = self.len
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 192, __pyx_L1_error)

    /* "View.MemoryView":191
 *         elif self.mode == u"fortran":
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         if not (flags & bufmode):             # <<<<<<<<<<<<<<
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")
 *         info.buf = self.data
 */
  }

  /* "View.MemoryView":193
 *         if not (flags & bufmode):
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")
 *         info.buf = self.data             # <<<<<<<<<<<<<<
 *         info.len = self.len
 *         info.ndim = self.ndim
 */
  __pyx_t_4 = __pyx_v_self->data;
  __pyx_v_info->buf = __pyx_t_4;

  /* "View.MemoryView":194
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")
 *         info.buf = self.data
 *         info.len = self.len             # <<<<<<<<<<<<<<
 *         info.ndim = self.ndim
 *         info.shape = self._shape
 */
  __pyx_t_5 = __pyx_v_self->len;
  __pyx_v_info->len = __pyx_t_5;

  /* "View.MemoryView":195
 *         info.buf = self.data
 *         info.len = self.len
 *         info.ndim = self.ndim             # <<<<<<<<<<<<<<
 *         info.shape = self._shape
 *         info.strides = self._strides
 */
  __pyx_t_6 = __pyx_v_self->ndim;
  __pyx_v_info->ndim = __pyx_t_6;

  /* "View.MemoryView":196
 *         info.len = self.len
 *         info.ndim = self.ndim
 *         info.shape = self._shape             # <<<<<<<<<<<<<<
 *         info.strides = self._strides
 *         info.suboffsets = NULL
 */
  __pyx_t_7 = __pyx_v_self->_shape;
  __pyx_v_info->shape = __pyx_t_7;

  /* "View.MemoryView":197
 *         info.ndim = self.ndim
 *         info.shape = self._shape
 *         info.strides = self._strides             # <<<<<<<<<<<<<<
 *         info.suboffsets = NULL
 *         info.itemsize = self.itemsize
 */
  __pyx_t_7 = __pyx_v_self->_strides;
  __pyx_v_info->strides = __pyx_t_7;

  /* "View.MemoryView":198
 *         info.shape = self._shape
 *         info.strides = self._strides
 *         info.suboffsets = NULL             # <<<<<<<<<<<<<<
 *         info.itemsize = self.itemsize
 *         info.readonly = 0
 */
  __pyx_v_info->suboffsets = NULL;

  /* "View.MemoryView":199
 *         info.strides = self._strides
 *         info.suboffsets = NULL
 *         info.itemsize = self.itemsize             # <<<<<<<<<<<<<<
 *         info.readonly = 0
 * 
 */
  __pyx_t_5 = __pyx_v_self->itemsize;
  __pyx_v_info->itemsize = __pyx_t_5;

  /* "View.MemoryView":200
 *         info.suboffsets = NULL
 *         info.itemsize = self.itemsize
 *         info.readonly = 0             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_FORMAT:
 */
  __pyx_v_info->readonly = 0;

  /* "View.MemoryView":202
 *         info.readonly = 0
 * 
 *         if flags & PyBUF_FORMAT:             # <<<<<<<<<<<<<<
 *             info.format = self.format
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":203
 * 
 *         if flags & PyBUF_FORMAT:
 *             info.format = self.format             # <<<<<<<<<<<<<<
 *         else:
 *             info.format = NULL
 */
    __pyx_t_4 = __pyx_v_self->format;
    __pyx_v_info->format = __pyx_t_4;

    /* "View.MemoryView":202
 *         info.readonly = 0
 * 
 *         if flags & PyBUF_FORMAT:             # <<<<<<<<<<<<<<
 *             info.format = self.format
 *         else:
 */
    goto __pyx_L5;
  }

  /* "View.MemoryView":205
 *             info.format = self.format
 *         else:
 *             info.format = NULL             # <<<<<<<<<<<<<<
 * 
 *         info.obj = self
 */
  /*else*/ {
    __pyx_v_info->format = NULL;
  }
  __pyx_L5:;

  /* "View.MemoryView":207
 *             info.format = NULL
 * 
 *         info.obj = self             # <<<<<<<<<<<<<<
 * 
 *     __pyx_getbuffer = capsule(<void *> &__pyx_array_getbuffer, "getbuffer(obj, view, flags)")
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  __Pyx_GOTREF(__pyx_v_info->obj);
  __Pyx_DECREF(__pyx_v_info->obj);
  __pyx_v_info->obj = ((PyObject *)__pyx_v_self);

  /* "View.MemoryView":185
 * 
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):             # <<<<<<<<<<<<<<
 *         cdef int bufmode = -1
 *         if self.mode == u"c":
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  if (__pyx_v_info->obj != NULL) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
  }
  goto __pyx_L2;
  __pyx_L0:;
  if (__pyx_v_info->obj == Py_None) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
  }
  __pyx_L2:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":211
 *     __pyx_getbuffer = capsule(<void *> &__pyx_array_getbuffer, "getbuffer(obj, view, flags)")
 * 
 *     def __dealloc__(array self):             # <<<<<<<<<<<<<<
 *         if self.callback_free_data != NULL:
 *             self.callback_free_data(self.data)
 */

/* Python wrapper */
static void __pyx_array___dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_array___dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(((struct __pyx_array_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struct __pyx_array_obj *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "View.MemoryView":212
 * 
 *     def __dealloc__(array self):
 *         if self.callback_free_data != NULL:             # <<<<<<<<<<<<<<
 *             self.callback_free_data(self.data)
 *         elif self.free_data:
 */
  __pyx_t_1 = ((__pyx_v_self->callback_free_data != NULL) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":213
 *     def __dealloc__(array self):
 *         if self.callback_free_data != NULL:
 *             self.callback_free_data(self.data)             # <<<<<<<<<<<<<<
 *         elif self.free_data:
 *             if self.dtype_is_object:
 */
    __pyx_v_self->callback_free_data(__pyx_v_self->data);

    /* "View.MemoryView":212
 * 
 *     def __dealloc__(array self):
 *         if self.callback_free_data != NULL:             # <<<<<<<<<<<<<<
 *             self.callback_free_data(self.data)
 *         elif self.free_data:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":214
 *         if self.callback_free_data != NULL:
 *             self.callback_free_data(self.data)
 *         elif self.free_data:             # <<<<<<<<<<<<<<
 *             if self.dtype_is_object:
 *                 refcount_objects_in_slice(self.data, self._shape,
 */
  __pyx_t_1 = (__pyx_v_self->free_data != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":215
 *             self.callback_free_data(self.data)
 *         elif self.free_data:
 *             if self.dtype_is_object:             # <<<<<<<<<<<<<<
 *                 refcount_objects_in_slice(self.data, self._shape,
 *                                           self._strides, self.ndim, False)
 */
    __pyx_t_1 = (__pyx_v_self->dtype_is_object != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":216
 *         elif self.free_data:
 *             if self.dtype_is_object:
 *                 refcount_objects_in_slice(self.data, self._shape,             # <<<<<<<<<<<<<<
 *                                           self._strides, self.ndim, False)
 *             free(self.data)
 */
      __pyx_memoryview_refcount_objects_in_slice(__pyx_v_self->data, __pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_self->ndim, 0);

      /* "View.MemoryView":215
 *             self.callback_free_data(self.data)
 *         elif self.free_data:
 *             if self.dtype_is_object:             # <<<<<<<<<<<<<<
 *                 refcount_objects_in_slice(self.data, self._shape,
 *                                           self._strides, self.ndim, False)
 */
    }

    /* "View.MemoryView":218
 *                 refcount_objects_in_slice(self.data, self._shape,
 *                                           self._strides, self.ndim, False)
 *             free(self.data)             # <<<<<<<<<<<<<<
 *         PyObject_Free(self._shape)
 * 
 */
    free(__pyx_v_self->data);

    /* "View.MemoryView":214
 *         if self.callback_free_data != NULL:
 *             self.callback_free_data(self.data)
 *         elif self.free_data:             # <<<<<<<<<<<<<<
 *             if self.dtype_is_object:
 *                 refcount_objects_in_slice(self.data, self._shape,
 */
  }
  __pyx_L3:;

  /* "View.MemoryView":219
 *                                           self._strides, self.ndim, False)
 *             free(self.data)
 *         PyObject_Free(self._shape)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  PyObject_Free(__pyx_v_self->_shape);

  /* "View.MemoryView":211
 *     __pyx_getbuffer = capsule(<void *> &__pyx_array_getbuffer, "getbuffer(obj, view, flags)")
 * 
 *     def __dealloc__(array self):             # <<<<<<<<<<<<<<
 *         if self.callback_free_data != NULL:
 *             self.callback_free_data(self.data)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "View.MemoryView":222
 * 
 *     @property
 *     def memview(self):             # <<<<<<<<<<<<<<
 *         return self.get_memview()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_5array_7memview___get__(((struct __pyx_array_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct __pyx_array_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":223
 *     @property
 *     def memview(self):
 *         return self.get_memview()             # <<<<<<<<<<<<<<
 * 
 *     @cname('get_memview')
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_array *)__pyx_v_self->__pyx_vtab)->get_memview(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":222
 * 
 *     @property
 *     def memview(self):             # <<<<<<<<<<<<<<
 *         return self.get_memview()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.array.memview.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":226
 * 
 *     @cname('get_memview')
 *     cdef get_memview(self):             # <<<<<<<<<<<<<<
 *         flags =  PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE
 *         return  memoryview(self, flags, self.dtype_is_object)
 */

static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) {
  int __pyx_v_flags;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("get_memview", 0);

  /* "View.MemoryView":227
 *     @cname('get_memview')
 *     cdef get_memview(self):
 *         flags =  PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE             # <<<<<<<<<<<<<<
 *         return  memoryview(self, flags, self.dtype_is_object)
 * 
 */
  __pyx_v_flags = ((PyBUF_ANY_CONTIGUOUS | PyBUF_FORMAT) | PyBUF_WRITABLE);

  /* "View.MemoryView":228
 *     cdef get_memview(self):
 *         flags =  PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE
 *         return  memoryview(self, flags, self.dtype_is_object)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":226
 * 
 *     @cname('get_memview')
 *     cdef get_memview(self):             # <<<<<<<<<<<<<<
 *         flags =  PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE
 *         return  memoryview(self, flags, self.dtype_is_object)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.array.get_memview", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":230
 *         return  memoryview(self, flags, self.dtype_is_object)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self._shape[0]
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(((struct __pyx_array_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(struct __pyx_array_obj *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "View.MemoryView":231
 * 
 *     def __len__(self):
 *         return self._shape[0]             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, attr):
 */
  __pyx_r = (__pyx_v_self->_shape[0]);
  goto __pyx_L0;

  /* "View.MemoryView":230
 *         return  memoryview(self, flags, self.dtype_is_object)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self._shape[0]
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":233
 *         return self._shape[0]
 * 
 *     def __getattr__(self, attr):             # <<<<<<<<<<<<<<
 *         return getattr(self.memview, attr)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr); /*proto*/
static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_attr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "View.MemoryView":234
 * 
 *     def __getattr__(self, attr):
 *         return getattr(self.memview, attr)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, item):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetAttr(__pyx_t_1, __pyx_v_attr); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":233
 *         return self._shape[0]
 * 
 *     def __getattr__(self, attr):             # <<<<<<<<<<<<<<
 *         return getattr(self.memview, attr)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.array.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":236
 *         return getattr(self.memview, attr)
 * 
 *     def __getitem__(self, item):             # <<<<<<<<<<<<<<
 *         return self.memview[item]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item); /*proto*/
static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "View.MemoryView":237
 * 
 *     def __getitem__(self, item):
 *         return self.memview[item]             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, item, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":236
 *         return getattr(self.memview, attr)
 * 
 *     def __getitem__(self, item):             # <<<<<<<<<<<<<<
 *         return self.memview[item]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.array.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":239
 *         return self.memview[item]
 * 
 *     def __setitem__(self, item, value):             # <<<<<<<<<<<<<<
 *         self.memview[item] = value
 * 
 */

/* Python wrapper */
static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value); /*proto*/
static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "View.MemoryView":240
 * 
 *     def __setitem__(self, item, value):
 *         self.memview[item] = value             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_item, __pyx_v_value) < 0)) __PYX_ERR(1, 240, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "View.MemoryView":239
 *         return self.memview[item]
 * 
 *     def __setitem__(self, item, value):             # <<<<<<<<<<<<<<
 *         self.memview[item] = value
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.array.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_array___reduce_cython__(((struct __pyx_array_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.array.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_array_2__setstate_cython__(((struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.array.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":244
 * 
 * @cname("__pyx_array_new")
 * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format,             # <<<<<<<<<<<<<<
 *                           char *mode, char *buf):
 *     cdef array result
 */

static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, char *__pyx_v_format, char *__pyx_v_mode, char *__pyx_v_buf) {
  struct __pyx_array_obj *__pyx_v_result = 0;
  struct __pyx_array_obj *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("array_cwrapper", 0);

  /* "View.MemoryView":248
 *     cdef array result
 * 
 *     if buf == NULL:             # <<<<<<<<<<<<<<
 *         result = array(shape, itemsize, format, mode.decode('ASCII'))
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_buf == NULL) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":249
 * 
 *     if buf == NULL:
 *         result = array(shape, itemsize, format, mode.decode('ASCII'))             # <<<<<<<<<<<<<<
 *     else:
 *         result = array(shape, itemsize, format, mode.decode('ASCII'),
 */
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_shape);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_result = ((struct __pyx_array_obj *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "View.MemoryView":248
 *     cdef array result
 * 
 *     if buf == NULL:             # <<<<<<<<<<<<<<
 *         result = array(shape, itemsize, format, mode.decode('ASCII'))
 *     else:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":251
 *         result = array(shape, itemsize, format, mode.decode('ASCII'))
 *     else:
 *         result = array(shape, itemsize, format, mode.decode('ASCII'),             # <<<<<<<<<<<<<<
 *                        allocate_buffer=False)
 *         result.data = buf
 */
  /*else*/ {
    __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_shape);
    __Pyx_GIVEREF(__pyx_v_shape);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_3 = 0;

    /* "View.MemoryView":252
 *     else:
 *         result = array(shape, itemsize, format, mode.decode('ASCII'),
 *                        allocate_buffer=False)             # <<<<<<<<<<<<<<
 *         result.data = buf
 * 
 */
    __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(1, 252, __pyx_L1_error)

    /* "View.MemoryView":251
 *         result = array(shape, itemsize, format, mode.decode('ASCII'))
 *     else:
 *         result = array(shape, itemsize, format, mode.decode('ASCII'),             # <<<<<<<<<<<<<<
 *                        allocate_buffer=False)
 *         result.data = buf
 */
    __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_result = ((struct __pyx_array_obj *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "View.MemoryView":253
 *         result = array(shape, itemsize, format, mode.decode('ASCII'),
 *                        allocate_buffer=False)
 *         result.data = buf             # <<<<<<<<<<<<<<
 * 
 *     return result
 */
    __pyx_v_result->data = __pyx_v_buf;
  }
  __pyx_L3:;

  /* "View.MemoryView":255
 *         result.data = buf
 * 
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "View.MemoryView":244
 * 
 * @cname("__pyx_array_new")
 * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format,             # <<<<<<<<<<<<<<
 *                           char *mode, char *buf):
 *     cdef array result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.array_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":281
 * cdef class Enum(object):
 *     cdef object name
 *     def __init__(self, name):             # <<<<<<<<<<<<<<
 *         self.name = name
 *     def __repr__(self):
 */

/* Python wrapper */
static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_name = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(1, 281, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_name = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 281, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("View.MemoryView.Enum.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self), __pyx_v_name);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "View.MemoryView":282
 *     cdef object name
 *     def __init__(self, name):
 *         self.name = name             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         return self.name
 */
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_GIVEREF(__pyx_v_name);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_v_name;

  /* "View.MemoryView":281
 * cdef class Enum(object):
 *     cdef object name
 *     def __init__(self, name):             # <<<<<<<<<<<<<<
 *         self.name = name
 *     def __repr__(self):
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":283
 *     def __init__(self, name):
 *         self.name = name
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return self.name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(struct __pyx_MemviewEnum_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "View.MemoryView":284
 *         self.name = name
 *     def __repr__(self):
 *         return self.name             # <<<<<<<<<<<<<<
 * 
 * cdef generic = Enum("<strided and direct or indirect>")
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* "View.MemoryView":283
 *     def __init__(self, name):
 *         self.name = name
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return self.name
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_MemviewEnum___reduce_cython__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.name,)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_v_self->name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->name);
  __pyx_v_state = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.name,)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v__dict = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":7
 *     state = (self.name,)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_2 = (__pyx_v__dict != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.name is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.name,)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.name is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state
 */
  /*else*/ {
    __pyx_t_3 = (__pyx_v_self->name != Py_None);
    __pyx_v_use_setstate = __pyx_t_3;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.name is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state
 *     else:
 */
  __pyx_t_3 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_3) {

    /* "(tree fragment)":13
 *         use_setstate = self.name is not None
 *     if use_setstate:
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Enum); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_184977713);
    __Pyx_GIVEREF(__pyx_int_184977713);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None);
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
    __pyx_t_4 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.name is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, None), state
 *     else:
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_Enum__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_Enum); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_184977713);
    __Pyx_GIVEREF(__pyx_int_184977713);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __pyx_t_5 = 0;
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.Enum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_Enum__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_MemviewEnum_2__setstate_cython__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_Enum__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_unpickle_Enum__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_Enum, (type(self), 0xb068931, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_Enum__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.Enum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":298
 * 
 * @cname('__pyx_align_pointer')
 * cdef void *align_pointer(void *memory, size_t alignment) nogil:             # <<<<<<<<<<<<<<
 *     "Align pointer memory on a given boundary"
 *     cdef Py_intptr_t aligned_p = <Py_intptr_t> memory
 */

static void *__pyx_align_pointer(void *__pyx_v_memory, size_t __pyx_v_alignment) {
  Py_intptr_t __pyx_v_aligned_p;
  size_t __pyx_v_offset;
  void *__pyx_r;
  int __pyx_t_1;

  /* "View.MemoryView":300
 * cdef void *align_pointer(void *memory, size_t alignment) nogil:
 *     "Align pointer memory on a given boundary"
 *     cdef Py_intptr_t aligned_p = <Py_intptr_t> memory             # <<<<<<<<<<<<<<
 *     cdef size_t offset
 * 
 */
  __pyx_v_aligned_p = ((Py_intptr_t)__pyx_v_memory);

  /* "View.MemoryView":304
 * 
 *     with cython.cdivision(True):
 *         offset = aligned_p % alignment             # <<<<<<<<<<<<<<
 * 
 *     if offset > 0:
 */
  __pyx_v_offset = (__pyx_v_aligned_p % __pyx_v_alignment);

  /* "View.MemoryView":306
 *         offset = aligned_p % alignment
 * 
 *     if offset > 0:             # <<<<<<<<<<<<<<
 *         aligned_p += alignment - offset
 * 
 */
  __pyx_t_1 = ((__pyx_v_offset > 0) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":307
 * 
 *     if offset > 0:
 *         aligned_p += alignment - offset             # <<<<<<<<<<<<<<
 * 
 *     return <void *> aligned_p
 */
    __pyx_v_aligned_p = (__pyx_v_aligned_p + (__pyx_v_alignment - __pyx_v_offset));

    /* "View.MemoryView":306
 *         offset = aligned_p % alignment
 * 
 *     if offset > 0:             # <<<<<<<<<<<<<<
 *         aligned_p += alignment - offset
 * 
 */
  }

  /* "View.MemoryView":309
 *         aligned_p += alignment - offset
 * 
 *     return <void *> aligned_p             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = ((void *)__pyx_v_aligned_p);
  goto __pyx_L0;

  /* "View.MemoryView":298
 * 
 * @cname('__pyx_align_pointer')
 * cdef void *align_pointer(void *memory, size_t alignment) nogil:             # <<<<<<<<<<<<<<
 *     "Align pointer memory on a given boundary"
 *     cdef Py_intptr_t aligned_p = <Py_intptr_t> memory
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":345
 *     cdef __Pyx_TypeInfo *typeinfo
 * 
 *     def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False):             # <<<<<<<<<<<<<<
 *         self.obj = obj
 *         self.flags = flags
 */

/* Python wrapper */
static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  int __pyx_v_flags;
  int __pyx_v_dtype_is_object;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_flags,&__pyx_n_s_dtype_is_object,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, 1); __PYX_ERR(1, 345, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype_is_object);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(1, 345, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_obj = values[0];
    __pyx_v_flags = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 345, __pyx_L3_error)
    if (values[2]) {
      __pyx_v_dtype_is_object = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_dtype_is_object == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 345, __pyx_L3_error)
    } else {
      __pyx_v_dtype_is_object = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 345, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(((struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_obj, __pyx_v_flags, __pyx_v_dtype_is_object);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_v_flags, int __pyx_v_dtype_is_object) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "View.MemoryView":346
 * 
 *     def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False):
 *         self.obj = obj             # <<<<<<<<<<<<<<
 *         self.flags = flags
 *         if type(self) is memoryview or obj is not None:
 */
  __Pyx_INCREF(__pyx_v_obj);
  __Pyx_GIVEREF(__pyx_v_obj);
  __Pyx_GOTREF(__pyx_v_self->obj);
  __Pyx_DECREF(__pyx_v_self->obj);
  __pyx_v_self->obj = __pyx_v_obj;

  /* "View.MemoryView":347
 *     def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False):
 *         self.obj = obj
 *         self.flags = flags             # <<<<<<<<<<<<<<
 *         if type(self) is memoryview or obj is not None:
 *             __Pyx_GetBuffer(obj, &self.view, flags)
 */
  __pyx_v_self->flags = __pyx_v_flags;

  /* "View.MemoryView":348
 *         self.obj = obj
 *         self.flags = flags
 *         if type(self) is memoryview or obj is not None:             # <<<<<<<<<<<<<<
 *             __Pyx_GetBuffer(obj, &self.view, flags)
 *             if <PyObject *> self.view.obj == NULL:
 */
  __pyx_t_2 = (((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))) == ((PyObject *)__pyx_memoryview_type));
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = (__pyx_v_obj != Py_None);
  __pyx_t_2 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "View.MemoryView":349
 *         self.flags = flags
 *         if type(self) is memoryview or obj is not None:
 *             __Pyx_GetBuffer(obj, &self.view, flags)             # <<<<<<<<<<<<<<
 *             if <PyObject *> self.view.obj == NULL:
 *                 (<__pyx_buffer *> &self.view).obj = Py_None
 */
    __pyx_t_4 = __Pyx_GetBuffer(__pyx_v_obj, (&__pyx_v_self->view), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 349, __pyx_L1_error)

    /* "View.MemoryView":350
 *         if type(self) is memoryview or obj is not None:
 *             __Pyx_GetBuffer(obj, &self.view, flags)
 *             if <PyObject *> self.view.obj == NULL:             # <<<<<<<<<<<<<<
 *                 (<__pyx_buffer *> &self.view).obj = Py_None
 *                 Py_INCREF(Py_None)
 */
    __pyx_t_1 = ((((PyObject *)__pyx_v_self->view.obj) == NULL) != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":351
 *             __Pyx_GetBuffer(obj, &self.view, flags)
 *             if <PyObject *> self.view.obj == NULL:
 *                 (<__pyx_buffer *> &self.view).obj = Py_None             # <<<<<<<<<<<<<<
 *                 Py_INCREF(Py_None)
 * 
 */
      ((Py_buffer *)(&__pyx_v_self->view))->obj = Py_None;

      /* "View.MemoryView":352
 *             if <PyObject *> self.view.obj == NULL:
 *                 (<__pyx_buffer *> &self.view).obj = Py_None
 *                 Py_INCREF(Py_None)             # <<<<<<<<<<<<<<
 * 
 *         global __pyx_memoryview_thread_locks_used
 */
      Py_INCREF(Py_None);

      /* "View.MemoryView":350
 *         if type(self) is memoryview or obj is not None:
 *             __Pyx_GetBuffer(obj, &self.view, flags)
 *             if <PyObject *> self.view.obj == NULL:             # <<<<<<<<<<<<<<
 *                 (<__pyx_buffer *> &self.view).obj = Py_None
 *                 Py_INCREF(Py_None)
 */
    }

    /* "View.MemoryView":348
 *         self.obj = obj
 *         self.flags = flags
 *         if type(self) is memoryview or obj is not None:             # <<<<<<<<<<<<<<
 *             __Pyx_GetBuffer(obj, &self.view, flags)
 *             if <PyObject *> self.view.obj == NULL:
 */
  }

  /* "View.MemoryView":355
 * 
 *         global __pyx_memoryview_thread_locks_used
 *         if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED:             # <<<<<<<<<<<<<<
 *             self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]
 *             __pyx_memoryview_thread_locks_used += 1
 */
  __pyx_t_1 = ((__pyx_memoryview_thread_locks_used < 8) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":356
 *         global __pyx_memoryview_thread_locks_used
 *         if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED:
 *             self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]             # <<<<<<<<<<<<<<
 *             __pyx_memoryview_thread_locks_used += 1
 *         if self.lock is NULL:
 */
    __pyx_v_self->lock = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]);

    /* "View.MemoryView":357
 *         if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED:
 *             self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]
 *             __pyx_memoryview_thread_locks_used += 1             # <<<<<<<<<<<<<<
 *         if self.lock is NULL:
 *             self.lock = PyThread_allocate_lock()
 */
    __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used + 1);

    /* "View.MemoryView":355
 * 
 *         global __pyx_memoryview_thread_locks_used
 *         if __pyx_memoryview_thread_locks_used < THREAD_LOCKS_PREALLOCATED:             # <<<<<<<<<<<<<<
 *             self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]
 *             __pyx_memoryview_thread_locks_used += 1
 */
  }

  /* "View.MemoryView":358
 *             self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]
 *             __pyx_memoryview_thread_locks_used += 1
 *         if self.lock is NULL:             # <<<<<<<<<<<<<<
 *             self.lock = PyThread_allocate_lock()
 *             if self.lock is NULL:
 */
  __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":359
 *             __pyx_memoryview_thread_locks_used += 1
 *         if self.lock is NULL:
 *             self.lock = PyThread_allocate_lock()             # <<<<<<<<<<<<<<
 *             if self.lock is NULL:
 *                 raise MemoryError
 */
    __pyx_v_self->lock = PyThread_allocate_lock();

    /* "View.MemoryView":360
 *         if self.lock is NULL:
 *             self.lock = PyThread_allocate_lock()
 *             if self.lock is NULL:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 * 
 */
    __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0);
    if (unlikely(__pyx_t_1)) {

      /* "View.MemoryView":361
 *             self.lock = PyThread_allocate_lock()
 *             if self.lock is NULL:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_FORMAT:
 */
      PyErr_NoMemory(); __PYX_ERR(1, 361, __pyx_L1_error)

      /* "View.MemoryView":360
 *         if self.lock is NULL:
 *             self.lock = PyThread_allocate_lock()
 *             if self.lock is NULL:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 * 
 */
    }

    /* "View.MemoryView":358
 *             self.lock = __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]
 *             __pyx_memoryview_thread_locks_used += 1
 *         if self.lock is NULL:             # <<<<<<<<<<<<<<
 *             self.lock = PyThread_allocate_lock()
 *             if self.lock is NULL:
 */
  }

  /* "View.MemoryView":363
 *                 raise MemoryError
 * 
 *         if flags & PyBUF_FORMAT:             # <<<<<<<<<<<<<<
 *             self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0')
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":364
 * 
 *         if flags & PyBUF_FORMAT:
 *             self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0')             # <<<<<<<<<<<<<<
 *         else:
 *             self.dtype_is_object = dtype_is_object
 */
    __pyx_t_2 = (((__pyx_v_self->view.format[0]) == 'O') != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L11_bool_binop_done;
    }
    __pyx_t_2 = (((__pyx_v_self->view.format[1]) == '\x00') != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L11_bool_binop_done:;
    __pyx_v_self->dtype_is_object = __pyx_t_1;

    /* "View.MemoryView":363
 *                 raise MemoryError
 * 
 *         if flags & PyBUF_FORMAT:             # <<<<<<<<<<<<<<
 *             self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0')
 *         else:
 */
    goto __pyx_L10;
  }

  /* "View.MemoryView":366
 *             self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0')
 *         else:
 *             self.dtype_is_object = dtype_is_object             # <<<<<<<<<<<<<<
 * 
 *         self.acquisition_count_aligned_p = <__pyx_atomic_int *> align_pointer(
 */
  /*else*/ {
    __pyx_v_self->dtype_is_object = __pyx_v_dtype_is_object;
  }
  __pyx_L10:;

  /* "View.MemoryView":368
 *             self.dtype_is_object = dtype_is_object
 * 
 *         self.acquisition_count_aligned_p = <__pyx_atomic_int *> align_pointer(             # <<<<<<<<<<<<<<
 *                   <void *> &self.acquisition_count[0], sizeof(__pyx_atomic_int))
 *         self.typeinfo = NULL
 */
  __pyx_v_self->acquisition_count_aligned_p = ((__pyx_atomic_int *)__pyx_align_pointer(((void *)(&(__pyx_v_self->acquisition_count[0]))), (sizeof(__pyx_atomic_int))));

  /* "View.MemoryView":370
 *         self.acquisition_count_aligned_p = <__pyx_atomic_int *> align_pointer(
 *                   <void *> &self.acquisition_count[0], sizeof(__pyx_atomic_int))
 *         self.typeinfo = NULL             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(memoryview self):
 */
  __pyx_v_self->typeinfo = NULL;

  /* "View.MemoryView":345
 *     cdef __Pyx_TypeInfo *typeinfo
 * 
 *     def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False):             # <<<<<<<<<<<<<<
 *         self.obj = obj
 *         self.flags = flags
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":372
 *         self.typeinfo = NULL
 * 
 *     def __dealloc__(memoryview self):             # <<<<<<<<<<<<<<
 *         if self.obj is not None:
 *             __Pyx_ReleaseBuffer(&self.view)
 */

/* Python wrapper */
static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(struct __pyx_memoryview_obj *__pyx_v_self) {
  int __pyx_v_i;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyThread_type_lock __pyx_t_6;
  PyThread_type_lock __pyx_t_7;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "View.MemoryView":373
 * 
 *     def __dealloc__(memoryview self):
 *         if self.obj is not None:             # <<<<<<<<<<<<<<
 *             __Pyx_ReleaseBuffer(&self.view)
 * 
 */
  __pyx_t_1 = (__pyx_v_self->obj != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":374
 *     def __dealloc__(memoryview self):
 *         if self.obj is not None:
 *             __Pyx_ReleaseBuffer(&self.view)             # <<<<<<<<<<<<<<
 * 
 *         cdef int i
 */
    __Pyx_ReleaseBuffer((&__pyx_v_self->view));

    /* "View.MemoryView":373
 * 
 *     def __dealloc__(memoryview self):
 *         if self.obj is not None:             # <<<<<<<<<<<<<<
 *             __Pyx_ReleaseBuffer(&self.view)
 * 
 */
  }

  /* "View.MemoryView":378
 *         cdef int i
 *         global __pyx_memoryview_thread_locks_used
 *         if self.lock != NULL:             # <<<<<<<<<<<<<<
 *             for i in range(__pyx_memoryview_thread_locks_used):
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:
 */
  __pyx_t_2 = ((__pyx_v_self->lock != NULL) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":379
 *         global __pyx_memoryview_thread_locks_used
 *         if self.lock != NULL:
 *             for i in range(__pyx_memoryview_thread_locks_used):             # <<<<<<<<<<<<<<
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:
 *                     __pyx_memoryview_thread_locks_used -= 1
 */
    __pyx_t_3 = __pyx_memoryview_thread_locks_used;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "View.MemoryView":380
 *         if self.lock != NULL:
 *             for i in range(__pyx_memoryview_thread_locks_used):
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:             # <<<<<<<<<<<<<<
 *                     __pyx_memoryview_thread_locks_used -= 1
 *                     if i != __pyx_memoryview_thread_locks_used:
 */
      __pyx_t_2 = (((__pyx_memoryview_thread_locks[__pyx_v_i]) == __pyx_v_self->lock) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":381
 *             for i in range(__pyx_memoryview_thread_locks_used):
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:
 *                     __pyx_memoryview_thread_locks_used -= 1             # <<<<<<<<<<<<<<
 *                     if i != __pyx_memoryview_thread_locks_used:
 *                         __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = (
 */
        __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used - 1);

        /* "View.MemoryView":382
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:
 *                     __pyx_memoryview_thread_locks_used -= 1
 *                     if i != __pyx_memoryview_thread_locks_used:             # <<<<<<<<<<<<<<
 *                         __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = (
 *                             __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i])
 */
        __pyx_t_2 = ((__pyx_v_i != __pyx_memoryview_thread_locks_used) != 0);
        if (__pyx_t_2) {

          /* "View.MemoryView":384
 *                     if i != __pyx_memoryview_thread_locks_used:
 *                         __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = (
 *                             __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i])             # <<<<<<<<<<<<<<
 *                     break
 *             else:
 */
          __pyx_t_6 = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]);
          __pyx_t_7 = (__pyx_memoryview_thread_locks[__pyx_v_i]);

          /* "View.MemoryView":383
 *                     __pyx_memoryview_thread_locks_used -= 1
 *                     if i != __pyx_memoryview_thread_locks_used:
 *                         __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = (             # <<<<<<<<<<<<<<
 *                             __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i])
 *                     break
 */
          (__pyx_memoryview_thread_locks[__pyx_v_i]) = __pyx_t_6;
          (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]) = __pyx_t_7;

          /* "View.MemoryView":382
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:
 *                     __pyx_memoryview_thread_locks_used -= 1
 *                     if i != __pyx_memoryview_thread_locks_used:             # <<<<<<<<<<<<<<
 *                         __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = (
 *                             __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i])
 */
        }

        /* "View.MemoryView":385
 *                         __pyx_memoryview_thread_locks[i], __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used] = (
 *                             __pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used], __pyx_memoryview_thread_locks[i])
 *                     break             # <<<<<<<<<<<<<<
 *             else:
 *                 PyThread_free_lock(self.lock)
 */
        goto __pyx_L6_break;

        /* "View.MemoryView":380
 *         if self.lock != NULL:
 *             for i in range(__pyx_memoryview_thread_locks_used):
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:             # <<<<<<<<<<<<<<
 *                     __pyx_memoryview_thread_locks_used -= 1
 *                     if i != __pyx_memoryview_thread_locks_used:
 */
      }
    }
    /*else*/ {

      /* "View.MemoryView":387
 *                     break
 *             else:
 *                 PyThread_free_lock(self.lock)             # <<<<<<<<<<<<<<
 * 
 *     cdef char *get_item_pointer(memoryview self, object index) except NULL:
 */
      PyThread_free_lock(__pyx_v_self->lock);
    }
    __pyx_L6_break:;

    /* "View.MemoryView":378
 *         cdef int i
 *         global __pyx_memoryview_thread_locks_used
 *         if self.lock != NULL:             # <<<<<<<<<<<<<<
 *             for i in range(__pyx_memoryview_thread_locks_used):
 *                 if __pyx_memoryview_thread_locks[i] is self.lock:
 */
  }

  /* "View.MemoryView":372
 *         self.typeinfo = NULL
 * 
 *     def __dealloc__(memoryview self):             # <<<<<<<<<<<<<<
 *         if self.obj is not None:
 *             __Pyx_ReleaseBuffer(&self.view)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "View.MemoryView":389
 *                 PyThread_free_lock(self.lock)
 * 
 *     cdef char *get_item_pointer(memoryview self, object index) except NULL:             # <<<<<<<<<<<<<<
 *         cdef Py_ssize_t dim
 *         cdef char *itemp = <char *> self.view.buf
 */

static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) {
  Py_ssize_t __pyx_v_dim;
  char *__pyx_v_itemp;
  PyObject *__pyx_v_idx = NULL;
  char *__pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  char *__pyx_t_7;
  __Pyx_RefNannySetupContext("get_item_pointer", 0);

  /* "View.MemoryView":391
 *     cdef char *get_item_pointer(memoryview self, object index) except NULL:
 *         cdef Py_ssize_t dim
 *         cdef char *itemp = <char *> self.view.buf             # <<<<<<<<<<<<<<
 * 
 *         for dim, idx in enumerate(index):
 */
  __pyx_v_itemp = ((char *)__pyx_v_self->view.buf);

  /* "View.MemoryView":393
 *         cdef char *itemp = <char *> self.view.buf
 * 
 *         for dim, idx in enumerate(index):             # <<<<<<<<<<<<<<
 *             itemp = pybuffer_index(&self.view, itemp, idx, dim)
 * 
 */
  __pyx_t_1 = 0;
  if (likely(PyList_CheckExact(__pyx_v_index)) || PyTuple_CheckExact(__pyx_v_index)) {
    __pyx_t_2 = __pyx_v_index; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 393, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(1, 393, __pyx_L1_error)
        #else
        __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 393, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      } else {
        if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(1, 393, __pyx_L1_error)
        #else
        __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 393, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
      }
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_2);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(1, 393, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_v_dim = __pyx_t_1;
    __pyx_t_1 = (__pyx_t_1 + 1);

    /* "View.MemoryView":394
 * 
 *         for dim, idx in enumerate(index):
 *             itemp = pybuffer_index(&self.view, itemp, idx, dim)             # <<<<<<<<<<<<<<
 * 
 *         return itemp
 */
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 394, __pyx_L1_error)
    __pyx_t_7 = __pyx_pybuffer_index((&__pyx_v_self->view), __pyx_v_itemp, __pyx_t_6, __pyx_v_dim); if (unlikely(__pyx_t_7 == ((char *)NULL))) __PYX_ERR(1, 394, __pyx_L1_error)
    __pyx_v_itemp = __pyx_t_7;

    /* "View.MemoryView":393
 *         cdef char *itemp = <char *> self.view.buf
 * 
 *         for dim, idx in enumerate(index):             # <<<<<<<<<<<<<<
 *             itemp = pybuffer_index(&self.view, itemp, idx, dim)
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "View.MemoryView":396
 *             itemp = pybuffer_index(&self.view, itemp, idx, dim)
 * 
 *         return itemp             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_itemp;
  goto __pyx_L0;

  /* "View.MemoryView":389
 *                 PyThread_free_lock(self.lock)
 * 
 *     cdef char *get_item_pointer(memoryview self, object index) except NULL:             # <<<<<<<<<<<<<<
 *         cdef Py_ssize_t dim
 *         cdef char *itemp = <char *> self.view.buf
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.memoryview.get_item_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_idx);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":399
 * 
 * 
 *     def __getitem__(memoryview self, object index):             # <<<<<<<<<<<<<<
 *         if index is Ellipsis:
 *             return self
 */

/* Python wrapper */
static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_v_have_slices = NULL;
  PyObject *__pyx_v_indices = NULL;
  char *__pyx_v_itemp;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "View.MemoryView":400
 * 
 *     def __getitem__(memoryview self, object index):
 *         if index is Ellipsis:             # <<<<<<<<<<<<<<
 *             return self
 * 
 */
  __pyx_t_1 = (__pyx_v_index == __pyx_builtin_Ellipsis);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":401
 *     def __getitem__(memoryview self, object index):
 *         if index is Ellipsis:
 *             return self             # <<<<<<<<<<<<<<
 * 
 *         have_slices, indices = _unellipsify(index, self.view.ndim)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(((PyObject *)__pyx_v_self));
    __pyx_r = ((PyObject *)__pyx_v_self);
    goto __pyx_L0;

    /* "View.MemoryView":400
 * 
 *     def __getitem__(memoryview self, object index):
 *         if index is Ellipsis:             # <<<<<<<<<<<<<<
 *             return self
 * 
 */
  }

  /* "View.MemoryView":403
 *             return self
 * 
 *         have_slices, indices = _unellipsify(index, self.view.ndim)             # <<<<<<<<<<<<<<
 * 
 *         cdef char *itemp
 */
  __pyx_t_3 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (likely(__pyx_t_3 != Py_None)) {
    PyObject* sequence = __pyx_t_3;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(1, 403, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    #else
    __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(1, 403, __pyx_L1_error)
  }
  __pyx_v_have_slices = __pyx_t_4;
  __pyx_t_4 = 0;
  __pyx_v_indices = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "View.MemoryView":406
 * 
 *         cdef char *itemp
 *         if have_slices:             # <<<<<<<<<<<<<<
 *             return memview_slice(self, indices)
 *         else:
 */
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 406, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "View.MemoryView":407
 *         cdef char *itemp
 *         if have_slices:
 *             return memview_slice(self, indices)             # <<<<<<<<<<<<<<
 *         else:
 *             itemp = self.get_item_pointer(indices)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_memview_slice(__pyx_v_self, __pyx_v_indices)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "View.MemoryView":406
 * 
 *         cdef char *itemp
 *         if have_slices:             # <<<<<<<<<<<<<<
 *             return memview_slice(self, indices)
 *         else:
 */
  }

  /* "View.MemoryView":409
 *             return memview_slice(self, indices)
 *         else:
 *             itemp = self.get_item_pointer(indices)             # <<<<<<<<<<<<<<
 *             return self.convert_item_to_object(itemp)
 * 
 */
  /*else*/ {
    __pyx_t_6 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_indices); if (unlikely(__pyx_t_6 == ((char *)NULL))) __PYX_ERR(1, 409, __pyx_L1_error)
    __pyx_v_itemp = __pyx_t_6;

    /* "View.MemoryView":410
 *         else:
 *             itemp = self.get_item_pointer(indices)
 *             return self.convert_item_to_object(itemp)             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(memoryview self, object index, object value):
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->convert_item_to_object(__pyx_v_self, __pyx_v_itemp); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "View.MemoryView":399
 * 
 * 
 *     def __getitem__(memoryview self, object index):             # <<<<<<<<<<<<<<
 *         if index is Ellipsis:
 *             return self
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_have_slices);
  __Pyx_XDECREF(__pyx_v_indices);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":412
 *             return self.convert_item_to_object(itemp)
 * 
 *     def __setitem__(memoryview self, object index, object value):             # <<<<<<<<<<<<<<
 *         if self.view.readonly:
 *             raise TypeError("Cannot assign to read-only memoryview")
 */

/* Python wrapper */
static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /*proto*/
static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_have_slices = NULL;
  PyObject *__pyx_v_obj = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__setitem__", 0);
  __Pyx_INCREF(__pyx_v_index);

  /* "View.MemoryView":413
 * 
 *     def __setitem__(memoryview self, object index, object value):
 *         if self.view.readonly:             # <<<<<<<<<<<<<<
 *             raise TypeError("Cannot assign to read-only memoryview")
 * 
 */
  __pyx_t_1 = (__pyx_v_self->view.readonly != 0);
  if (unlikely(__pyx_t_1)) {

    /* "View.MemoryView":414
 *     def __setitem__(memoryview self, object index, object value):
 *         if self.view.readonly:
 *             raise TypeError("Cannot assign to read-only memoryview")             # <<<<<<<<<<<<<<
 * 
 *         have_slices, index = _unellipsify(index, self.view.ndim)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 414, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 414, __pyx_L1_error)

    /* "View.MemoryView":413
 * 
 *     def __setitem__(memoryview self, object index, object value):
 *         if self.view.readonly:             # <<<<<<<<<<<<<<
 *             raise TypeError("Cannot assign to read-only memoryview")
 * 
 */
  }

  /* "View.MemoryView":416
 *             raise TypeError("Cannot assign to read-only memoryview")
 * 
 *         have_slices, index = _unellipsify(index, self.view.ndim)             # <<<<<<<<<<<<<<
 * 
 *         if have_slices:
 */
  __pyx_t_2 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (likely(__pyx_t_2 != Py_None)) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(1, 416, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    #else
    __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(1, 416, __pyx_L1_error)
  }
  __pyx_v_have_slices = __pyx_t_3;
  __pyx_t_3 = 0;
  __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "View.MemoryView":418
 *         have_slices, index = _unellipsify(index, self.view.ndim)
 * 
 *         if have_slices:             # <<<<<<<<<<<<<<
 *             obj = self.is_slice(value)
 *             if obj:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 418, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "View.MemoryView":419
 * 
 *         if have_slices:
 *             obj = self.is_slice(value)             # <<<<<<<<<<<<<<
 *             if obj:
 *                 self.setitem_slice_assignment(self[index], obj)
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->is_slice(__pyx_v_self, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_obj = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "View.MemoryView":420
 *         if have_slices:
 *             obj = self.is_slice(value)
 *             if obj:             # <<<<<<<<<<<<<<
 *                 self.setitem_slice_assignment(self[index], obj)
 *             else:
 */
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_obj); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 420, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "View.MemoryView":421
 *             obj = self.is_slice(value)
 *             if obj:
 *                 self.setitem_slice_assignment(self[index], obj)             # <<<<<<<<<<<<<<
 *             else:
 *                 self.setitem_slice_assign_scalar(self[index], value)
 */
      __pyx_t_2 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 421, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assignment(__pyx_v_self, __pyx_t_2, __pyx_v_obj); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 421, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "View.MemoryView":420
 *         if have_slices:
 *             obj = self.is_slice(value)
 *             if obj:             # <<<<<<<<<<<<<<
 *                 self.setitem_slice_assignment(self[index], obj)
 *             else:
 */
      goto __pyx_L5;
    }

    /* "View.MemoryView":423
 *                 self.setitem_slice_assignment(self[index], obj)
 *             else:
 *                 self.setitem_slice_assign_scalar(self[index], value)             # <<<<<<<<<<<<<<
 *         else:
 *             self.setitem_indexed(index, value)
 */
    /*else*/ {
      __pyx_t_4 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 423, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_memoryview_type))))) __PYX_ERR(1, 423, __pyx_L1_error)
      __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assign_scalar(__pyx_v_self, ((struct __pyx_memoryview_obj *)__pyx_t_4), __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 423, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __pyx_L5:;

    /* "View.MemoryView":418
 *         have_slices, index = _unellipsify(index, self.view.ndim)
 * 
 *         if have_slices:             # <<<<<<<<<<<<<<
 *             obj = self.is_slice(value)
 *             if obj:
 */
    goto __pyx_L4;
  }

  /* "View.MemoryView":425
 *                 self.setitem_slice_assign_scalar(self[index], value)
 *         else:
 *             self.setitem_indexed(index, value)             # <<<<<<<<<<<<<<
 * 
 *     cdef is_slice(self, obj):
 */
  /*else*/ {
    __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_indexed(__pyx_v_self, __pyx_v_index, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "View.MemoryView":412
 *             return self.convert_item_to_object(itemp)
 * 
 *     def __setitem__(memoryview self, object index, object value):             # <<<<<<<<<<<<<<
 *         if self.view.readonly:
 *             raise TypeError("Cannot assign to read-only memoryview")
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_have_slices);
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":427
 *             self.setitem_indexed(index, value)
 * 
 *     cdef is_slice(self, obj):             # <<<<<<<<<<<<<<
 *         if not isinstance(obj, memoryview):
 *             try:
 */

static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("is_slice", 0);
  __Pyx_INCREF(__pyx_v_obj);

  /* "View.MemoryView":428
 * 
 *     cdef is_slice(self, obj):
 *         if not isinstance(obj, memoryview):             # <<<<<<<<<<<<<<
 *             try:
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_memoryview_type); 
  __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":429
 *     cdef is_slice(self, obj):
 *         if not isinstance(obj, memoryview):
 *             try:             # <<<<<<<<<<<<<<
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 *                                  self.dtype_is_object)
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "View.MemoryView":430
 *         if not isinstance(obj, memoryview):
 *             try:
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,             # <<<<<<<<<<<<<<
 *                                  self.dtype_is_object)
 *             except TypeError:
 */
        __pyx_t_6 = __Pyx_PyInt_From_int(((__pyx_v_self->flags & (~PyBUF_WRITABLE)) | PyBUF_ANY_CONTIGUOUS)); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 430, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);

        /* "View.MemoryView":431
 *             try:
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 *                                  self.dtype_is_object)             # <<<<<<<<<<<<<<
 *             except TypeError:
 *                 return None
 */
        __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 431, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);

        /* "View.MemoryView":430
 *         if not isinstance(obj, memoryview):
 *             try:
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,             # <<<<<<<<<<<<<<
 *                                  self.dtype_is_object)
 *             except TypeError:
 */
        __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 430, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_INCREF(__pyx_v_obj);
        __Pyx_GIVEREF(__pyx_v_obj);
        PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_obj);
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7);
        __pyx_t_6 = 0;
        __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 430, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_obj, __pyx_t_7);
        __pyx_t_7 = 0;

        /* "View.MemoryView":429
 *     cdef is_slice(self, obj):
 *         if not isinstance(obj, memoryview):
 *             try:             # <<<<<<<<<<<<<<
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 *                                  self.dtype_is_object)
 */
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "View.MemoryView":432
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 *                                  self.dtype_is_object)
 *             except TypeError:             # <<<<<<<<<<<<<<
 *                 return None
 * 
 */
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError);
      if (__pyx_t_9) {
        __Pyx_AddTraceback("View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(1, 432, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GOTREF(__pyx_t_6);

        /* "View.MemoryView":433
 *                                  self.dtype_is_object)
 *             except TypeError:
 *                 return None             # <<<<<<<<<<<<<<
 * 
 *         return obj
 */
        __Pyx_XDECREF(__pyx_r);
        __pyx_r = Py_None; __Pyx_INCREF(Py_None);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L7_except_return;
      }
      goto __pyx_L6_except_error;
      __pyx_L6_except_error:;

      /* "View.MemoryView":429
 *     cdef is_slice(self, obj):
 *         if not isinstance(obj, memoryview):
 *             try:             # <<<<<<<<<<<<<<
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 *                                  self.dtype_is_object)
 */
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L7_except_return:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L0;
      __pyx_L9_try_end:;
    }

    /* "View.MemoryView":428
 * 
 *     cdef is_slice(self, obj):
 *         if not isinstance(obj, memoryview):             # <<<<<<<<<<<<<<
 *             try:
 *                 obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS,
 */
  }

  /* "View.MemoryView":435
 *                 return None
 * 
 *         return obj             # <<<<<<<<<<<<<<
 * 
 *     cdef setitem_slice_assignment(self, dst, src):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_obj);
  __pyx_r = __pyx_v_obj;
  goto __pyx_L0;

  /* "View.MemoryView":427
 *             self.setitem_indexed(index, value)
 * 
 *     cdef is_slice(self, obj):             # <<<<<<<<<<<<<<
 *         if not isinstance(obj, memoryview):
 *             try:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_obj);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":437
 *         return obj
 * 
 *     cdef setitem_slice_assignment(self, dst, src):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice dst_slice
 *         cdef __Pyx_memviewslice src_slice
 */

static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src) {
  __Pyx_memviewslice __pyx_v_dst_slice;
  __Pyx_memviewslice __pyx_v_src_slice;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("setitem_slice_assignment", 0);

  /* "View.MemoryView":441
 *         cdef __Pyx_memviewslice src_slice
 * 
 *         memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0],             # <<<<<<<<<<<<<<
 *                                  get_slice_from_memview(dst, &dst_slice)[0],
 *                                  src.ndim, dst.ndim, self.dtype_is_object)
 */
  if (!(likely(((__pyx_v_src) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_src, __pyx_memoryview_type))))) __PYX_ERR(1, 441, __pyx_L1_error)

  /* "View.MemoryView":442
 * 
 *         memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0],
 *                                  get_slice_from_memview(dst, &dst_slice)[0],             # <<<<<<<<<<<<<<
 *                                  src.ndim, dst.ndim, self.dtype_is_object)
 * 
 */
  if (!(likely(((__pyx_v_dst) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dst, __pyx_memoryview_type))))) __PYX_ERR(1, 442, __pyx_L1_error)

  /* "View.MemoryView":443
 *         memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0],
 *                                  get_slice_from_memview(dst, &dst_slice)[0],
 *                                  src.ndim, dst.ndim, self.dtype_is_object)             # <<<<<<<<<<<<<<
 * 
 *     cdef setitem_slice_assign_scalar(self, memoryview dst, value):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_src, __pyx_n_s_ndim); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 443, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dst, __pyx_n_s_ndim); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 443, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "View.MemoryView":441
 *         cdef __Pyx_memviewslice src_slice
 * 
 *         memoryview_copy_contents(get_slice_from_memview(src, &src_slice)[0],             # <<<<<<<<<<<<<<
 *                                  get_slice_from_memview(dst, &dst_slice)[0],
 *                                  src.ndim, dst.ndim, self.dtype_is_object)
 */
  __pyx_t_4 = __pyx_memoryview_copy_contents((__pyx_memoryview_get_slice_from_memoryview(((struct __pyx_memoryview_obj *)__pyx_v_src), (&__pyx_v_src_slice))[0]), (__pyx_memoryview_get_slice_from_memoryview(((struct __pyx_memoryview_obj *)__pyx_v_dst), (&__pyx_v_dst_slice))[0]), __pyx_t_2, __pyx_t_3, __pyx_v_self->dtype_is_object); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 441, __pyx_L1_error)

  /* "View.MemoryView":437
 *         return obj
 * 
 *     cdef setitem_slice_assignment(self, dst, src):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice dst_slice
 *         cdef __Pyx_memviewslice src_slice
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.setitem_slice_assignment", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":445
 *                                  src.ndim, dst.ndim, self.dtype_is_object)
 * 
 *     cdef setitem_slice_assign_scalar(self, memoryview dst, value):             # <<<<<<<<<<<<<<
 *         cdef int array[128]
 *         cdef void *tmp = NULL
 */

static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memoryview_obj *__pyx_v_self, struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value) {
  int __pyx_v_array[0x80];
  void *__pyx_v_tmp;
  void *__pyx_v_item;
  __Pyx_memviewslice *__pyx_v_dst_slice;
  __Pyx_memviewslice __pyx_v_tmp_slice;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  char const *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  __Pyx_RefNannySetupContext("setitem_slice_assign_scalar", 0);

  /* "View.MemoryView":447
 *     cdef setitem_slice_assign_scalar(self, memoryview dst, value):
 *         cdef int array[128]
 *         cdef void *tmp = NULL             # <<<<<<<<<<<<<<
 *         cdef void *item
 * 
 */
  __pyx_v_tmp = NULL;

  /* "View.MemoryView":452
 *         cdef __Pyx_memviewslice *dst_slice
 *         cdef __Pyx_memviewslice tmp_slice
 *         dst_slice = get_slice_from_memview(dst, &tmp_slice)             # <<<<<<<<<<<<<<
 * 
 *         if <size_t>self.view.itemsize > sizeof(array):
 */
  __pyx_v_dst_slice = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_dst, (&__pyx_v_tmp_slice));

  /* "View.MemoryView":454
 *         dst_slice = get_slice_from_memview(dst, &tmp_slice)
 * 
 *         if <size_t>self.view.itemsize > sizeof(array):             # <<<<<<<<<<<<<<
 *             tmp = PyMem_Malloc(self.view.itemsize)
 *             if tmp == NULL:
 */
  __pyx_t_1 = ((((size_t)__pyx_v_self->view.itemsize) > (sizeof(__pyx_v_array))) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":455
 * 
 *         if <size_t>self.view.itemsize > sizeof(array):
 *             tmp = PyMem_Malloc(self.view.itemsize)             # <<<<<<<<<<<<<<
 *             if tmp == NULL:
 *                 raise MemoryError
 */
    __pyx_v_tmp = PyMem_Malloc(__pyx_v_self->view.itemsize);

    /* "View.MemoryView":456
 *         if <size_t>self.view.itemsize > sizeof(array):
 *             tmp = PyMem_Malloc(self.view.itemsize)
 *             if tmp == NULL:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *             item = tmp
 */
    __pyx_t_1 = ((__pyx_v_tmp == NULL) != 0);
    if (unlikely(__pyx_t_1)) {

      /* "View.MemoryView":457
 *             tmp = PyMem_Malloc(self.view.itemsize)
 *             if tmp == NULL:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *             item = tmp
 *         else:
 */
      PyErr_NoMemory(); __PYX_ERR(1, 457, __pyx_L1_error)

      /* "View.MemoryView":456
 *         if <size_t>self.view.itemsize > sizeof(array):
 *             tmp = PyMem_Malloc(self.view.itemsize)
 *             if tmp == NULL:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *             item = tmp
 */
    }

    /* "View.MemoryView":458
 *             if tmp == NULL:
 *                 raise MemoryError
 *             item = tmp             # <<<<<<<<<<<<<<
 *         else:
 *             item = <void *> array
 */
    __pyx_v_item = __pyx_v_tmp;

    /* "View.MemoryView":454
 *         dst_slice = get_slice_from_memview(dst, &tmp_slice)
 * 
 *         if <size_t>self.view.itemsize > sizeof(array):             # <<<<<<<<<<<<<<
 *             tmp = PyMem_Malloc(self.view.itemsize)
 *             if tmp == NULL:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":460
 *             item = tmp
 *         else:
 *             item = <void *> array             # <<<<<<<<<<<<<<
 * 
 *         try:
 */
  /*else*/ {
    __pyx_v_item = ((void *)__pyx_v_array);
  }
  __pyx_L3:;

  /* "View.MemoryView":462
 *             item = <void *> array
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             if self.dtype_is_object:
 *                 (<PyObject **> item)[0] = <PyObject *> value
 */
  /*try:*/ {

    /* "View.MemoryView":463
 * 
 *         try:
 *             if self.dtype_is_object:             # <<<<<<<<<<<<<<
 *                 (<PyObject **> item)[0] = <PyObject *> value
 *             else:
 */
    __pyx_t_1 = (__pyx_v_self->dtype_is_object != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":464
 *         try:
 *             if self.dtype_is_object:
 *                 (<PyObject **> item)[0] = <PyObject *> value             # <<<<<<<<<<<<<<
 *             else:
 *                 self.assign_item_from_object(<char *> item, value)
 */
      (((PyObject **)__pyx_v_item)[0]) = ((PyObject *)__pyx_v_value);

      /* "View.MemoryView":463
 * 
 *         try:
 *             if self.dtype_is_object:             # <<<<<<<<<<<<<<
 *                 (<PyObject **> item)[0] = <PyObject *> value
 *             else:
 */
      goto __pyx_L8;
    }

    /* "View.MemoryView":466
 *                 (<PyObject **> item)[0] = <PyObject *> value
 *             else:
 *                 self.assign_item_from_object(<char *> item, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    /*else*/ {
      __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, ((char *)__pyx_v_item), __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 466, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __pyx_L8:;

    /* "View.MemoryView":470
 * 
 * 
 *             if self.view.suboffsets != NULL:             # <<<<<<<<<<<<<<
 *                 assert_direct_dimensions(self.view.suboffsets, self.view.ndim)
 *             slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize,
 */
    __pyx_t_1 = ((__pyx_v_self->view.suboffsets != NULL) != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":471
 * 
 *             if self.view.suboffsets != NULL:
 *                 assert_direct_dimensions(self.view.suboffsets, self.view.ndim)             # <<<<<<<<<<<<<<
 *             slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize,
 *                                 item, self.dtype_is_object)
 */
      __pyx_t_2 = assert_direct_dimensions(__pyx_v_self->view.suboffsets, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 471, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "View.MemoryView":470
 * 
 * 
 *             if self.view.suboffsets != NULL:             # <<<<<<<<<<<<<<
 *                 assert_direct_dimensions(self.view.suboffsets, self.view.ndim)
 *             slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize,
 */
    }

    /* "View.MemoryView":472
 *             if self.view.suboffsets != NULL:
 *                 assert_direct_dimensions(self.view.suboffsets, self.view.ndim)
 *             slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize,             # <<<<<<<<<<<<<<
 *                                 item, self.dtype_is_object)
 *         finally:
 */
    __pyx_memoryview_slice_assign_scalar(__pyx_v_dst_slice, __pyx_v_dst->view.ndim, __pyx_v_self->view.itemsize, __pyx_v_item, __pyx_v_self->dtype_is_object);
  }

  /* "View.MemoryView":475
 *                                 item, self.dtype_is_object)
 *         finally:
 *             PyMem_Free(tmp)             # <<<<<<<<<<<<<<
 * 
 *     cdef setitem_indexed(self, index, value):
 */
  /*finally:*/ {
    /*normal exit:*/{
      PyMem_Free(__pyx_v_tmp);
      goto __pyx_L7;
    }
    __pyx_L6_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8) < 0)) __Pyx_ErrFetch(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __pyx_t_3 = __pyx_lineno; __pyx_t_4 = __pyx_clineno; __pyx_t_5 = __pyx_filename;
      {
        PyMem_Free(__pyx_v_tmp);
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      }
      __Pyx_XGIVEREF(__pyx_t_6);
      __Pyx_XGIVEREF(__pyx_t_7);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_ErrRestore(__pyx_t_6, __pyx_t_7, __pyx_t_8);
      __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0;
      __pyx_lineno = __pyx_t_3; __pyx_clineno = __pyx_t_4; __pyx_filename = __pyx_t_5;
      goto __pyx_L1_error;
    }
    __pyx_L7:;
  }

  /* "View.MemoryView":445
 *                                  src.ndim, dst.ndim, self.dtype_is_object)
 * 
 *     cdef setitem_slice_assign_scalar(self, memoryview dst, value):             # <<<<<<<<<<<<<<
 *         cdef int array[128]
 *         cdef void *tmp = NULL
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.memoryview.setitem_slice_assign_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":477
 *             PyMem_Free(tmp)
 * 
 *     cdef setitem_indexed(self, index, value):             # <<<<<<<<<<<<<<
 *         cdef char *itemp = self.get_item_pointer(index)
 *         self.assign_item_from_object(itemp, value)
 */

static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  char *__pyx_v_itemp;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("setitem_indexed", 0);

  /* "View.MemoryView":478
 * 
 *     cdef setitem_indexed(self, index, value):
 *         cdef char *itemp = self.get_item_pointer(index)             # <<<<<<<<<<<<<<
 *         self.assign_item_from_object(itemp, value)
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_index); if (unlikely(__pyx_t_1 == ((char *)NULL))) __PYX_ERR(1, 478, __pyx_L1_error)
  __pyx_v_itemp = __pyx_t_1;

  /* "View.MemoryView":479
 *     cdef setitem_indexed(self, index, value):
 *         cdef char *itemp = self.get_item_pointer(index)
 *         self.assign_item_from_object(itemp, value)             # <<<<<<<<<<<<<<
 * 
 *     cdef convert_item_to_object(self, char *itemp):
 */
  __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, __pyx_v_itemp, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "View.MemoryView":477
 *             PyMem_Free(tmp)
 * 
 *     cdef setitem_indexed(self, index, value):             # <<<<<<<<<<<<<<
 *         cdef char *itemp = self.get_item_pointer(index)
 *         self.assign_item_from_object(itemp, value)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.memoryview.setitem_indexed", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":481
 *         self.assign_item_from_object(itemp, value)
 * 
 *     cdef convert_item_to_object(self, char *itemp):             # <<<<<<<<<<<<<<
 *         """Only used if instantiated manually by the user, or if Cython doesn't
 *         know how to convert the type"""
 */

static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp) {
  PyObject *__pyx_v_struct = NULL;
  PyObject *__pyx_v_bytesitem = 0;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_t_11;
  __Pyx_RefNannySetupContext("convert_item_to_object", 0);

  /* "View.MemoryView":484
 *         """Only used if instantiated manually by the user, or if Cython doesn't
 *         know how to convert the type"""
 *         import struct             # <<<<<<<<<<<<<<
 *         cdef bytes bytesitem
 * 
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_struct = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "View.MemoryView":487
 *         cdef bytes bytesitem
 * 
 *         bytesitem = itemp[:self.view.itemsize]             # <<<<<<<<<<<<<<
 *         try:
 *             result = struct.unpack(self.view.format, bytesitem)
 */
  __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_itemp + 0, __pyx_v_self->view.itemsize - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_bytesitem = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "View.MemoryView":488
 * 
 *         bytesitem = itemp[:self.view.itemsize]
 *         try:             # <<<<<<<<<<<<<<
 *             result = struct.unpack(self.view.format, bytesitem)
 *         except struct.error:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "View.MemoryView":489
 *         bytesitem = itemp[:self.view.itemsize]
 *         try:
 *             result = struct.unpack(self.view.format, bytesitem)             # <<<<<<<<<<<<<<
 *         except struct.error:
 *             raise ValueError("Unable to convert item to object")
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_unpack); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 489, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 489, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = NULL;
      __pyx_t_8 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
          __pyx_t_8 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_5)) {
        PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem};
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 489, __pyx_L3_error)
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
        PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem};
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 489, __pyx_L3_error)
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      } else
      #endif
      {
        __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 489, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__pyx_t_7) {
          __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL;
        }
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_6);
        __Pyx_INCREF(__pyx_v_bytesitem);
        __Pyx_GIVEREF(__pyx_v_bytesitem);
        PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_bytesitem);
        __pyx_t_6 = 0;
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 489, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_result = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "View.MemoryView":488
 * 
 *         bytesitem = itemp[:self.view.itemsize]
 *         try:             # <<<<<<<<<<<<<<
 *             result = struct.unpack(self.view.format, bytesitem)
 *         except struct.error:
 */
    }

    /* "View.MemoryView":493
 *             raise ValueError("Unable to convert item to object")
 *         else:
 *             if len(self.view.format) == 1:             # <<<<<<<<<<<<<<
 *                 return result[0]
 *             return result
 */
    /*else:*/ {
      __pyx_t_10 = strlen(__pyx_v_self->view.format); 
      __pyx_t_11 = ((__pyx_t_10 == 1) != 0);
      if (__pyx_t_11) {

        /* "View.MemoryView":494
 *         else:
 *             if len(self.view.format) == 1:
 *                 return result[0]             # <<<<<<<<<<<<<<
 *             return result
 * 
 */
        __Pyx_XDECREF(__pyx_r);
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_result, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 494, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_r = __pyx_t_1;
        __pyx_t_1 = 0;
        goto __pyx_L6_except_return;

        /* "View.MemoryView":493
 *             raise ValueError("Unable to convert item to object")
 *         else:
 *             if len(self.view.format) == 1:             # <<<<<<<<<<<<<<
 *                 return result[0]
 *             return result
 */
      }

      /* "View.MemoryView":495
 *             if len(self.view.format) == 1:
 *                 return result[0]
 *             return result             # <<<<<<<<<<<<<<
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_result);
      __pyx_r = __pyx_v_result;
      goto __pyx_L6_except_return;
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "View.MemoryView":490
 *         try:
 *             result = struct.unpack(self.view.format, bytesitem)
 *         except struct.error:             # <<<<<<<<<<<<<<
 *             raise ValueError("Unable to convert item to object")
 *         else:
 */
    __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_9);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 490, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_6);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_9);
    __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_9 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 490, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_1);

      /* "View.MemoryView":491
 *             result = struct.unpack(self.view.format, bytesitem)
 *         except struct.error:
 *             raise ValueError("Unable to convert item to object")             # <<<<<<<<<<<<<<
 *         else:
 *             if len(self.view.format) == 1:
 */
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 491, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_Raise(__pyx_t_6, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __PYX_ERR(1, 491, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "View.MemoryView":488
 * 
 *         bytesitem = itemp[:self.view.itemsize]
 *         try:             # <<<<<<<<<<<<<<
 *             result = struct.unpack(self.view.format, bytesitem)
 *         except struct.error:
 */
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L0;
  }

  /* "View.MemoryView":481
 *         self.assign_item_from_object(itemp, value)
 * 
 *     cdef convert_item_to_object(self, char *itemp):             # <<<<<<<<<<<<<<
 *         """Only used if instantiated manually by the user, or if Cython doesn't
 *         know how to convert the type"""
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_struct);
  __Pyx_XDECREF(__pyx_v_bytesitem);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":497
 *             return result
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):             # <<<<<<<<<<<<<<
 *         """Only used if instantiated manually by the user, or if Cython doesn't
 *         know how to convert the type"""
 */

static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_struct = NULL;
  char __pyx_v_c;
  PyObject *__pyx_v_bytesvalue = 0;
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  char *__pyx_t_11;
  char *__pyx_t_12;
  char *__pyx_t_13;
  char *__pyx_t_14;
  __Pyx_RefNannySetupContext("assign_item_from_object", 0);

  /* "View.MemoryView":500
 *         """Only used if instantiated manually by the user, or if Cython doesn't
 *         know how to convert the type"""
 *         import struct             # <<<<<<<<<<<<<<
 *         cdef char c
 *         cdef bytes bytesvalue
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_struct = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "View.MemoryView":505
 *         cdef Py_ssize_t i
 * 
 *         if isinstance(value, tuple):             # <<<<<<<<<<<<<<
 *             bytesvalue = struct.pack(self.view.format, *value)
 *         else:
 */
  __pyx_t_2 = PyTuple_Check(__pyx_v_value); 
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "View.MemoryView":506
 * 
 *         if isinstance(value, tuple):
 *             bytesvalue = struct.pack(self.view.format, *value)             # <<<<<<<<<<<<<<
 *         else:
 *             bytesvalue = struct.pack(self.view.format, value)
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PySequence_Tuple(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 506, __pyx_L1_error)
    __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "View.MemoryView":505
 *         cdef Py_ssize_t i
 * 
 *         if isinstance(value, tuple):             # <<<<<<<<<<<<<<
 *             bytesvalue = struct.pack(self.view.format, *value)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":508
 *             bytesvalue = struct.pack(self.view.format, *value)
 *         else:
 *             bytesvalue = struct.pack(self.view.format, value)             # <<<<<<<<<<<<<<
 * 
 *         for i, c in enumerate(bytesvalue):
 */
  /*else*/ {
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 508, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 508, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = NULL;
    __pyx_t_7 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
        __pyx_t_7 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_6)) {
      PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value};
      __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 508, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
      PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value};
      __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 508, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else
    #endif
    {
      __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 508, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (__pyx_t_5) {
        __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_1);
      PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_1);
      __Pyx_INCREF(__pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_value);
      __pyx_t_1 = 0;
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 508, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 508, __pyx_L1_error)
    __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "View.MemoryView":510
 *             bytesvalue = struct.pack(self.view.format, value)
 * 
 *         for i, c in enumerate(bytesvalue):             # <<<<<<<<<<<<<<
 *             itemp[i] = c
 * 
 */
  __pyx_t_9 = 0;
  if (unlikely(__pyx_v_bytesvalue == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' is not iterable");
    __PYX_ERR(1, 510, __pyx_L1_error)
  }
  __Pyx_INCREF(__pyx_v_bytesvalue);
  __pyx_t_10 = __pyx_v_bytesvalue;
  __pyx_t_12 = PyBytes_AS_STRING(__pyx_t_10);
  __pyx_t_13 = (__pyx_t_12 + PyBytes_GET_SIZE(__pyx_t_10));
  for (__pyx_t_14 = __pyx_t_12; __pyx_t_14 < __pyx_t_13; __pyx_t_14++) {
    __pyx_t_11 = __pyx_t_14;
    __pyx_v_c = (__pyx_t_11[0]);

    /* "View.MemoryView":511
 * 
 *         for i, c in enumerate(bytesvalue):
 *             itemp[i] = c             # <<<<<<<<<<<<<<
 * 
 *     @cname('getbuffer')
 */
    __pyx_v_i = __pyx_t_9;

    /* "View.MemoryView":510
 *             bytesvalue = struct.pack(self.view.format, value)
 * 
 *         for i, c in enumerate(bytesvalue):             # <<<<<<<<<<<<<<
 *             itemp[i] = c
 * 
 */
    __pyx_t_9 = (__pyx_t_9 + 1);

    /* "View.MemoryView":511
 * 
 *         for i, c in enumerate(bytesvalue):
 *             itemp[i] = c             # <<<<<<<<<<<<<<
 * 
 *     @cname('getbuffer')
 */
    (__pyx_v_itemp[__pyx_v_i]) = __pyx_v_c;
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

  /* "View.MemoryView":497
 *             return result
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):             # <<<<<<<<<<<<<<
 *         """Only used if instantiated manually by the user, or if Cython doesn't
 *         know how to convert the type"""
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("View.MemoryView.memoryview.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_struct);
  __Pyx_XDECREF(__pyx_v_bytesvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":514
 * 
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):             # <<<<<<<<<<<<<<
 *         if flags & PyBUF_WRITABLE and self.view.readonly:
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")
 */

/* Python wrapper */
static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t *__pyx_t_4;
  char *__pyx_t_5;
  void *__pyx_t_6;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  if (__pyx_v_info == NULL) {
    PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete");
    return -1;
  }
  __Pyx_RefNannySetupContext("__getbuffer__", 0);
  __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(__pyx_v_info->obj);

  /* "View.MemoryView":515
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         if flags & PyBUF_WRITABLE and self.view.readonly:             # <<<<<<<<<<<<<<
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")
 * 
 */
  __pyx_t_2 = ((__pyx_v_flags & PyBUF_WRITABLE) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->view.readonly != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "View.MemoryView":516
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         if flags & PyBUF_WRITABLE and self.view.readonly:
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_ND:
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 516, __pyx_L1_error)

    /* "View.MemoryView":515
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         if flags & PyBUF_WRITABLE and self.view.readonly:             # <<<<<<<<<<<<<<
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")
 * 
 */
  }

  /* "View.MemoryView":518
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")
 * 
 *         if flags & PyBUF_ND:             # <<<<<<<<<<<<<<
 *             info.shape = self.view.shape
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_flags & PyBUF_ND) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":519
 * 
 *         if flags & PyBUF_ND:
 *             info.shape = self.view.shape             # <<<<<<<<<<<<<<
 *         else:
 *             info.shape = NULL
 */
    __pyx_t_4 = __pyx_v_self->view.shape;
    __pyx_v_info->shape = __pyx_t_4;

    /* "View.MemoryView":518
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")
 * 
 *         if flags & PyBUF_ND:             # <<<<<<<<<<<<<<
 *             info.shape = self.view.shape
 *         else:
 */
    goto __pyx_L6;
  }

  /* "View.MemoryView":521
 *             info.shape = self.view.shape
 *         else:
 *             info.shape = NULL             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_STRIDES:
 */
  /*else*/ {
    __pyx_v_info->shape = NULL;
  }
  __pyx_L6:;

  /* "View.MemoryView":523
 *             info.shape = NULL
 * 
 *         if flags & PyBUF_STRIDES:             # <<<<<<<<<<<<<<
 *             info.strides = self.view.strides
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_flags & PyBUF_STRIDES) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":524
 * 
 *         if flags & PyBUF_STRIDES:
 *             info.strides = self.view.strides             # <<<<<<<<<<<<<<
 *         else:
 *             info.strides = NULL
 */
    __pyx_t_4 = __pyx_v_self->view.strides;
    __pyx_v_info->strides = __pyx_t_4;

    /* "View.MemoryView":523
 *             info.shape = NULL
 * 
 *         if flags & PyBUF_STRIDES:             # <<<<<<<<<<<<<<
 *             info.strides = self.view.strides
 *         else:
 */
    goto __pyx_L7;
  }

  /* "View.MemoryView":526
 *             info.strides = self.view.strides
 *         else:
 *             info.strides = NULL             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_INDIRECT:
 */
  /*else*/ {
    __pyx_v_info->strides = NULL;
  }
  __pyx_L7:;

  /* "View.MemoryView":528
 *             info.strides = NULL
 * 
 *         if flags & PyBUF_INDIRECT:             # <<<<<<<<<<<<<<
 *             info.suboffsets = self.view.suboffsets
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_flags & PyBUF_INDIRECT) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":529
 * 
 *         if flags & PyBUF_INDIRECT:
 *             info.suboffsets = self.view.suboffsets             # <<<<<<<<<<<<<<
 *         else:
 *             info.suboffsets = NULL
 */
    __pyx_t_4 = __pyx_v_self->view.suboffsets;
    __pyx_v_info->suboffsets = __pyx_t_4;

    /* "View.MemoryView":528
 *             info.strides = NULL
 * 
 *         if flags & PyBUF_INDIRECT:             # <<<<<<<<<<<<<<
 *             info.suboffsets = self.view.suboffsets
 *         else:
 */
    goto __pyx_L8;
  }

  /* "View.MemoryView":531
 *             info.suboffsets = self.view.suboffsets
 *         else:
 *             info.suboffsets = NULL             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_FORMAT:
 */
  /*else*/ {
    __pyx_v_info->suboffsets = NULL;
  }
  __pyx_L8:;

  /* "View.MemoryView":533
 *             info.suboffsets = NULL
 * 
 *         if flags & PyBUF_FORMAT:             # <<<<<<<<<<<<<<
 *             info.format = self.view.format
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":534
 * 
 *         if flags & PyBUF_FORMAT:
 *             info.format = self.view.format             # <<<<<<<<<<<<<<
 *         else:
 *             info.format = NULL
 */
    __pyx_t_5 = __pyx_v_self->view.format;
    __pyx_v_info->format = __pyx_t_5;

    /* "View.MemoryView":533
 *             info.suboffsets = NULL
 * 
 *         if flags & PyBUF_FORMAT:             # <<<<<<<<<<<<<<
 *             info.format = self.view.format
 *         else:
 */
    goto __pyx_L9;
  }

  /* "View.MemoryView":536
 *             info.format = self.view.format
 *         else:
 *             info.format = NULL             # <<<<<<<<<<<<<<
 * 
 *         info.buf = self.view.buf
 */
  /*else*/ {
    __pyx_v_info->format = NULL;
  }
  __pyx_L9:;

  /* "View.MemoryView":538
 *             info.format = NULL
 * 
 *         info.buf = self.view.buf             # <<<<<<<<<<<<<<
 *         info.ndim = self.view.ndim
 *         info.itemsize = self.view.itemsize
 */
  __pyx_t_6 = __pyx_v_self->view.buf;
  __pyx_v_info->buf = __pyx_t_6;

  /* "View.MemoryView":539
 * 
 *         info.buf = self.view.buf
 *         info.ndim = self.view.ndim             # <<<<<<<<<<<<<<
 *         info.itemsize = self.view.itemsize
 *         info.len = self.view.len
 */
  __pyx_t_7 = __pyx_v_self->view.ndim;
  __pyx_v_info->ndim = __pyx_t_7;

  /* "View.MemoryView":540
 *         info.buf = self.view.buf
 *         info.ndim = self.view.ndim
 *         info.itemsize = self.view.itemsize             # <<<<<<<<<<<<<<
 *         info.len = self.view.len
 *         info.readonly = self.view.readonly
 */
  __pyx_t_8 = __pyx_v_self->view.itemsize;
  __pyx_v_info->itemsize = __pyx_t_8;

  /* "View.MemoryView":541
 *         info.ndim = self.view.ndim
 *         info.itemsize = self.view.itemsize
 *         info.len = self.view.len             # <<<<<<<<<<<<<<
 *         info.readonly = self.view.readonly
 *         info.obj = self
 */
  __pyx_t_8 = __pyx_v_self->view.len;
  __pyx_v_info->len = __pyx_t_8;

  /* "View.MemoryView":542
 *         info.itemsize = self.view.itemsize
 *         info.len = self.view.len
 *         info.readonly = self.view.readonly             # <<<<<<<<<<<<<<
 *         info.obj = self
 * 
 */
  __pyx_t_1 = __pyx_v_self->view.readonly;
  __pyx_v_info->readonly = __pyx_t_1;

  /* "View.MemoryView":543
 *         info.len = self.view.len
 *         info.readonly = self.view.readonly
 *         info.obj = self             # <<<<<<<<<<<<<<
 * 
 *     __pyx_getbuffer = capsule(<void *> &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)")
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  __Pyx_GOTREF(__pyx_v_info->obj);
  __Pyx_DECREF(__pyx_v_info->obj);
  __pyx_v_info->obj = ((PyObject *)__pyx_v_self);

  /* "View.MemoryView":514
 * 
 *     @cname('getbuffer')
 *     def __getbuffer__(self, Py_buffer *info, int flags):             # <<<<<<<<<<<<<<
 *         if flags & PyBUF_WRITABLE and self.view.readonly:
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  if (__pyx_v_info->obj != NULL) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
  }
  goto __pyx_L2;
  __pyx_L0:;
  if (__pyx_v_info->obj == Py_None) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
  }
  __pyx_L2:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":549
 * 
 *     @property
 *     def T(self):             # <<<<<<<<<<<<<<
 *         cdef _memoryviewslice result = memoryview_copy(self)
 *         transpose_memslice(&result.from_slice)
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  struct __pyx_memoryviewslice_obj *__pyx_v_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":550
 *     @property
 *     def T(self):
 *         cdef _memoryviewslice result = memoryview_copy(self)             # <<<<<<<<<<<<<<
 *         transpose_memslice(&result.from_slice)
 *         return result
 */
  __pyx_t_1 = __pyx_memoryview_copy_object(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_memoryviewslice_type))))) __PYX_ERR(1, 550, __pyx_L1_error)
  __pyx_v_result = ((struct __pyx_memoryviewslice_obj *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "View.MemoryView":551
 *     def T(self):
 *         cdef _memoryviewslice result = memoryview_copy(self)
 *         transpose_memslice(&result.from_slice)             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
  __pyx_t_2 = __pyx_memslice_transpose((&__pyx_v_result->from_slice)); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(1, 551, __pyx_L1_error)

  /* "View.MemoryView":552
 *         cdef _memoryviewslice result = memoryview_copy(self)
 *         transpose_memslice(&result.from_slice)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = ((PyObject *)__pyx_v_result);
  goto __pyx_L0;

  /* "View.MemoryView":549
 * 
 *     @property
 *     def T(self):             # <<<<<<<<<<<<<<
 *         cdef _memoryviewslice result = memoryview_copy(self)
 *         transpose_memslice(&result.from_slice)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.T.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":555
 * 
 *     @property
 *     def base(self):             # <<<<<<<<<<<<<<
 *         return self.obj
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":556
 *     @property
 *     def base(self):
 *         return self.obj             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->obj);
  __pyx_r = __pyx_v_self->obj;
  goto __pyx_L0;

  /* "View.MemoryView":555
 * 
 *     @property
 *     def base(self):             # <<<<<<<<<<<<<<
 *         return self.obj
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":559
 * 
 *     @property
 *     def shape(self):             # <<<<<<<<<<<<<<
 *         return tuple([length for length in self.view.shape[:self.view.ndim]])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  Py_ssize_t __pyx_v_length;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t *__pyx_t_2;
  Py_ssize_t *__pyx_t_3;
  Py_ssize_t *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":560
 *     @property
 *     def shape(self):
 *         return tuple([length for length in self.view.shape[:self.view.ndim]])             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim);
  for (__pyx_t_4 = __pyx_v_self->view.shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
    __pyx_t_2 = __pyx_t_4;
    __pyx_v_length = (__pyx_t_2[0]);
    __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 560, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(1, 560, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __pyx_t_5 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":559
 * 
 *     @property
 *     def shape(self):             # <<<<<<<<<<<<<<
 *         return tuple([length for length in self.view.shape[:self.view.ndim]])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.memoryview.shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":563
 * 
 *     @property
 *     def strides(self):             # <<<<<<<<<<<<<<
 *         if self.view.strides == NULL:
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  Py_ssize_t __pyx_v_stride;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t *__pyx_t_3;
  Py_ssize_t *__pyx_t_4;
  Py_ssize_t *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":564
 *     @property
 *     def strides(self):
 *         if self.view.strides == NULL:             # <<<<<<<<<<<<<<
 * 
 *             raise ValueError("Buffer view does not expose strides")
 */
  __pyx_t_1 = ((__pyx_v_self->view.strides == NULL) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "View.MemoryView":566
 *         if self.view.strides == NULL:
 * 
 *             raise ValueError("Buffer view does not expose strides")             # <<<<<<<<<<<<<<
 * 
 *         return tuple([stride for stride in self.view.strides[:self.view.ndim]])
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 566, __pyx_L1_error)

    /* "View.MemoryView":564
 *     @property
 *     def strides(self):
 *         if self.view.strides == NULL:             # <<<<<<<<<<<<<<
 * 
 *             raise ValueError("Buffer view does not expose strides")
 */
  }

  /* "View.MemoryView":568
 *             raise ValueError("Buffer view does not expose strides")
 * 
 *         return tuple([stride for stride in self.view.strides[:self.view.ndim]])             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = (__pyx_v_self->view.strides + __pyx_v_self->view.ndim);
  for (__pyx_t_5 = __pyx_v_self->view.strides; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
    __pyx_t_3 = __pyx_t_5;
    __pyx_v_stride = (__pyx_t_3[0]);
    __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_stride); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(1, 568, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __pyx_t_6 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":563
 * 
 *     @property
 *     def strides(self):             # <<<<<<<<<<<<<<
 *         if self.view.strides == NULL:
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("View.MemoryView.memoryview.strides.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":571
 * 
 *     @property
 *     def suboffsets(self):             # <<<<<<<<<<<<<<
 *         if self.view.suboffsets == NULL:
 *             return (-1,) * self.view.ndim
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  Py_ssize_t __pyx_v_suboffset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t *__pyx_t_4;
  Py_ssize_t *__pyx_t_5;
  Py_ssize_t *__pyx_t_6;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":572
 *     @property
 *     def suboffsets(self):
 *         if self.view.suboffsets == NULL:             # <<<<<<<<<<<<<<
 *             return (-1,) * self.view.ndim
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->view.suboffsets == NULL) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":573
 *     def suboffsets(self):
 *         if self.view.suboffsets == NULL:
 *             return (-1,) * self.view.ndim             # <<<<<<<<<<<<<<
 * 
 *         return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]])
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyNumber_Multiply(__pyx_tuple__52, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "View.MemoryView":572
 *     @property
 *     def suboffsets(self):
 *         if self.view.suboffsets == NULL:             # <<<<<<<<<<<<<<
 *             return (-1,) * self.view.ndim
 * 
 */
  }

  /* "View.MemoryView":575
 *             return (-1,) * self.view.ndim
 * 
 *         return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]])             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = (__pyx_v_self->view.suboffsets + __pyx_v_self->view.ndim);
  for (__pyx_t_6 = __pyx_v_self->view.suboffsets; __pyx_t_6 < __pyx_t_5; __pyx_t_6++) {
    __pyx_t_4 = __pyx_t_6;
    __pyx_v_suboffset = (__pyx_t_4[0]);
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_suboffset); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_2))) __PYX_ERR(1, 575, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_2 = PyList_AsTuple(((PyObject*)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":571
 * 
 *     @property
 *     def suboffsets(self):             # <<<<<<<<<<<<<<
 *         if self.view.suboffsets == NULL:
 *             return (-1,) * self.view.ndim
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.memoryview.suboffsets.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":578
 * 
 *     @property
 *     def ndim(self):             # <<<<<<<<<<<<<<
 *         return self.view.ndim
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":579
 *     @property
 *     def ndim(self):
 *         return self.view.ndim             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":578
 * 
 *     @property
 *     def ndim(self):             # <<<<<<<<<<<<<<
 *         return self.view.ndim
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.ndim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":582
 * 
 *     @property
 *     def itemsize(self):             # <<<<<<<<<<<<<<
 *         return self.view.itemsize
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":583
 *     @property
 *     def itemsize(self):
 *         return self.view.itemsize             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":582
 * 
 *     @property
 *     def itemsize(self):             # <<<<<<<<<<<<<<
 *         return self.view.itemsize
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.itemsize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":586
 * 
 *     @property
 *     def nbytes(self):             # <<<<<<<<<<<<<<
 *         return self.size * self.view.itemsize
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":587
 *     @property
 *     def nbytes(self):
 *         return self.size * self.view.itemsize             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":586
 * 
 *     @property
 *     def nbytes(self):             # <<<<<<<<<<<<<<
 *         return self.size * self.view.itemsize
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.memoryview.nbytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":590
 * 
 *     @property
 *     def size(self):             # <<<<<<<<<<<<<<
 *         if self._size is None:
 *             result = 1
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t *__pyx_t_3;
  Py_ssize_t *__pyx_t_4;
  Py_ssize_t *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":591
 *     @property
 *     def size(self):
 *         if self._size is None:             # <<<<<<<<<<<<<<
 *             result = 1
 * 
 */
  __pyx_t_1 = (__pyx_v_self->_size == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":592
 *     def size(self):
 *         if self._size is None:
 *             result = 1             # <<<<<<<<<<<<<<
 * 
 *             for length in self.view.shape[:self.view.ndim]:
 */
    __Pyx_INCREF(__pyx_int_1);
    __pyx_v_result = __pyx_int_1;

    /* "View.MemoryView":594
 *             result = 1
 * 
 *             for length in self.view.shape[:self.view.ndim]:             # <<<<<<<<<<<<<<
 *                 result *= length
 * 
 */
    __pyx_t_4 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim);
    for (__pyx_t_5 = __pyx_v_self->view.shape; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_6 = PyInt_FromSsize_t((__pyx_t_3[0])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 594, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "View.MemoryView":595
 * 
 *             for length in self.view.shape[:self.view.ndim]:
 *                 result *= length             # <<<<<<<<<<<<<<
 * 
 *             self._size = result
 */
      __pyx_t_6 = PyNumber_InPlaceMultiply(__pyx_v_result, __pyx_v_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 595, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_6);
      __pyx_t_6 = 0;
    }

    /* "View.MemoryView":597
 *                 result *= length
 * 
 *             self._size = result             # <<<<<<<<<<<<<<
 * 
 *         return self._size
 */
    __Pyx_INCREF(__pyx_v_result);
    __Pyx_GIVEREF(__pyx_v_result);
    __Pyx_GOTREF(__pyx_v_self->_size);
    __Pyx_DECREF(__pyx_v_self->_size);
    __pyx_v_self->_size = __pyx_v_result;

    /* "View.MemoryView":591
 *     @property
 *     def size(self):
 *         if self._size is None:             # <<<<<<<<<<<<<<
 *             result = 1
 * 
 */
  }

  /* "View.MemoryView":599
 *             self._size = result
 * 
 *         return self._size             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_size);
  __pyx_r = __pyx_v_self->_size;
  goto __pyx_L0;

  /* "View.MemoryView":590
 * 
 *     @property
 *     def size(self):             # <<<<<<<<<<<<<<
 *         if self._size is None:
 *             result = 1
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("View.MemoryView.memoryview.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":601
 *         return self._size
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         if self.view.ndim >= 1:
 *             return self.view.shape[0]
 */

/* Python wrapper */
static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(struct __pyx_memoryview_obj *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "View.MemoryView":602
 * 
 *     def __len__(self):
 *         if self.view.ndim >= 1:             # <<<<<<<<<<<<<<
 *             return self.view.shape[0]
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->view.ndim >= 1) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":603
 *     def __len__(self):
 *         if self.view.ndim >= 1:
 *             return self.view.shape[0]             # <<<<<<<<<<<<<<
 * 
 *         return 0
 */
    __pyx_r = (__pyx_v_self->view.shape[0]);
    goto __pyx_L0;

    /* "View.MemoryView":602
 * 
 *     def __len__(self):
 *         if self.view.ndim >= 1:             # <<<<<<<<<<<<<<
 *             return self.view.shape[0]
 * 
 */
  }

  /* "View.MemoryView":605
 *             return self.view.shape[0]
 * 
 *         return 0             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_r = 0;
  goto __pyx_L0;

  /* "View.MemoryView":601
 *         return self._size
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         if self.view.ndim >= 1:
 *             return self.view.shape[0]
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":607
 *         return 0
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return "<MemoryView of %r at 0x%x>" % (self.base.__class__.__name__,
 *                                                id(self))
 */

/* Python wrapper */
static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "View.MemoryView":608
 * 
 *     def __repr__(self):
 *         return "<MemoryView of %r at 0x%x>" % (self.base.__class__.__name__,             # <<<<<<<<<<<<<<
 *                                                id(self))
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "View.MemoryView":609
 *     def __repr__(self):
 *         return "<MemoryView of %r at 0x%x>" % (self.base.__class__.__name__,
 *                                                id(self))             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "View.MemoryView":608
 * 
 *     def __repr__(self):
 *         return "<MemoryView of %r at 0x%x>" % (self.base.__class__.__name__,             # <<<<<<<<<<<<<<
 *                                                id(self))
 * 
 */
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":607
 *         return 0
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return "<MemoryView of %r at 0x%x>" % (self.base.__class__.__name__,
 *                                                id(self))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":611
 *                                                id(self))
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "<MemoryView of %r object>" % (self.base.__class__.__name__,)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "View.MemoryView":612
 * 
 *     def __str__(self):
 *         return "<MemoryView of %r object>" % (self.base.__class__.__name__,)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_object, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":611
 *                                                id(self))
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "<MemoryView of %r object>" % (self.base.__class__.__name__,)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":615
 * 
 * 
 *     def is_c_contig(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice *mslice
 *         cdef __Pyx_memviewslice tmp
 */

/* Python wrapper */
static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_c_contig (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(struct __pyx_memoryview_obj *__pyx_v_self) {
  __Pyx_memviewslice *__pyx_v_mslice;
  __Pyx_memviewslice __pyx_v_tmp;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("is_c_contig", 0);

  /* "View.MemoryView":618
 *         cdef __Pyx_memviewslice *mslice
 *         cdef __Pyx_memviewslice tmp
 *         mslice = get_slice_from_memview(self, &tmp)             # <<<<<<<<<<<<<<
 *         return slice_is_contig(mslice[0], 'C', self.view.ndim)
 * 
 */
  __pyx_v_mslice = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp));

  /* "View.MemoryView":619
 *         cdef __Pyx_memviewslice tmp
 *         mslice = get_slice_from_memview(self, &tmp)
 *         return slice_is_contig(mslice[0], 'C', self.view.ndim)             # <<<<<<<<<<<<<<
 * 
 *     def is_f_contig(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]), 'C', __pyx_v_self->view.ndim)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":615
 * 
 * 
 *     def is_c_contig(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice *mslice
 *         cdef __Pyx_memviewslice tmp
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.is_c_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":621
 *         return slice_is_contig(mslice[0], 'C', self.view.ndim)
 * 
 *     def is_f_contig(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice *mslice
 *         cdef __Pyx_memviewslice tmp
 */

/* Python wrapper */
static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_f_contig (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(struct __pyx_memoryview_obj *__pyx_v_self) {
  __Pyx_memviewslice *__pyx_v_mslice;
  __Pyx_memviewslice __pyx_v_tmp;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("is_f_contig", 0);

  /* "View.MemoryView":624
 *         cdef __Pyx_memviewslice *mslice
 *         cdef __Pyx_memviewslice tmp
 *         mslice = get_slice_from_memview(self, &tmp)             # <<<<<<<<<<<<<<
 *         return slice_is_contig(mslice[0], 'F', self.view.ndim)
 * 
 */
  __pyx_v_mslice = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp));

  /* "View.MemoryView":625
 *         cdef __Pyx_memviewslice tmp
 *         mslice = get_slice_from_memview(self, &tmp)
 *         return slice_is_contig(mslice[0], 'F', self.view.ndim)             # <<<<<<<<<<<<<<
 * 
 *     def copy(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]), 'F', __pyx_v_self->view.ndim)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":621
 *         return slice_is_contig(mslice[0], 'C', self.view.ndim)
 * 
 *     def is_f_contig(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice *mslice
 *         cdef __Pyx_memviewslice tmp
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.is_f_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":627
 *         return slice_is_contig(mslice[0], 'F', self.view.ndim)
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice mslice
 *         cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS
 */

/* Python wrapper */
static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(struct __pyx_memoryview_obj *__pyx_v_self) {
  __Pyx_memviewslice __pyx_v_mslice;
  int __pyx_v_flags;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_memviewslice __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("copy", 0);

  /* "View.MemoryView":629
 *     def copy(self):
 *         cdef __Pyx_memviewslice mslice
 *         cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS             # <<<<<<<<<<<<<<
 * 
 *         slice_copy(self, &mslice)
 */
  __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_F_CONTIGUOUS));

  /* "View.MemoryView":631
 *         cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS
 * 
 *         slice_copy(self, &mslice)             # <<<<<<<<<<<<<<
 *         mslice = slice_copy_contig(&mslice, "c", self.view.ndim,
 *                                    self.view.itemsize,
 */
  __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_mslice));

  /* "View.MemoryView":632
 * 
 *         slice_copy(self, &mslice)
 *         mslice = slice_copy_contig(&mslice, "c", self.view.ndim,             # <<<<<<<<<<<<<<
 *                                    self.view.itemsize,
 *                                    flags|PyBUF_C_CONTIGUOUS,
 */
  __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_mslice), ((char *)"c"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_C_CONTIGUOUS), __pyx_v_self->dtype_is_object); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 632, __pyx_L1_error)
  __pyx_v_mslice = __pyx_t_1;

  /* "View.MemoryView":637
 *                                    self.dtype_is_object)
 * 
 *         return memoryview_copy_from_slice(self, &mslice)             # <<<<<<<<<<<<<<
 * 
 *     def copy_fortran(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_mslice)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":627
 *         return slice_is_contig(mslice[0], 'F', self.view.ndim)
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice mslice
 *         cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.memoryview.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":639
 *         return memoryview_copy_from_slice(self, &mslice)
 * 
 *     def copy_fortran(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice src, dst
 *         cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS
 */

/* Python wrapper */
static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy_fortran (wrapper)", 0);
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(struct __pyx_memoryview_obj *__pyx_v_self) {
  __Pyx_memviewslice __pyx_v_src;
  __Pyx_memviewslice __pyx_v_dst;
  int __pyx_v_flags;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_memviewslice __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("copy_fortran", 0);

  /* "View.MemoryView":641
 *     def copy_fortran(self):
 *         cdef __Pyx_memviewslice src, dst
 *         cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS             # <<<<<<<<<<<<<<
 * 
 *         slice_copy(self, &src)
 */
  __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_C_CONTIGUOUS));

  /* "View.MemoryView":643
 *         cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS
 * 
 *         slice_copy(self, &src)             # <<<<<<<<<<<<<<
 *         dst = slice_copy_contig(&src, "fortran", self.view.ndim,
 *                                 self.view.itemsize,
 */
  __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_src));

  /* "View.MemoryView":644
 * 
 *         slice_copy(self, &src)
 *         dst = slice_copy_contig(&src, "fortran", self.view.ndim,             # <<<<<<<<<<<<<<
 *                                 self.view.itemsize,
 *                                 flags|PyBUF_F_CONTIGUOUS,
 */
  __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_src), ((char *)"fortran"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_F_CONTIGUOUS), __pyx_v_self->dtype_is_object); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 644, __pyx_L1_error)
  __pyx_v_dst = __pyx_t_1;

  /* "View.MemoryView":649
 *                                 self.dtype_is_object)
 * 
 *         return memoryview_copy_from_slice(self, &dst)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_dst)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":639
 *         return memoryview_copy_from_slice(self, &mslice)
 * 
 *     def copy_fortran(self):             # <<<<<<<<<<<<<<
 *         cdef __Pyx_memviewslice src, dst
 *         cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView.memoryview.copy_fortran", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_memoryview___reduce_cython__(((struct __pyx_memoryview_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_memoryview_2__setstate_cython__(((struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":653
 * 
 * @cname('__pyx_memoryview_new')
 * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo):             # <<<<<<<<<<<<<<
 *     cdef memoryview result = memoryview(o, flags, dtype_is_object)
 *     result.typeinfo = typeinfo
 */

static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, int __pyx_v_dtype_is_object, __Pyx_TypeInfo *__pyx_v_typeinfo) {
  struct __pyx_memoryview_obj *__pyx_v_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("memoryview_cwrapper", 0);

  /* "View.MemoryView":654
 * @cname('__pyx_memoryview_new')
 * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo):
 *     cdef memoryview result = memoryview(o, flags, dtype_is_object)             # <<<<<<<<<<<<<<
 *     result.typeinfo = typeinfo
 *     return result
 */
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_o);
  __Pyx_GIVEREF(__pyx_v_o);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_o);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_result = ((struct __pyx_memoryview_obj *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "View.MemoryView":655
 * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo):
 *     cdef memoryview result = memoryview(o, flags, dtype_is_object)
 *     result.typeinfo = typeinfo             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_v_result->typeinfo = __pyx_v_typeinfo;

  /* "View.MemoryView":656
 *     cdef memoryview result = memoryview(o, flags, dtype_is_object)
 *     result.typeinfo = typeinfo
 *     return result             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_check')
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = ((PyObject *)__pyx_v_result);
  goto __pyx_L0;

  /* "View.MemoryView":653
 * 
 * @cname('__pyx_memoryview_new')
 * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo):             # <<<<<<<<<<<<<<
 *     cdef memoryview result = memoryview(o, flags, dtype_is_object)
 *     result.typeinfo = typeinfo
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.memoryview_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":659
 * 
 * @cname('__pyx_memoryview_check')
 * cdef inline bint memoryview_check(object o):             # <<<<<<<<<<<<<<
 *     return isinstance(o, memoryview)
 * 
 */

static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("memoryview_check", 0);

  /* "View.MemoryView":660
 * @cname('__pyx_memoryview_check')
 * cdef inline bint memoryview_check(object o):
 *     return isinstance(o, memoryview)             # <<<<<<<<<<<<<<
 * 
 * cdef tuple _unellipsify(object index, int ndim):
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_o, __pyx_memoryview_type); 
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "View.MemoryView":659
 * 
 * @cname('__pyx_memoryview_check')
 * cdef inline bint memoryview_check(object o):             # <<<<<<<<<<<<<<
 *     return isinstance(o, memoryview)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":662
 *     return isinstance(o, memoryview)
 * 
 * cdef tuple _unellipsify(object index, int ndim):             # <<<<<<<<<<<<<<
 *     """
 *     Replace all ellipses with full slices and fill incomplete indices with
 */

static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) {
  PyObject *__pyx_v_tup = NULL;
  PyObject *__pyx_v_result = NULL;
  int __pyx_v_have_slices;
  int __pyx_v_seen_ellipsis;
  CYTHON_UNUSED PyObject *__pyx_v_idx = NULL;
  PyObject *__pyx_v_item = NULL;
  Py_ssize_t __pyx_v_nslices;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  __Pyx_RefNannySetupContext("_unellipsify", 0);

  /* "View.MemoryView":667
 *     full slices.
 *     """
 *     if not isinstance(index, tuple):             # <<<<<<<<<<<<<<
 *         tup = (index,)
 *     else:
 */
  __pyx_t_1 = PyTuple_Check(__pyx_v_index); 
  __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":668
 *     """
 *     if not isinstance(index, tuple):
 *         tup = (index,)             # <<<<<<<<<<<<<<
 *     else:
 *         tup = index
 */
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_index);
    __Pyx_GIVEREF(__pyx_v_index);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_index);
    __pyx_v_tup = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "View.MemoryView":667
 *     full slices.
 *     """
 *     if not isinstance(index, tuple):             # <<<<<<<<<<<<<<
 *         tup = (index,)
 *     else:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":670
 *         tup = (index,)
 *     else:
 *         tup = index             # <<<<<<<<<<<<<<
 * 
 *     result = []
 */
  /*else*/ {
    __Pyx_INCREF(__pyx_v_index);
    __pyx_v_tup = __pyx_v_index;
  }
  __pyx_L3:;

  /* "View.MemoryView":672
 *         tup = index
 * 
 *     result = []             # <<<<<<<<<<<<<<
 *     have_slices = False
 *     seen_ellipsis = False
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_result = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "View.MemoryView":673
 * 
 *     result = []
 *     have_slices = False             # <<<<<<<<<<<<<<
 *     seen_ellipsis = False
 *     for idx, item in enumerate(tup):
 */
  __pyx_v_have_slices = 0;

  /* "View.MemoryView":674
 *     result = []
 *     have_slices = False
 *     seen_ellipsis = False             # <<<<<<<<<<<<<<
 *     for idx, item in enumerate(tup):
 *         if item is Ellipsis:
 */
  __pyx_v_seen_ellipsis = 0;

  /* "View.MemoryView":675
 *     have_slices = False
 *     seen_ellipsis = False
 *     for idx, item in enumerate(tup):             # <<<<<<<<<<<<<<
 *         if item is Ellipsis:
 *             if not seen_ellipsis:
 */
  __Pyx_INCREF(__pyx_int_0);
  __pyx_t_3 = __pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_tup)) || PyTuple_CheckExact(__pyx_v_tup)) {
    __pyx_t_4 = __pyx_v_tup; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0;
    __pyx_t_6 = NULL;
  } else {
    __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_tup); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 675, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_6)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(1, 675, __pyx_L1_error)
        #else
        __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        #endif
      } else {
        if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(1, 675, __pyx_L1_error)
        #else
        __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        #endif
      }
    } else {
      __pyx_t_7 = __pyx_t_6(__pyx_t_4);
      if (unlikely(!__pyx_t_7)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(1, 675, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_7);
    }
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_3);
    __pyx_t_7 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_7;
    __pyx_t_7 = 0;

    /* "View.MemoryView":676
 *     seen_ellipsis = False
 *     for idx, item in enumerate(tup):
 *         if item is Ellipsis:             # <<<<<<<<<<<<<<
 *             if not seen_ellipsis:
 *                 result.extend([slice(None)] * (ndim - len(tup) + 1))
 */
    __pyx_t_2 = (__pyx_v_item == __pyx_builtin_Ellipsis);
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":677
 *     for idx, item in enumerate(tup):
 *         if item is Ellipsis:
 *             if not seen_ellipsis:             # <<<<<<<<<<<<<<
 *                 result.extend([slice(None)] * (ndim - len(tup) + 1))
 *                 seen_ellipsis = True
 */
      __pyx_t_1 = ((!(__pyx_v_seen_ellipsis != 0)) != 0);
      if (__pyx_t_1) {

        /* "View.MemoryView":678
 *         if item is Ellipsis:
 *             if not seen_ellipsis:
 *                 result.extend([slice(None)] * (ndim - len(tup) + 1))             # <<<<<<<<<<<<<<
 *                 seen_ellipsis = True
 *             else:
 */
        __pyx_t_8 = PyObject_Length(__pyx_v_tup); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(1, 678, __pyx_L1_error)
        __pyx_t_7 = PyList_New(1 * ((((__pyx_v_ndim - __pyx_t_8) + 1)<0) ? 0:((__pyx_v_ndim - __pyx_t_8) + 1))); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 678, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        { Py_ssize_t __pyx_temp;
          for (__pyx_temp=0; __pyx_temp < ((__pyx_v_ndim - __pyx_t_8) + 1); __pyx_temp++) {
            __Pyx_INCREF(__pyx_slice__31);
            __Pyx_GIVEREF(__pyx_slice__31);
            PyList_SET_ITEM(__pyx_t_7, __pyx_temp, __pyx_slice__31);
          }
        }
        __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_7); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 678, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "View.MemoryView":679
 *             if not seen_ellipsis:
 *                 result.extend([slice(None)] * (ndim - len(tup) + 1))
 *                 seen_ellipsis = True             # <<<<<<<<<<<<<<
 *             else:
 *                 result.append(slice(None))
 */
        __pyx_v_seen_ellipsis = 1;

        /* "View.MemoryView":677
 *     for idx, item in enumerate(tup):
 *         if item is Ellipsis:
 *             if not seen_ellipsis:             # <<<<<<<<<<<<<<
 *                 result.extend([slice(None)] * (ndim - len(tup) + 1))
 *                 seen_ellipsis = True
 */
        goto __pyx_L7;
      }

      /* "View.MemoryView":681
 *                 seen_ellipsis = True
 *             else:
 *                 result.append(slice(None))             # <<<<<<<<<<<<<<
 *             have_slices = True
 *         else:
 */
      /*else*/ {
        __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_slice__31); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 681, __pyx_L1_error)
      }
      __pyx_L7:;

      /* "View.MemoryView":682
 *             else:
 *                 result.append(slice(None))
 *             have_slices = True             # <<<<<<<<<<<<<<
 *         else:
 *             if not isinstance(item, slice) and not PyIndex_Check(item):
 */
      __pyx_v_have_slices = 1;

      /* "View.MemoryView":676
 *     seen_ellipsis = False
 *     for idx, item in enumerate(tup):
 *         if item is Ellipsis:             # <<<<<<<<<<<<<<
 *             if not seen_ellipsis:
 *                 result.extend([slice(None)] * (ndim - len(tup) + 1))
 */
      goto __pyx_L6;
    }

    /* "View.MemoryView":684
 *             have_slices = True
 *         else:
 *             if not isinstance(item, slice) and not PyIndex_Check(item):             # <<<<<<<<<<<<<<
 *                 raise TypeError("Cannot index with type '%s'" % type(item))
 * 
 */
    /*else*/ {
      __pyx_t_2 = PySlice_Check(__pyx_v_item); 
      __pyx_t_10 = ((!(__pyx_t_2 != 0)) != 0);
      if (__pyx_t_10) {
      } else {
        __pyx_t_1 = __pyx_t_10;
        goto __pyx_L9_bool_binop_done;
      }
      __pyx_t_10 = ((!(PyIndex_Check(__pyx_v_item) != 0)) != 0);
      __pyx_t_1 = __pyx_t_10;
      __pyx_L9_bool_binop_done:;
      if (unlikely(__pyx_t_1)) {

        /* "View.MemoryView":685
 *         else:
 *             if not isinstance(item, slice) and not PyIndex_Check(item):
 *                 raise TypeError("Cannot index with type '%s'" % type(item))             # <<<<<<<<<<<<<<
 * 
 *             have_slices = have_slices or isinstance(item, slice)
 */
        __pyx_t_7 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Cannot_index_with_type_s, ((PyObject *)Py_TYPE(__pyx_v_item))); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 685, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 685, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_Raise(__pyx_t_11, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __PYX_ERR(1, 685, __pyx_L1_error)

        /* "View.MemoryView":684
 *             have_slices = True
 *         else:
 *             if not isinstance(item, slice) and not PyIndex_Check(item):             # <<<<<<<<<<<<<<
 *                 raise TypeError("Cannot index with type '%s'" % type(item))
 * 
 */
      }

      /* "View.MemoryView":687
 *                 raise TypeError("Cannot index with type '%s'" % type(item))
 * 
 *             have_slices = have_slices or isinstance(item, slice)             # <<<<<<<<<<<<<<
 *             result.append(item)
 * 
 */
      __pyx_t_10 = (__pyx_v_have_slices != 0);
      if (!__pyx_t_10) {
      } else {
        __pyx_t_1 = __pyx_t_10;
        goto __pyx_L11_bool_binop_done;
      }
      __pyx_t_10 = PySlice_Check(__pyx_v_item); 
      __pyx_t_2 = (__pyx_t_10 != 0);
      __pyx_t_1 = __pyx_t_2;
      __pyx_L11_bool_binop_done:;
      __pyx_v_have_slices = __pyx_t_1;

      /* "View.MemoryView":688
 * 
 *             have_slices = have_slices or isinstance(item, slice)
 *             result.append(item)             # <<<<<<<<<<<<<<
 * 
 *     nslices = ndim - len(result)
 */
      __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_item); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 688, __pyx_L1_error)
    }
    __pyx_L6:;

    /* "View.MemoryView":675
 *     have_slices = False
 *     seen_ellipsis = False
 *     for idx, item in enumerate(tup):             # <<<<<<<<<<<<<<
 *         if item is Ellipsis:
 *             if not seen_ellipsis:
 */
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "View.MemoryView":690
 *             result.append(item)
 * 
 *     nslices = ndim - len(result)             # <<<<<<<<<<<<<<
 *     if nslices:
 *         result.extend([slice(None)] * nslices)
 */
  __pyx_t_5 = PyList_GET_SIZE(__pyx_v_result); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(1, 690, __pyx_L1_error)
  __pyx_v_nslices = (__pyx_v_ndim - __pyx_t_5);

  /* "View.MemoryView":691
 * 
 *     nslices = ndim - len(result)
 *     if nslices:             # <<<<<<<<<<<<<<
 *         result.extend([slice(None)] * nslices)
 * 
 */
  __pyx_t_1 = (__pyx_v_nslices != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":692
 *     nslices = ndim - len(result)
 *     if nslices:
 *         result.extend([slice(None)] * nslices)             # <<<<<<<<<<<<<<
 * 
 *     return have_slices or nslices, tuple(result)
 */
    __pyx_t_3 = PyList_New(1 * ((__pyx_v_nslices<0) ? 0:__pyx_v_nslices)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    { Py_ssize_t __pyx_temp;
      for (__pyx_temp=0; __pyx_temp < __pyx_v_nslices; __pyx_temp++) {
        __Pyx_INCREF(__pyx_slice__31);
        __Pyx_GIVEREF(__pyx_slice__31);
        PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_slice__31);
      }
    }
    __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 692, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "View.MemoryView":691
 * 
 *     nslices = ndim - len(result)
 *     if nslices:             # <<<<<<<<<<<<<<
 *         result.extend([slice(None)] * nslices)
 * 
 */
  }

  /* "View.MemoryView":694
 *         result.extend([slice(None)] * nslices)
 * 
 *     return have_slices or nslices, tuple(result)             # <<<<<<<<<<<<<<
 * 
 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim):
 */
  __Pyx_XDECREF(__pyx_r);
  if (!__pyx_v_have_slices) {
  } else {
    __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_have_slices); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L14_bool_binop_done;
  }
  __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_nslices); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __pyx_t_4;
  __pyx_t_4 = 0;
  __pyx_L14_bool_binop_done:;
  __pyx_t_4 = PyList_AsTuple(__pyx_v_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = ((PyObject*)__pyx_t_11);
  __pyx_t_11 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":662
 *     return isinstance(o, memoryview)
 * 
 * cdef tuple _unellipsify(object index, int ndim):             # <<<<<<<<<<<<<<
 *     """
 *     Replace all ellipses with full slices and fill incomplete indices with
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("View.MemoryView._unellipsify", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tup);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_idx);
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":696
 *     return have_slices or nslices, tuple(result)
 * 
 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim):             # <<<<<<<<<<<<<<
 *     for suboffset in suboffsets[:ndim]:
 *         if suboffset >= 0:
 */

static PyObject *assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ndim) {
  Py_ssize_t __pyx_v_suboffset;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t *__pyx_t_1;
  Py_ssize_t *__pyx_t_2;
  Py_ssize_t *__pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("assert_direct_dimensions", 0);

  /* "View.MemoryView":697
 * 
 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim):
 *     for suboffset in suboffsets[:ndim]:             # <<<<<<<<<<<<<<
 *         if suboffset >= 0:
 *             raise ValueError("Indirect dimensions not supported")
 */
  __pyx_t_2 = (__pyx_v_suboffsets + __pyx_v_ndim);
  for (__pyx_t_3 = __pyx_v_suboffsets; __pyx_t_3 < __pyx_t_2; __pyx_t_3++) {
    __pyx_t_1 = __pyx_t_3;
    __pyx_v_suboffset = (__pyx_t_1[0]);

    /* "View.MemoryView":698
 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim):
 *     for suboffset in suboffsets[:ndim]:
 *         if suboffset >= 0:             # <<<<<<<<<<<<<<
 *             raise ValueError("Indirect dimensions not supported")
 * 
 */
    __pyx_t_4 = ((__pyx_v_suboffset >= 0) != 0);
    if (unlikely(__pyx_t_4)) {

      /* "View.MemoryView":699
 *     for suboffset in suboffsets[:ndim]:
 *         if suboffset >= 0:
 *             raise ValueError("Indirect dimensions not supported")             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 699, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __PYX_ERR(1, 699, __pyx_L1_error)

      /* "View.MemoryView":698
 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim):
 *     for suboffset in suboffsets[:ndim]:
 *         if suboffset >= 0:             # <<<<<<<<<<<<<<
 *             raise ValueError("Indirect dimensions not supported")
 * 
 */
    }
  }

  /* "View.MemoryView":696
 *     return have_slices or nslices, tuple(result)
 * 
 * cdef assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim):             # <<<<<<<<<<<<<<
 *     for suboffset in suboffsets[:ndim]:
 *         if suboffset >= 0:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.assert_direct_dimensions", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":706
 * 
 * @cname('__pyx_memview_slice')
 * cdef memoryview memview_slice(memoryview memview, object indices):             # <<<<<<<<<<<<<<
 *     cdef int new_ndim = 0, suboffset_dim = -1, dim
 *     cdef bint negative_step
 */

static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_obj *__pyx_v_memview, PyObject *__pyx_v_indices) {
  int __pyx_v_new_ndim;
  int __pyx_v_suboffset_dim;
  int __pyx_v_dim;
  __Pyx_memviewslice __pyx_v_src;
  __Pyx_memviewslice __pyx_v_dst;
  __Pyx_memviewslice *__pyx_v_p_src;
  struct __pyx_memoryviewslice_obj *__pyx_v_memviewsliceobj = 0;
  __Pyx_memviewslice *__pyx_v_p_dst;
  int *__pyx_v_p_suboffset_dim;
  Py_ssize_t __pyx_v_start;
  Py_ssize_t __pyx_v_stop;
  Py_ssize_t __pyx_v_step;
  int __pyx_v_have_start;
  int __pyx_v_have_stop;
  int __pyx_v_have_step;
  PyObject *__pyx_v_index = NULL;
  struct __pyx_memoryview_obj *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  struct __pyx_memoryview_obj *__pyx_t_4;
  char *__pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  Py_ssize_t __pyx_t_10;
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  __Pyx_RefNannySetupContext("memview_slice", 0);

  /* "View.MemoryView":707
 * @cname('__pyx_memview_slice')
 * cdef memoryview memview_slice(memoryview memview, object indices):
 *     cdef int new_ndim = 0, suboffset_dim = -1, dim             # <<<<<<<<<<<<<<
 *     cdef bint negative_step
 *     cdef __Pyx_memviewslice src, dst
 */
  __pyx_v_new_ndim = 0;
  __pyx_v_suboffset_dim = -1;

  /* "View.MemoryView":714
 * 
 * 
 *     memset(&dst, 0, sizeof(dst))             # <<<<<<<<<<<<<<
 * 
 *     cdef _memoryviewslice memviewsliceobj
 */
  (void)(memset((&__pyx_v_dst), 0, (sizeof(__pyx_v_dst))));

  /* "View.MemoryView":718
 *     cdef _memoryviewslice memviewsliceobj
 * 
 *     assert memview.view.ndim > 0             # <<<<<<<<<<<<<<
 * 
 *     if isinstance(memview, _memoryviewslice):
 */
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(!Py_OptimizeFlag)) {
    if (unlikely(!((__pyx_v_memview->view.ndim > 0) != 0))) {
      PyErr_SetNone(PyExc_AssertionError);
      __PYX_ERR(1, 718, __pyx_L1_error)
    }
  }
  #endif

  /* "View.MemoryView":720
 *     assert memview.view.ndim > 0
 * 
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         memviewsliceobj = memview
 *         p_src = &memviewsliceobj.from_slice
 */
  __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":721
 * 
 *     if isinstance(memview, _memoryviewslice):
 *         memviewsliceobj = memview             # <<<<<<<<<<<<<<
 *         p_src = &memviewsliceobj.from_slice
 *     else:
 */
    if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(1, 721, __pyx_L1_error)
    __pyx_t_3 = ((PyObject *)__pyx_v_memview);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_v_memviewsliceobj = ((struct __pyx_memoryviewslice_obj *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "View.MemoryView":722
 *     if isinstance(memview, _memoryviewslice):
 *         memviewsliceobj = memview
 *         p_src = &memviewsliceobj.from_slice             # <<<<<<<<<<<<<<
 *     else:
 *         slice_copy(memview, &src)
 */
    __pyx_v_p_src = (&__pyx_v_memviewsliceobj->from_slice);

    /* "View.MemoryView":720
 *     assert memview.view.ndim > 0
 * 
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         memviewsliceobj = memview
 *         p_src = &memviewsliceobj.from_slice
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":724
 *         p_src = &memviewsliceobj.from_slice
 *     else:
 *         slice_copy(memview, &src)             # <<<<<<<<<<<<<<
 *         p_src = &src
 * 
 */
  /*else*/ {
    __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_src));

    /* "View.MemoryView":725
 *     else:
 *         slice_copy(memview, &src)
 *         p_src = &src             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_v_p_src = (&__pyx_v_src);
  }
  __pyx_L3:;

  /* "View.MemoryView":731
 * 
 * 
 *     dst.memview = p_src.memview             # <<<<<<<<<<<<<<
 *     dst.data = p_src.data
 * 
 */
  __pyx_t_4 = __pyx_v_p_src->memview;
  __pyx_v_dst.memview = __pyx_t_4;

  /* "View.MemoryView":732
 * 
 *     dst.memview = p_src.memview
 *     dst.data = p_src.data             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_5 = __pyx_v_p_src->data;
  __pyx_v_dst.data = __pyx_t_5;

  /* "View.MemoryView":737
 * 
 * 
 *     cdef __Pyx_memviewslice *p_dst = &dst             # <<<<<<<<<<<<<<
 *     cdef int *p_suboffset_dim = &suboffset_dim
 *     cdef Py_ssize_t start, stop, step
 */
  __pyx_v_p_dst = (&__pyx_v_dst);

  /* "View.MemoryView":738
 * 
 *     cdef __Pyx_memviewslice *p_dst = &dst
 *     cdef int *p_suboffset_dim = &suboffset_dim             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t start, stop, step
 *     cdef bint have_start, have_stop, have_step
 */
  __pyx_v_p_suboffset_dim = (&__pyx_v_suboffset_dim);

  /* "View.MemoryView":742
 *     cdef bint have_start, have_stop, have_step
 * 
 *     for dim, index in enumerate(indices):             # <<<<<<<<<<<<<<
 *         if PyIndex_Check(index):
 *             slice_memviewslice(
 */
  __pyx_t_6 = 0;
  if (likely(PyList_CheckExact(__pyx_v_indices)) || PyTuple_CheckExact(__pyx_v_indices)) {
    __pyx_t_3 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 742, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 742, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_9 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(1, 742, __pyx_L1_error)
        #else
        __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 742, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(1, 742, __pyx_L1_error)
        #else
        __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 742, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        #endif
      }
    } else {
      __pyx_t_9 = __pyx_t_8(__pyx_t_3);
      if (unlikely(!__pyx_t_9)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(1, 742, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_9);
    }
    __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_9);
    __pyx_t_9 = 0;
    __pyx_v_dim = __pyx_t_6;
    __pyx_t_6 = (__pyx_t_6 + 1);

    /* "View.MemoryView":743
 * 
 *     for dim, index in enumerate(indices):
 *         if PyIndex_Check(index):             # <<<<<<<<<<<<<<
 *             slice_memviewslice(
 *                 p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim],
 */
    __pyx_t_2 = (PyIndex_Check(__pyx_v_index) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":747
 *                 p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim],
 *                 dim, new_ndim, p_suboffset_dim,
 *                 index, 0, 0, # start, stop, step             # <<<<<<<<<<<<<<
 *                 0, 0, 0, # have_{start,stop,step}
 *                 False)
 */
      __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 747, __pyx_L1_error)

      /* "View.MemoryView":744
 *     for dim, index in enumerate(indices):
 *         if PyIndex_Check(index):
 *             slice_memviewslice(             # <<<<<<<<<<<<<<
 *                 p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim],
 *                 dim, new_ndim, p_suboffset_dim,
 */
      __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_t_10, 0, 0, 0, 0, 0, 0); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(1, 744, __pyx_L1_error)

      /* "View.MemoryView":743
 * 
 *     for dim, index in enumerate(indices):
 *         if PyIndex_Check(index):             # <<<<<<<<<<<<<<
 *             slice_memviewslice(
 *                 p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim],
 */
      goto __pyx_L6;
    }

    /* "View.MemoryView":750
 *                 0, 0, 0, # have_{start,stop,step}
 *                 False)
 *         elif index is None:             # <<<<<<<<<<<<<<
 *             p_dst.shape[new_ndim] = 1
 *             p_dst.strides[new_ndim] = 0
 */
    __pyx_t_2 = (__pyx_v_index == Py_None);
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":751
 *                 False)
 *         elif index is None:
 *             p_dst.shape[new_ndim] = 1             # <<<<<<<<<<<<<<
 *             p_dst.strides[new_ndim] = 0
 *             p_dst.suboffsets[new_ndim] = -1
 */
      (__pyx_v_p_dst->shape[__pyx_v_new_ndim]) = 1;

      /* "View.MemoryView":752
 *         elif index is None:
 *             p_dst.shape[new_ndim] = 1
 *             p_dst.strides[new_ndim] = 0             # <<<<<<<<<<<<<<
 *             p_dst.suboffsets[new_ndim] = -1
 *             new_ndim += 1
 */
      (__pyx_v_p_dst->strides[__pyx_v_new_ndim]) = 0;

      /* "View.MemoryView":753
 *             p_dst.shape[new_ndim] = 1
 *             p_dst.strides[new_ndim] = 0
 *             p_dst.suboffsets[new_ndim] = -1             # <<<<<<<<<<<<<<
 *             new_ndim += 1
 *         else:
 */
      (__pyx_v_p_dst->suboffsets[__pyx_v_new_ndim]) = -1L;

      /* "View.MemoryView":754
 *             p_dst.strides[new_ndim] = 0
 *             p_dst.suboffsets[new_ndim] = -1
 *             new_ndim += 1             # <<<<<<<<<<<<<<
 *         else:
 *             start = index.start or 0
 */
      __pyx_v_new_ndim = (__pyx_v_new_ndim + 1);

      /* "View.MemoryView":750
 *                 0, 0, 0, # have_{start,stop,step}
 *                 False)
 *         elif index is None:             # <<<<<<<<<<<<<<
 *             p_dst.shape[new_ndim] = 1
 *             p_dst.strides[new_ndim] = 0
 */
      goto __pyx_L6;
    }

    /* "View.MemoryView":756
 *             new_ndim += 1
 *         else:
 *             start = index.start or 0             # <<<<<<<<<<<<<<
 *             stop = index.stop or 0
 *             step = index.step or 0
 */
    /*else*/ {
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 756, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 756, __pyx_L1_error)
      if (!__pyx_t_1) {
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      } else {
        __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 756, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_12;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L7_bool_binop_done;
      }
      __pyx_t_10 = 0;
      __pyx_L7_bool_binop_done:;
      __pyx_v_start = __pyx_t_10;

      /* "View.MemoryView":757
 *         else:
 *             start = index.start or 0
 *             stop = index.stop or 0             # <<<<<<<<<<<<<<
 *             step = index.step or 0
 * 
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 757, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 757, __pyx_L1_error)
      if (!__pyx_t_1) {
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      } else {
        __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 757, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_12;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L9_bool_binop_done;
      }
      __pyx_t_10 = 0;
      __pyx_L9_bool_binop_done:;
      __pyx_v_stop = __pyx_t_10;

      /* "View.MemoryView":758
 *             start = index.start or 0
 *             stop = index.stop or 0
 *             step = index.step or 0             # <<<<<<<<<<<<<<
 * 
 *             have_start = index.start is not None
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 758, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 758, __pyx_L1_error)
      if (!__pyx_t_1) {
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      } else {
        __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 758, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_12;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L11_bool_binop_done;
      }
      __pyx_t_10 = 0;
      __pyx_L11_bool_binop_done:;
      __pyx_v_step = __pyx_t_10;

      /* "View.MemoryView":760
 *             step = index.step or 0
 * 
 *             have_start = index.start is not None             # <<<<<<<<<<<<<<
 *             have_stop = index.stop is not None
 *             have_step = index.step is not None
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 760, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = (__pyx_t_9 != Py_None);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_v_have_start = __pyx_t_1;

      /* "View.MemoryView":761
 * 
 *             have_start = index.start is not None
 *             have_stop = index.stop is not None             # <<<<<<<<<<<<<<
 *             have_step = index.step is not None
 * 
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 761, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = (__pyx_t_9 != Py_None);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_v_have_stop = __pyx_t_1;

      /* "View.MemoryView":762
 *             have_start = index.start is not None
 *             have_stop = index.stop is not None
 *             have_step = index.step is not None             # <<<<<<<<<<<<<<
 * 
 *             slice_memviewslice(
 */
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 762, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = (__pyx_t_9 != Py_None);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_v_have_step = __pyx_t_1;

      /* "View.MemoryView":764
 *             have_step = index.step is not None
 * 
 *             slice_memviewslice(             # <<<<<<<<<<<<<<
 *                 p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim],
 *                 dim, new_ndim, p_suboffset_dim,
 */
      __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_have_start, __pyx_v_have_stop, __pyx_v_have_step, 1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(1, 764, __pyx_L1_error)

      /* "View.MemoryView":770
 *                 have_start, have_stop, have_step,
 *                 True)
 *             new_ndim += 1             # <<<<<<<<<<<<<<
 * 
 *     if isinstance(memview, _memoryviewslice):
 */
      __pyx_v_new_ndim = (__pyx_v_new_ndim + 1);
    }
    __pyx_L6:;

    /* "View.MemoryView":742
 *     cdef bint have_start, have_stop, have_step
 * 
 *     for dim, index in enumerate(indices):             # <<<<<<<<<<<<<<
 *         if PyIndex_Check(index):
 *             slice_memviewslice(
 */
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "View.MemoryView":772
 *             new_ndim += 1
 * 
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         return memoryview_fromslice(dst, new_ndim,
 *                                     memviewsliceobj.to_object_func,
 */
  __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":773
 * 
 *     if isinstance(memview, _memoryviewslice):
 *         return memoryview_fromslice(dst, new_ndim,             # <<<<<<<<<<<<<<
 *                                     memviewsliceobj.to_object_func,
 *                                     memviewsliceobj.to_dtype_func,
 */
    __Pyx_XDECREF(((PyObject *)__pyx_r));

    /* "View.MemoryView":774
 *     if isinstance(memview, _memoryviewslice):
 *         return memoryview_fromslice(dst, new_ndim,
 *                                     memviewsliceobj.to_object_func,             # <<<<<<<<<<<<<<
 *                                     memviewsliceobj.to_dtype_func,
 *                                     memview.dtype_is_object)
 */
    if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError("memviewsliceobj"); __PYX_ERR(1, 774, __pyx_L1_error) }

    /* "View.MemoryView":775
 *         return memoryview_fromslice(dst, new_ndim,
 *                                     memviewsliceobj.to_object_func,
 *                                     memviewsliceobj.to_dtype_func,             # <<<<<<<<<<<<<<
 *                                     memview.dtype_is_object)
 *     else:
 */
    if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError("memviewsliceobj"); __PYX_ERR(1, 775, __pyx_L1_error) }

    /* "View.MemoryView":773
 * 
 *     if isinstance(memview, _memoryviewslice):
 *         return memoryview_fromslice(dst, new_ndim,             # <<<<<<<<<<<<<<
 *                                     memviewsliceobj.to_object_func,
 *                                     memviewsliceobj.to_dtype_func,
 */
    __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, __pyx_v_memviewsliceobj->to_object_func, __pyx_v_memviewsliceobj->to_dtype_func, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(1, 773, __pyx_L1_error)
    __pyx_r = ((struct __pyx_memoryview_obj *)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "View.MemoryView":772
 *             new_ndim += 1
 * 
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         return memoryview_fromslice(dst, new_ndim,
 *                                     memviewsliceobj.to_object_func,
 */
  }

  /* "View.MemoryView":778
 *                                     memview.dtype_is_object)
 *     else:
 *         return memoryview_fromslice(dst, new_ndim, NULL, NULL,             # <<<<<<<<<<<<<<
 *                                     memview.dtype_is_object)
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(((PyObject *)__pyx_r));

    /* "View.MemoryView":779
 *     else:
 *         return memoryview_fromslice(dst, new_ndim, NULL, NULL,
 *                                     memview.dtype_is_object)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, NULL, NULL, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "View.MemoryView":778
 *                                     memview.dtype_is_object)
 *     else:
 *         return memoryview_fromslice(dst, new_ndim, NULL, NULL,             # <<<<<<<<<<<<<<
 *                                     memview.dtype_is_object)
 * 
 */
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(1, 778, __pyx_L1_error)
    __pyx_r = ((struct __pyx_memoryview_obj *)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "View.MemoryView":706
 * 
 * @cname('__pyx_memview_slice')
 * cdef memoryview memview_slice(memoryview memview, object indices):             # <<<<<<<<<<<<<<
 *     cdef int new_ndim = 0, suboffset_dim = -1, dim
 *     cdef bint negative_step
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("View.MemoryView.memview_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memviewsliceobj);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":803
 * 
 * @cname('__pyx_memoryview_slice_memviewslice')
 * cdef int slice_memviewslice(             # <<<<<<<<<<<<<<
 *         __Pyx_memviewslice *dst,
 *         Py_ssize_t shape, Py_ssize_t stride, Py_ssize_t suboffset,
 */

static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, Py_ssize_t __pyx_v_shape, Py_ssize_t __pyx_v_stride, Py_ssize_t __pyx_v_suboffset, int __pyx_v_dim, int __pyx_v_new_ndim, int *__pyx_v_suboffset_dim, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_stop, Py_ssize_t __pyx_v_step, int __pyx_v_have_start, int __pyx_v_have_stop, int __pyx_v_have_step, int __pyx_v_is_slice) {
  Py_ssize_t __pyx_v_new_shape;
  int __pyx_v_negative_step;
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;

  /* "View.MemoryView":823
 *     cdef bint negative_step
 * 
 *     if not is_slice:             # <<<<<<<<<<<<<<
 * 
 *         if start < 0:
 */
  __pyx_t_1 = ((!(__pyx_v_is_slice != 0)) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":825
 *     if not is_slice:
 * 
 *         if start < 0:             # <<<<<<<<<<<<<<
 *             start += shape
 *         if not 0 <= start < shape:
 */
    __pyx_t_1 = ((__pyx_v_start < 0) != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":826
 * 
 *         if start < 0:
 *             start += shape             # <<<<<<<<<<<<<<
 *         if not 0 <= start < shape:
 *             _err_dim(IndexError, "Index out of bounds (axis %d)", dim)
 */
      __pyx_v_start = (__pyx_v_start + __pyx_v_shape);

      /* "View.MemoryView":825
 *     if not is_slice:
 * 
 *         if start < 0:             # <<<<<<<<<<<<<<
 *             start += shape
 *         if not 0 <= start < shape:
 */
    }

    /* "View.MemoryView":827
 *         if start < 0:
 *             start += shape
 *         if not 0 <= start < shape:             # <<<<<<<<<<<<<<
 *             _err_dim(IndexError, "Index out of bounds (axis %d)", dim)
 *     else:
 */
    __pyx_t_1 = (0 <= __pyx_v_start);
    if (__pyx_t_1) {
      __pyx_t_1 = (__pyx_v_start < __pyx_v_shape);
    }
    __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":828
 *             start += shape
 *         if not 0 <= start < shape:
 *             _err_dim(IndexError, "Index out of bounds (axis %d)", dim)             # <<<<<<<<<<<<<<
 *     else:
 * 
 */
      __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((char *)"Index out of bounds (axis %d)"), __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 828, __pyx_L1_error)

      /* "View.MemoryView":827
 *         if start < 0:
 *             start += shape
 *         if not 0 <= start < shape:             # <<<<<<<<<<<<<<
 *             _err_dim(IndexError, "Index out of bounds (axis %d)", dim)
 *     else:
 */
    }

    /* "View.MemoryView":823
 *     cdef bint negative_step
 * 
 *     if not is_slice:             # <<<<<<<<<<<<<<
 * 
 *         if start < 0:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":831
 *     else:
 * 
 *         negative_step = have_step != 0 and step < 0             # <<<<<<<<<<<<<<
 * 
 *         if have_step and step == 0:
 */
  /*else*/ {
    __pyx_t_1 = ((__pyx_v_have_step != 0) != 0);
    if (__pyx_t_1) {
    } else {
      __pyx_t_2 = __pyx_t_1;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_1 = ((__pyx_v_step < 0) != 0);
    __pyx_t_2 = __pyx_t_1;
    __pyx_L6_bool_binop_done:;
    __pyx_v_negative_step = __pyx_t_2;

    /* "View.MemoryView":833
 *         negative_step = have_step != 0 and step < 0
 * 
 *         if have_step and step == 0:             # <<<<<<<<<<<<<<
 *             _err_dim(ValueError, "Step may not be zero (axis %d)", dim)
 * 
 */
    __pyx_t_1 = (__pyx_v_have_step != 0);
    if (__pyx_t_1) {
    } else {
      __pyx_t_2 = __pyx_t_1;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_1 = ((__pyx_v_step == 0) != 0);
    __pyx_t_2 = __pyx_t_1;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_2) {

      /* "View.MemoryView":834
 * 
 *         if have_step and step == 0:
 *             _err_dim(ValueError, "Step may not be zero (axis %d)", dim)             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((char *)"Step may not be zero (axis %d)"), __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 834, __pyx_L1_error)

      /* "View.MemoryView":833
 *         negative_step = have_step != 0 and step < 0
 * 
 *         if have_step and step == 0:             # <<<<<<<<<<<<<<
 *             _err_dim(ValueError, "Step may not be zero (axis %d)", dim)
 * 
 */
    }

    /* "View.MemoryView":837
 * 
 * 
 *         if have_start:             # <<<<<<<<<<<<<<
 *             if start < 0:
 *                 start += shape
 */
    __pyx_t_2 = (__pyx_v_have_start != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":838
 * 
 *         if have_start:
 *             if start < 0:             # <<<<<<<<<<<<<<
 *                 start += shape
 *                 if start < 0:
 */
      __pyx_t_2 = ((__pyx_v_start < 0) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":839
 *         if have_start:
 *             if start < 0:
 *                 start += shape             # <<<<<<<<<<<<<<
 *                 if start < 0:
 *                     start = 0
 */
        __pyx_v_start = (__pyx_v_start + __pyx_v_shape);

        /* "View.MemoryView":840
 *             if start < 0:
 *                 start += shape
 *                 if start < 0:             # <<<<<<<<<<<<<<
 *                     start = 0
 *             elif start >= shape:
 */
        __pyx_t_2 = ((__pyx_v_start < 0) != 0);
        if (__pyx_t_2) {

          /* "View.MemoryView":841
 *                 start += shape
 *                 if start < 0:
 *                     start = 0             # <<<<<<<<<<<<<<
 *             elif start >= shape:
 *                 if negative_step:
 */
          __pyx_v_start = 0;

          /* "View.MemoryView":840
 *             if start < 0:
 *                 start += shape
 *                 if start < 0:             # <<<<<<<<<<<<<<
 *                     start = 0
 *             elif start >= shape:
 */
        }

        /* "View.MemoryView":838
 * 
 *         if have_start:
 *             if start < 0:             # <<<<<<<<<<<<<<
 *                 start += shape
 *                 if start < 0:
 */
        goto __pyx_L12;
      }

      /* "View.MemoryView":842
 *                 if start < 0:
 *                     start = 0
 *             elif start >= shape:             # <<<<<<<<<<<<<<
 *                 if negative_step:
 *                     start = shape - 1
 */
      __pyx_t_2 = ((__pyx_v_start >= __pyx_v_shape) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":843
 *                     start = 0
 *             elif start >= shape:
 *                 if negative_step:             # <<<<<<<<<<<<<<
 *                     start = shape - 1
 *                 else:
 */
        __pyx_t_2 = (__pyx_v_negative_step != 0);
        if (__pyx_t_2) {

          /* "View.MemoryView":844
 *             elif start >= shape:
 *                 if negative_step:
 *                     start = shape - 1             # <<<<<<<<<<<<<<
 *                 else:
 *                     start = shape
 */
          __pyx_v_start = (__pyx_v_shape - 1);

          /* "View.MemoryView":843
 *                     start = 0
 *             elif start >= shape:
 *                 if negative_step:             # <<<<<<<<<<<<<<
 *                     start = shape - 1
 *                 else:
 */
          goto __pyx_L14;
        }

        /* "View.MemoryView":846
 *                     start = shape - 1
 *                 else:
 *                     start = shape             # <<<<<<<<<<<<<<
 *         else:
 *             if negative_step:
 */
        /*else*/ {
          __pyx_v_start = __pyx_v_shape;
        }
        __pyx_L14:;

        /* "View.MemoryView":842
 *                 if start < 0:
 *                     start = 0
 *             elif start >= shape:             # <<<<<<<<<<<<<<
 *                 if negative_step:
 *                     start = shape - 1
 */
      }
      __pyx_L12:;

      /* "View.MemoryView":837
 * 
 * 
 *         if have_start:             # <<<<<<<<<<<<<<
 *             if start < 0:
 *                 start += shape
 */
      goto __pyx_L11;
    }

    /* "View.MemoryView":848
 *                     start = shape
 *         else:
 *             if negative_step:             # <<<<<<<<<<<<<<
 *                 start = shape - 1
 *             else:
 */
    /*else*/ {
      __pyx_t_2 = (__pyx_v_negative_step != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":849
 *         else:
 *             if negative_step:
 *                 start = shape - 1             # <<<<<<<<<<<<<<
 *             else:
 *                 start = 0
 */
        __pyx_v_start = (__pyx_v_shape - 1);

        /* "View.MemoryView":848
 *                     start = shape
 *         else:
 *             if negative_step:             # <<<<<<<<<<<<<<
 *                 start = shape - 1
 *             else:
 */
        goto __pyx_L15;
      }

      /* "View.MemoryView":851
 *                 start = shape - 1
 *             else:
 *                 start = 0             # <<<<<<<<<<<<<<
 * 
 *         if have_stop:
 */
      /*else*/ {
        __pyx_v_start = 0;
      }
      __pyx_L15:;
    }
    __pyx_L11:;

    /* "View.MemoryView":853
 *                 start = 0
 * 
 *         if have_stop:             # <<<<<<<<<<<<<<
 *             if stop < 0:
 *                 stop += shape
 */
    __pyx_t_2 = (__pyx_v_have_stop != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":854
 * 
 *         if have_stop:
 *             if stop < 0:             # <<<<<<<<<<<<<<
 *                 stop += shape
 *                 if stop < 0:
 */
      __pyx_t_2 = ((__pyx_v_stop < 0) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":855
 *         if have_stop:
 *             if stop < 0:
 *                 stop += shape             # <<<<<<<<<<<<<<
 *                 if stop < 0:
 *                     stop = 0
 */
        __pyx_v_stop = (__pyx_v_stop + __pyx_v_shape);

        /* "View.MemoryView":856
 *             if stop < 0:
 *                 stop += shape
 *                 if stop < 0:             # <<<<<<<<<<<<<<
 *                     stop = 0
 *             elif stop > shape:
 */
        __pyx_t_2 = ((__pyx_v_stop < 0) != 0);
        if (__pyx_t_2) {

          /* "View.MemoryView":857
 *                 stop += shape
 *                 if stop < 0:
 *                     stop = 0             # <<<<<<<<<<<<<<
 *             elif stop > shape:
 *                 stop = shape
 */
          __pyx_v_stop = 0;

          /* "View.MemoryView":856
 *             if stop < 0:
 *                 stop += shape
 *                 if stop < 0:             # <<<<<<<<<<<<<<
 *                     stop = 0
 *             elif stop > shape:
 */
        }

        /* "View.MemoryView":854
 * 
 *         if have_stop:
 *             if stop < 0:             # <<<<<<<<<<<<<<
 *                 stop += shape
 *                 if stop < 0:
 */
        goto __pyx_L17;
      }

      /* "View.MemoryView":858
 *                 if stop < 0:
 *                     stop = 0
 *             elif stop > shape:             # <<<<<<<<<<<<<<
 *                 stop = shape
 *         else:
 */
      __pyx_t_2 = ((__pyx_v_stop > __pyx_v_shape) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":859
 *                     stop = 0
 *             elif stop > shape:
 *                 stop = shape             # <<<<<<<<<<<<<<
 *         else:
 *             if negative_step:
 */
        __pyx_v_stop = __pyx_v_shape;

        /* "View.MemoryView":858
 *                 if stop < 0:
 *                     stop = 0
 *             elif stop > shape:             # <<<<<<<<<<<<<<
 *                 stop = shape
 *         else:
 */
      }
      __pyx_L17:;

      /* "View.MemoryView":853
 *                 start = 0
 * 
 *         if have_stop:             # <<<<<<<<<<<<<<
 *             if stop < 0:
 *                 stop += shape
 */
      goto __pyx_L16;
    }

    /* "View.MemoryView":861
 *                 stop = shape
 *         else:
 *             if negative_step:             # <<<<<<<<<<<<<<
 *                 stop = -1
 *             else:
 */
    /*else*/ {
      __pyx_t_2 = (__pyx_v_negative_step != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":862
 *         else:
 *             if negative_step:
 *                 stop = -1             # <<<<<<<<<<<<<<
 *             else:
 *                 stop = shape
 */
        __pyx_v_stop = -1L;

        /* "View.MemoryView":861
 *                 stop = shape
 *         else:
 *             if negative_step:             # <<<<<<<<<<<<<<
 *                 stop = -1
 *             else:
 */
        goto __pyx_L19;
      }

      /* "View.MemoryView":864
 *                 stop = -1
 *             else:
 *                 stop = shape             # <<<<<<<<<<<<<<
 * 
 *         if not have_step:
 */
      /*else*/ {
        __pyx_v_stop = __pyx_v_shape;
      }
      __pyx_L19:;
    }
    __pyx_L16:;

    /* "View.MemoryView":866
 *                 stop = shape
 * 
 *         if not have_step:             # <<<<<<<<<<<<<<
 *             step = 1
 * 
 */
    __pyx_t_2 = ((!(__pyx_v_have_step != 0)) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":867
 * 
 *         if not have_step:
 *             step = 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __pyx_v_step = 1;

      /* "View.MemoryView":866
 *                 stop = shape
 * 
 *         if not have_step:             # <<<<<<<<<<<<<<
 *             step = 1
 * 
 */
    }

    /* "View.MemoryView":871
 * 
 *         with cython.cdivision(True):
 *             new_shape = (stop - start) // step             # <<<<<<<<<<<<<<
 * 
 *             if (stop - start) - step * new_shape:
 */
    __pyx_v_new_shape = ((__pyx_v_stop - __pyx_v_start) / __pyx_v_step);

    /* "View.MemoryView":873
 *             new_shape = (stop - start) // step
 * 
 *             if (stop - start) - step * new_shape:             # <<<<<<<<<<<<<<
 *                 new_shape += 1
 * 
 */
    __pyx_t_2 = (((__pyx_v_stop - __pyx_v_start) - (__pyx_v_step * __pyx_v_new_shape)) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":874
 * 
 *             if (stop - start) - step * new_shape:
 *                 new_shape += 1             # <<<<<<<<<<<<<<
 * 
 *         if new_shape < 0:
 */
      __pyx_v_new_shape = (__pyx_v_new_shape + 1);

      /* "View.MemoryView":873
 *             new_shape = (stop - start) // step
 * 
 *             if (stop - start) - step * new_shape:             # <<<<<<<<<<<<<<
 *                 new_shape += 1
 * 
 */
    }

    /* "View.MemoryView":876
 *                 new_shape += 1
 * 
 *         if new_shape < 0:             # <<<<<<<<<<<<<<
 *             new_shape = 0
 * 
 */
    __pyx_t_2 = ((__pyx_v_new_shape < 0) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":877
 * 
 *         if new_shape < 0:
 *             new_shape = 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __pyx_v_new_shape = 0;

      /* "View.MemoryView":876
 *                 new_shape += 1
 * 
 *         if new_shape < 0:             # <<<<<<<<<<<<<<
 *             new_shape = 0
 * 
 */
    }

    /* "View.MemoryView":880
 * 
 * 
 *         dst.strides[new_ndim] = stride * step             # <<<<<<<<<<<<<<
 *         dst.shape[new_ndim] = new_shape
 *         dst.suboffsets[new_ndim] = suboffset
 */
    (__pyx_v_dst->strides[__pyx_v_new_ndim]) = (__pyx_v_stride * __pyx_v_step);

    /* "View.MemoryView":881
 * 
 *         dst.strides[new_ndim] = stride * step
 *         dst.shape[new_ndim] = new_shape             # <<<<<<<<<<<<<<
 *         dst.suboffsets[new_ndim] = suboffset
 * 
 */
    (__pyx_v_dst->shape[__pyx_v_new_ndim]) = __pyx_v_new_shape;

    /* "View.MemoryView":882
 *         dst.strides[new_ndim] = stride * step
 *         dst.shape[new_ndim] = new_shape
 *         dst.suboffsets[new_ndim] = suboffset             # <<<<<<<<<<<<<<
 * 
 * 
 */
    (__pyx_v_dst->suboffsets[__pyx_v_new_ndim]) = __pyx_v_suboffset;
  }
  __pyx_L3:;

  /* "View.MemoryView":885
 * 
 * 
 *     if suboffset_dim[0] < 0:             # <<<<<<<<<<<<<<
 *         dst.data += start * stride
 *     else:
 */
  __pyx_t_2 = (((__pyx_v_suboffset_dim[0]) < 0) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":886
 * 
 *     if suboffset_dim[0] < 0:
 *         dst.data += start * stride             # <<<<<<<<<<<<<<
 *     else:
 *         dst.suboffsets[suboffset_dim[0]] += start * stride
 */
    __pyx_v_dst->data = (__pyx_v_dst->data + (__pyx_v_start * __pyx_v_stride));

    /* "View.MemoryView":885
 * 
 * 
 *     if suboffset_dim[0] < 0:             # <<<<<<<<<<<<<<
 *         dst.data += start * stride
 *     else:
 */
    goto __pyx_L23;
  }

  /* "View.MemoryView":888
 *         dst.data += start * stride
 *     else:
 *         dst.suboffsets[suboffset_dim[0]] += start * stride             # <<<<<<<<<<<<<<
 * 
 *     if suboffset >= 0:
 */
  /*else*/ {
    __pyx_t_3 = (__pyx_v_suboffset_dim[0]);
    (__pyx_v_dst->suboffsets[__pyx_t_3]) = ((__pyx_v_dst->suboffsets[__pyx_t_3]) + (__pyx_v_start * __pyx_v_stride));
  }
  __pyx_L23:;

  /* "View.MemoryView":890
 *         dst.suboffsets[suboffset_dim[0]] += start * stride
 * 
 *     if suboffset >= 0:             # <<<<<<<<<<<<<<
 *         if not is_slice:
 *             if new_ndim == 0:
 */
  __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":891
 * 
 *     if suboffset >= 0:
 *         if not is_slice:             # <<<<<<<<<<<<<<
 *             if new_ndim == 0:
 *                 dst.data = (<char **> dst.data)[0] + suboffset
 */
    __pyx_t_2 = ((!(__pyx_v_is_slice != 0)) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":892
 *     if suboffset >= 0:
 *         if not is_slice:
 *             if new_ndim == 0:             # <<<<<<<<<<<<<<
 *                 dst.data = (<char **> dst.data)[0] + suboffset
 *             else:
 */
      __pyx_t_2 = ((__pyx_v_new_ndim == 0) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":893
 *         if not is_slice:
 *             if new_ndim == 0:
 *                 dst.data = (<char **> dst.data)[0] + suboffset             # <<<<<<<<<<<<<<
 *             else:
 *                 _err_dim(IndexError, "All dimensions preceding dimension %d "
 */
        __pyx_v_dst->data = ((((char **)__pyx_v_dst->data)[0]) + __pyx_v_suboffset);

        /* "View.MemoryView":892
 *     if suboffset >= 0:
 *         if not is_slice:
 *             if new_ndim == 0:             # <<<<<<<<<<<<<<
 *                 dst.data = (<char **> dst.data)[0] + suboffset
 *             else:
 */
        goto __pyx_L26;
      }

      /* "View.MemoryView":895
 *                 dst.data = (<char **> dst.data)[0] + suboffset
 *             else:
 *                 _err_dim(IndexError, "All dimensions preceding dimension %d "             # <<<<<<<<<<<<<<
 *                                      "must be indexed and not sliced", dim)
 *         else:
 */
      /*else*/ {

        /* "View.MemoryView":896
 *             else:
 *                 _err_dim(IndexError, "All dimensions preceding dimension %d "
 *                                      "must be indexed and not sliced", dim)             # <<<<<<<<<<<<<<
 *         else:
 *             suboffset_dim[0] = new_ndim
 */
        __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((char *)"All dimensions preceding dimension %d must be indexed and not sliced"), __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 895, __pyx_L1_error)
      }
      __pyx_L26:;

      /* "View.MemoryView":891
 * 
 *     if suboffset >= 0:
 *         if not is_slice:             # <<<<<<<<<<<<<<
 *             if new_ndim == 0:
 *                 dst.data = (<char **> dst.data)[0] + suboffset
 */
      goto __pyx_L25;
    }

    /* "View.MemoryView":898
 *                                      "must be indexed and not sliced", dim)
 *         else:
 *             suboffset_dim[0] = new_ndim             # <<<<<<<<<<<<<<
 * 
 *     return 0
 */
    /*else*/ {
      (__pyx_v_suboffset_dim[0]) = __pyx_v_new_ndim;
    }
    __pyx_L25:;

    /* "View.MemoryView":890
 *         dst.suboffsets[suboffset_dim[0]] += start * stride
 * 
 *     if suboffset >= 0:             # <<<<<<<<<<<<<<
 *         if not is_slice:
 *             if new_ndim == 0:
 */
  }

  /* "View.MemoryView":900
 *             suboffset_dim[0] = new_ndim
 * 
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = 0;
  goto __pyx_L0;

  /* "View.MemoryView":803
 * 
 * @cname('__pyx_memoryview_slice_memviewslice')
 * cdef int slice_memviewslice(             # <<<<<<<<<<<<<<
 *         __Pyx_memviewslice *dst,
 *         Py_ssize_t shape, Py_ssize_t stride, Py_ssize_t suboffset,
 */

  /* function exit code */
  __pyx_L1_error:;
  {
    #ifdef WITH_THREAD
    PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
    #endif
    __Pyx_AddTraceback("View.MemoryView.slice_memviewslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
    #ifdef WITH_THREAD
    __Pyx_PyGILState_Release(__pyx_gilstate_save);
    #endif
  }
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":906
 * 
 * @cname('__pyx_pybuffer_index')
 * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index,             # <<<<<<<<<<<<<<
 *                           Py_ssize_t dim) except NULL:
 *     cdef Py_ssize_t shape, stride, suboffset = -1
 */

static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, Py_ssize_t __pyx_v_index, Py_ssize_t __pyx_v_dim) {
  Py_ssize_t __pyx_v_shape;
  Py_ssize_t __pyx_v_stride;
  Py_ssize_t __pyx_v_suboffset;
  Py_ssize_t __pyx_v_itemsize;
  char *__pyx_v_resultp;
  char *__pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("pybuffer_index", 0);

  /* "View.MemoryView":908
 * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index,
 *                           Py_ssize_t dim) except NULL:
 *     cdef Py_ssize_t shape, stride, suboffset = -1             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t itemsize = view.itemsize
 *     cdef char *resultp
 */
  __pyx_v_suboffset = -1L;

  /* "View.MemoryView":909
 *                           Py_ssize_t dim) except NULL:
 *     cdef Py_ssize_t shape, stride, suboffset = -1
 *     cdef Py_ssize_t itemsize = view.itemsize             # <<<<<<<<<<<<<<
 *     cdef char *resultp
 * 
 */
  __pyx_t_1 = __pyx_v_view->itemsize;
  __pyx_v_itemsize = __pyx_t_1;

  /* "View.MemoryView":912
 *     cdef char *resultp
 * 
 *     if view.ndim == 0:             # <<<<<<<<<<<<<<
 *         shape = view.len / itemsize
 *         stride = itemsize
 */
  __pyx_t_2 = ((__pyx_v_view->ndim == 0) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":913
 * 
 *     if view.ndim == 0:
 *         shape = view.len / itemsize             # <<<<<<<<<<<<<<
 *         stride = itemsize
 *     else:
 */
    if (unlikely(__pyx_v_itemsize == 0)) {
      PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero");
      __PYX_ERR(1, 913, __pyx_L1_error)
    }
    else if (sizeof(Py_ssize_t) == sizeof(long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1)  && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_view->len))) {
      PyErr_SetString(PyExc_OverflowError, "value too large to perform division");
      __PYX_ERR(1, 913, __pyx_L1_error)
    }
    __pyx_v_shape = __Pyx_div_Py_ssize_t(__pyx_v_view->len, __pyx_v_itemsize);

    /* "View.MemoryView":914
 *     if view.ndim == 0:
 *         shape = view.len / itemsize
 *         stride = itemsize             # <<<<<<<<<<<<<<
 *     else:
 *         shape = view.shape[dim]
 */
    __pyx_v_stride = __pyx_v_itemsize;

    /* "View.MemoryView":912
 *     cdef char *resultp
 * 
 *     if view.ndim == 0:             # <<<<<<<<<<<<<<
 *         shape = view.len / itemsize
 *         stride = itemsize
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":916
 *         stride = itemsize
 *     else:
 *         shape = view.shape[dim]             # <<<<<<<<<<<<<<
 *         stride = view.strides[dim]
 *         if view.suboffsets != NULL:
 */
  /*else*/ {
    __pyx_v_shape = (__pyx_v_view->shape[__pyx_v_dim]);

    /* "View.MemoryView":917
 *     else:
 *         shape = view.shape[dim]
 *         stride = view.strides[dim]             # <<<<<<<<<<<<<<
 *         if view.suboffsets != NULL:
 *             suboffset = view.suboffsets[dim]
 */
    __pyx_v_stride = (__pyx_v_view->strides[__pyx_v_dim]);

    /* "View.MemoryView":918
 *         shape = view.shape[dim]
 *         stride = view.strides[dim]
 *         if view.suboffsets != NULL:             # <<<<<<<<<<<<<<
 *             suboffset = view.suboffsets[dim]
 * 
 */
    __pyx_t_2 = ((__pyx_v_view->suboffsets != NULL) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":919
 *         stride = view.strides[dim]
 *         if view.suboffsets != NULL:
 *             suboffset = view.suboffsets[dim]             # <<<<<<<<<<<<<<
 * 
 *     if index < 0:
 */
      __pyx_v_suboffset = (__pyx_v_view->suboffsets[__pyx_v_dim]);

      /* "View.MemoryView":918
 *         shape = view.shape[dim]
 *         stride = view.strides[dim]
 *         if view.suboffsets != NULL:             # <<<<<<<<<<<<<<
 *             suboffset = view.suboffsets[dim]
 * 
 */
    }
  }
  __pyx_L3:;

  /* "View.MemoryView":921
 *             suboffset = view.suboffsets[dim]
 * 
 *     if index < 0:             # <<<<<<<<<<<<<<
 *         index += view.shape[dim]
 *         if index < 0:
 */
  __pyx_t_2 = ((__pyx_v_index < 0) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":922
 * 
 *     if index < 0:
 *         index += view.shape[dim]             # <<<<<<<<<<<<<<
 *         if index < 0:
 *             raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 */
    __pyx_v_index = (__pyx_v_index + (__pyx_v_view->shape[__pyx_v_dim]));

    /* "View.MemoryView":923
 *     if index < 0:
 *         index += view.shape[dim]
 *         if index < 0:             # <<<<<<<<<<<<<<
 *             raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 */
    __pyx_t_2 = ((__pyx_v_index < 0) != 0);
    if (unlikely(__pyx_t_2)) {

      /* "View.MemoryView":924
 *         index += view.shape[dim]
 *         if index < 0:
 *             raise IndexError("Out of bounds on buffer access (axis %d)" % dim)             # <<<<<<<<<<<<<<
 * 
 *     if index >= shape:
 */
      __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 924, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 924, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 924, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(1, 924, __pyx_L1_error)

      /* "View.MemoryView":923
 *     if index < 0:
 *         index += view.shape[dim]
 *         if index < 0:             # <<<<<<<<<<<<<<
 *             raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 */
    }

    /* "View.MemoryView":921
 *             suboffset = view.suboffsets[dim]
 * 
 *     if index < 0:             # <<<<<<<<<<<<<<
 *         index += view.shape[dim]
 *         if index < 0:
 */
  }

  /* "View.MemoryView":926
 *             raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 *     if index >= shape:             # <<<<<<<<<<<<<<
 *         raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 */
  __pyx_t_2 = ((__pyx_v_index >= __pyx_v_shape) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "View.MemoryView":927
 * 
 *     if index >= shape:
 *         raise IndexError("Out of bounds on buffer access (axis %d)" % dim)             # <<<<<<<<<<<<<<
 * 
 *     resultp = bufp + index * stride
 */
    __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 927, __pyx_L1_error)

    /* "View.MemoryView":926
 *             raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 *     if index >= shape:             # <<<<<<<<<<<<<<
 *         raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 */
  }

  /* "View.MemoryView":929
 *         raise IndexError("Out of bounds on buffer access (axis %d)" % dim)
 * 
 *     resultp = bufp + index * stride             # <<<<<<<<<<<<<<
 *     if suboffset >= 0:
 *         resultp = (<char **> resultp)[0] + suboffset
 */
  __pyx_v_resultp = (__pyx_v_bufp + (__pyx_v_index * __pyx_v_stride));

  /* "View.MemoryView":930
 * 
 *     resultp = bufp + index * stride
 *     if suboffset >= 0:             # <<<<<<<<<<<<<<
 *         resultp = (<char **> resultp)[0] + suboffset
 * 
 */
  __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":931
 *     resultp = bufp + index * stride
 *     if suboffset >= 0:
 *         resultp = (<char **> resultp)[0] + suboffset             # <<<<<<<<<<<<<<
 * 
 *     return resultp
 */
    __pyx_v_resultp = ((((char **)__pyx_v_resultp)[0]) + __pyx_v_suboffset);

    /* "View.MemoryView":930
 * 
 *     resultp = bufp + index * stride
 *     if suboffset >= 0:             # <<<<<<<<<<<<<<
 *         resultp = (<char **> resultp)[0] + suboffset
 * 
 */
  }

  /* "View.MemoryView":933
 *         resultp = (<char **> resultp)[0] + suboffset
 * 
 *     return resultp             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_resultp;
  goto __pyx_L0;

  /* "View.MemoryView":906
 * 
 * @cname('__pyx_pybuffer_index')
 * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index,             # <<<<<<<<<<<<<<
 *                           Py_ssize_t dim) except NULL:
 *     cdef Py_ssize_t shape, stride, suboffset = -1
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("View.MemoryView.pybuffer_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":939
 * 
 * @cname('__pyx_memslice_transpose')
 * cdef int transpose_memslice(__Pyx_memviewslice *memslice) nogil except 0:             # <<<<<<<<<<<<<<
 *     cdef int ndim = memslice.memview.view.ndim
 * 
 */

static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) {
  int __pyx_v_ndim;
  Py_ssize_t *__pyx_v_shape;
  Py_ssize_t *__pyx_v_strides;
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_r;
  int __pyx_t_1;
  Py_ssize_t *__pyx_t_2;
  long __pyx_t_3;
  long __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;

  /* "View.MemoryView":940
 * @cname('__pyx_memslice_transpose')
 * cdef int transpose_memslice(__Pyx_memviewslice *memslice) nogil except 0:
 *     cdef int ndim = memslice.memview.view.ndim             # <<<<<<<<<<<<<<
 * 
 *     cdef Py_ssize_t *shape = memslice.shape
 */
  __pyx_t_1 = __pyx_v_memslice->memview->view.ndim;
  __pyx_v_ndim = __pyx_t_1;

  /* "View.MemoryView":942
 *     cdef int ndim = memslice.memview.view.ndim
 * 
 *     cdef Py_ssize_t *shape = memslice.shape             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t *strides = memslice.strides
 * 
 */
  __pyx_t_2 = __pyx_v_memslice->shape;
  __pyx_v_shape = __pyx_t_2;

  /* "View.MemoryView":943
 * 
 *     cdef Py_ssize_t *shape = memslice.shape
 *     cdef Py_ssize_t *strides = memslice.strides             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = __pyx_v_memslice->strides;
  __pyx_v_strides = __pyx_t_2;

  /* "View.MemoryView":947
 * 
 *     cdef int i, j
 *     for i in range(ndim / 2):             # <<<<<<<<<<<<<<
 *         j = ndim - 1 - i
 *         strides[i], strides[j] = strides[j], strides[i]
 */
  __pyx_t_3 = __Pyx_div_long(__pyx_v_ndim, 2);
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_1 = 0; __pyx_t_1 < __pyx_t_4; __pyx_t_1+=1) {
    __pyx_v_i = __pyx_t_1;

    /* "View.MemoryView":948
 *     cdef int i, j
 *     for i in range(ndim / 2):
 *         j = ndim - 1 - i             # <<<<<<<<<<<<<<
 *         strides[i], strides[j] = strides[j], strides[i]
 *         shape[i], shape[j] = shape[j], shape[i]
 */
    __pyx_v_j = ((__pyx_v_ndim - 1) - __pyx_v_i);

    /* "View.MemoryView":949
 *     for i in range(ndim / 2):
 *         j = ndim - 1 - i
 *         strides[i], strides[j] = strides[j], strides[i]             # <<<<<<<<<<<<<<
 *         shape[i], shape[j] = shape[j], shape[i]
 * 
 */
    __pyx_t_5 = (__pyx_v_strides[__pyx_v_j]);
    __pyx_t_6 = (__pyx_v_strides[__pyx_v_i]);
    (__pyx_v_strides[__pyx_v_i]) = __pyx_t_5;
    (__pyx_v_strides[__pyx_v_j]) = __pyx_t_6;

    /* "View.MemoryView":950
 *         j = ndim - 1 - i
 *         strides[i], strides[j] = strides[j], strides[i]
 *         shape[i], shape[j] = shape[j], shape[i]             # <<<<<<<<<<<<<<
 * 
 *         if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0:
 */
    __pyx_t_6 = (__pyx_v_shape[__pyx_v_j]);
    __pyx_t_5 = (__pyx_v_shape[__pyx_v_i]);
    (__pyx_v_shape[__pyx_v_i]) = __pyx_t_6;
    (__pyx_v_shape[__pyx_v_j]) = __pyx_t_5;

    /* "View.MemoryView":952
 *         shape[i], shape[j] = shape[j], shape[i]
 * 
 *         if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0:             # <<<<<<<<<<<<<<
 *             _err(ValueError, "Cannot transpose memoryview with indirect dimensions")
 * 
 */
    __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_i]) >= 0) != 0);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_j]) >= 0) != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_7) {

      /* "View.MemoryView":953
 * 
 *         if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0:
 *             _err(ValueError, "Cannot transpose memoryview with indirect dimensions")             # <<<<<<<<<<<<<<
 * 
 *     return 1
 */
      __pyx_t_9 = __pyx_memoryview_err(__pyx_builtin_ValueError, ((char *)"Cannot transpose memoryview with indirect dimensions")); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 953, __pyx_L1_error)

      /* "View.MemoryView":952
 *         shape[i], shape[j] = shape[j], shape[i]
 * 
 *         if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0:             # <<<<<<<<<<<<<<
 *             _err(ValueError, "Cannot transpose memoryview with indirect dimensions")
 * 
 */
    }
  }

  /* "View.MemoryView":955
 *             _err(ValueError, "Cannot transpose memoryview with indirect dimensions")
 * 
 *     return 1             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = 1;
  goto __pyx_L0;

  /* "View.MemoryView":939
 * 
 * @cname('__pyx_memslice_transpose')
 * cdef int transpose_memslice(__Pyx_memviewslice *memslice) nogil except 0:             # <<<<<<<<<<<<<<
 *     cdef int ndim = memslice.memview.view.ndim
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  {
    #ifdef WITH_THREAD
    PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
    #endif
    __Pyx_AddTraceback("View.MemoryView.transpose_memslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
    #ifdef WITH_THREAD
    __Pyx_PyGILState_Release(__pyx_gilstate_save);
    #endif
  }
  __pyx_r = 0;
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":972
 *     cdef int (*to_dtype_func)(char *, object) except 0
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         __PYX_XDEC_MEMVIEW(&self.from_slice, 1)
 * 
 */

/* Python wrapper */
static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "View.MemoryView":973
 * 
 *     def __dealloc__(self):
 *         __PYX_XDEC_MEMVIEW(&self.from_slice, 1)             # <<<<<<<<<<<<<<
 * 
 *     cdef convert_item_to_object(self, char *itemp):
 */
  __PYX_XDEC_MEMVIEW((&__pyx_v_self->from_slice), 1);

  /* "View.MemoryView":972
 *     cdef int (*to_dtype_func)(char *, object) except 0
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         __PYX_XDEC_MEMVIEW(&self.from_slice, 1)
 * 
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "View.MemoryView":975
 *         __PYX_XDEC_MEMVIEW(&self.from_slice, 1)
 * 
 *     cdef convert_item_to_object(self, char *itemp):             # <<<<<<<<<<<<<<
 *         if self.to_object_func != NULL:
 *             return self.to_object_func(itemp)
 */

static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("convert_item_to_object", 0);

  /* "View.MemoryView":976
 * 
 *     cdef convert_item_to_object(self, char *itemp):
 *         if self.to_object_func != NULL:             # <<<<<<<<<<<<<<
 *             return self.to_object_func(itemp)
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_self->to_object_func != NULL) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":977
 *     cdef convert_item_to_object(self, char *itemp):
 *         if self.to_object_func != NULL:
 *             return self.to_object_func(itemp)             # <<<<<<<<<<<<<<
 *         else:
 *             return memoryview.convert_item_to_object(self, itemp)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_v_self->to_object_func(__pyx_v_itemp); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 977, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "View.MemoryView":976
 * 
 *     cdef convert_item_to_object(self, char *itemp):
 *         if self.to_object_func != NULL:             # <<<<<<<<<<<<<<
 *             return self.to_object_func(itemp)
 *         else:
 */
  }

  /* "View.MemoryView":979
 *             return self.to_object_func(itemp)
 *         else:
 *             return memoryview.convert_item_to_object(self, itemp)             # <<<<<<<<<<<<<<
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_memoryview_convert_item_to_object(((struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 979, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "View.MemoryView":975
 *         __PYX_XDEC_MEMVIEW(&self.from_slice, 1)
 * 
 *     cdef convert_item_to_object(self, char *itemp):             # <<<<<<<<<<<<<<
 *         if self.to_object_func != NULL:
 *             return self.to_object_func(itemp)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("View.MemoryView._memoryviewslice.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":981
 *             return memoryview.convert_item_to_object(self, itemp)
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):             # <<<<<<<<<<<<<<
 *         if self.to_dtype_func != NULL:
 *             self.to_dtype_func(itemp, value)
 */

static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("assign_item_from_object", 0);

  /* "View.MemoryView":982
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):
 *         if self.to_dtype_func != NULL:             # <<<<<<<<<<<<<<
 *             self.to_dtype_func(itemp, value)
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_self->to_dtype_func != NULL) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":983
 *     cdef assign_item_from_object(self, char *itemp, object value):
 *         if self.to_dtype_func != NULL:
 *             self.to_dtype_func(itemp, value)             # <<<<<<<<<<<<<<
 *         else:
 *             memoryview.assign_item_from_object(self, itemp, value)
 */
    __pyx_t_2 = __pyx_v_self->to_dtype_func(__pyx_v_itemp, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(1, 983, __pyx_L1_error)

    /* "View.MemoryView":982
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):
 *         if self.to_dtype_func != NULL:             # <<<<<<<<<<<<<<
 *             self.to_dtype_func(itemp, value)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":985
 *             self.to_dtype_func(itemp, value)
 *         else:
 *             memoryview.assign_item_from_object(self, itemp, value)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  /*else*/ {
    __pyx_t_3 = __pyx_memoryview_assign_item_from_object(((struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 985, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "View.MemoryView":981
 *             return memoryview.convert_item_to_object(self, itemp)
 * 
 *     cdef assign_item_from_object(self, char *itemp, object value):             # <<<<<<<<<<<<<<
 *         if self.to_dtype_func != NULL:
 *             self.to_dtype_func(itemp, value)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView._memoryviewslice.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":988
 * 
 *     @property
 *     def base(self):             # <<<<<<<<<<<<<<
 *         return self.from_object
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(struct __pyx_memoryviewslice_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "View.MemoryView":989
 *     @property
 *     def base(self):
 *         return self.from_object             # <<<<<<<<<<<<<<
 * 
 *     __pyx_getbuffer = capsule(<void *> &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)")
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->from_object);
  __pyx_r = __pyx_v_self->from_object;
  goto __pyx_L0;

  /* "View.MemoryView":988
 * 
 *     @property
 *     def base(self):             # <<<<<<<<<<<<<<
 *         return self.from_object
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_memoryviewslice___reduce_cython__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView._memoryviewslice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf___pyx_memoryviewslice_2__setstate_cython__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView._memoryviewslice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":995
 * 
 * @cname('__pyx_memoryview_fromslice')
 * cdef memoryview_fromslice(__Pyx_memviewslice memviewslice,             # <<<<<<<<<<<<<<
 *                           int ndim,
 *                           object (*to_object_func)(char *),
 */

static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewslice, int __pyx_v_ndim, PyObject *(*__pyx_v_to_object_func)(char *), int (*__pyx_v_to_dtype_func)(char *, PyObject *), int __pyx_v_dtype_is_object) {
  struct __pyx_memoryviewslice_obj *__pyx_v_result = 0;
  Py_ssize_t __pyx_v_suboffset;
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_TypeInfo *__pyx_t_4;
  Py_buffer __pyx_t_5;
  Py_ssize_t *__pyx_t_6;
  Py_ssize_t *__pyx_t_7;
  Py_ssize_t *__pyx_t_8;
  Py_ssize_t __pyx_t_9;
  __Pyx_RefNannySetupContext("memoryview_fromslice", 0);

  /* "View.MemoryView":1003
 *     cdef _memoryviewslice result
 * 
 *     if <PyObject *> memviewslice.memview == Py_None:             # <<<<<<<<<<<<<<
 *         return None
 * 
 */
  __pyx_t_1 = ((((PyObject *)__pyx_v_memviewslice.memview) == Py_None) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1004
 * 
 *     if <PyObject *> memviewslice.memview == Py_None:
 *         return None             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "View.MemoryView":1003
 *     cdef _memoryviewslice result
 * 
 *     if <PyObject *> memviewslice.memview == Py_None:             # <<<<<<<<<<<<<<
 *         return None
 * 
 */
  }

  /* "View.MemoryView":1009
 * 
 * 
 *     result = _memoryviewslice(None, 0, dtype_is_object)             # <<<<<<<<<<<<<<
 * 
 *     result.from_slice = memviewslice
 */
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_3, 0, Py_None);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_0);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryviewslice_type), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_result = ((struct __pyx_memoryviewslice_obj *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "View.MemoryView":1011
 *     result = _memoryviewslice(None, 0, dtype_is_object)
 * 
 *     result.from_slice = memviewslice             # <<<<<<<<<<<<<<
 *     __PYX_INC_MEMVIEW(&memviewslice, 1)
 * 
 */
  __pyx_v_result->from_slice = __pyx_v_memviewslice;

  /* "View.MemoryView":1012
 * 
 *     result.from_slice = memviewslice
 *     __PYX_INC_MEMVIEW(&memviewslice, 1)             # <<<<<<<<<<<<<<
 * 
 *     result.from_object = (<memoryview> memviewslice.memview).base
 */
  __PYX_INC_MEMVIEW((&__pyx_v_memviewslice), 1);

  /* "View.MemoryView":1014
 *     __PYX_INC_MEMVIEW(&memviewslice, 1)
 * 
 *     result.from_object = (<memoryview> memviewslice.memview).base             # <<<<<<<<<<<<<<
 *     result.typeinfo = memviewslice.memview.typeinfo
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memviewslice.memview), __pyx_n_s_base); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_result->from_object);
  __Pyx_DECREF(__pyx_v_result->from_object);
  __pyx_v_result->from_object = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "View.MemoryView":1015
 * 
 *     result.from_object = (<memoryview> memviewslice.memview).base
 *     result.typeinfo = memviewslice.memview.typeinfo             # <<<<<<<<<<<<<<
 * 
 *     result.view = memviewslice.memview.view
 */
  __pyx_t_4 = __pyx_v_memviewslice.memview->typeinfo;
  __pyx_v_result->__pyx_base.typeinfo = __pyx_t_4;

  /* "View.MemoryView":1017
 *     result.typeinfo = memviewslice.memview.typeinfo
 * 
 *     result.view = memviewslice.memview.view             # <<<<<<<<<<<<<<
 *     result.view.buf = <void *> memviewslice.data
 *     result.view.ndim = ndim
 */
  __pyx_t_5 = __pyx_v_memviewslice.memview->view;
  __pyx_v_result->__pyx_base.view = __pyx_t_5;

  /* "View.MemoryView":1018
 * 
 *     result.view = memviewslice.memview.view
 *     result.view.buf = <void *> memviewslice.data             # <<<<<<<<<<<<<<
 *     result.view.ndim = ndim
 *     (<__pyx_buffer *> &result.view).obj = Py_None
 */
  __pyx_v_result->__pyx_base.view.buf = ((void *)__pyx_v_memviewslice.data);

  /* "View.MemoryView":1019
 *     result.view = memviewslice.memview.view
 *     result.view.buf = <void *> memviewslice.data
 *     result.view.ndim = ndim             # <<<<<<<<<<<<<<
 *     (<__pyx_buffer *> &result.view).obj = Py_None
 *     Py_INCREF(Py_None)
 */
  __pyx_v_result->__pyx_base.view.ndim = __pyx_v_ndim;

  /* "View.MemoryView":1020
 *     result.view.buf = <void *> memviewslice.data
 *     result.view.ndim = ndim
 *     (<__pyx_buffer *> &result.view).obj = Py_None             # <<<<<<<<<<<<<<
 *     Py_INCREF(Py_None)
 * 
 */
  ((Py_buffer *)(&__pyx_v_result->__pyx_base.view))->obj = Py_None;

  /* "View.MemoryView":1021
 *     result.view.ndim = ndim
 *     (<__pyx_buffer *> &result.view).obj = Py_None
 *     Py_INCREF(Py_None)             # <<<<<<<<<<<<<<
 * 
 *     if (<memoryview>memviewslice.memview).flags & PyBUF_WRITABLE:
 */
  Py_INCREF(Py_None);

  /* "View.MemoryView":1023
 *     Py_INCREF(Py_None)
 * 
 *     if (<memoryview>memviewslice.memview).flags & PyBUF_WRITABLE:             # <<<<<<<<<<<<<<
 *         result.flags = PyBUF_RECORDS
 *     else:
 */
  __pyx_t_1 = ((((struct __pyx_memoryview_obj *)__pyx_v_memviewslice.memview)->flags & PyBUF_WRITABLE) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1024
 * 
 *     if (<memoryview>memviewslice.memview).flags & PyBUF_WRITABLE:
 *         result.flags = PyBUF_RECORDS             # <<<<<<<<<<<<<<
 *     else:
 *         result.flags = PyBUF_RECORDS_RO
 */
    __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS;

    /* "View.MemoryView":1023
 *     Py_INCREF(Py_None)
 * 
 *     if (<memoryview>memviewslice.memview).flags & PyBUF_WRITABLE:             # <<<<<<<<<<<<<<
 *         result.flags = PyBUF_RECORDS
 *     else:
 */
    goto __pyx_L4;
  }

  /* "View.MemoryView":1026
 *         result.flags = PyBUF_RECORDS
 *     else:
 *         result.flags = PyBUF_RECORDS_RO             # <<<<<<<<<<<<<<
 * 
 *     result.view.shape = <Py_ssize_t *> result.from_slice.shape
 */
  /*else*/ {
    __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS_RO;
  }
  __pyx_L4:;

  /* "View.MemoryView":1028
 *         result.flags = PyBUF_RECORDS_RO
 * 
 *     result.view.shape = <Py_ssize_t *> result.from_slice.shape             # <<<<<<<<<<<<<<
 *     result.view.strides = <Py_ssize_t *> result.from_slice.strides
 * 
 */
  __pyx_v_result->__pyx_base.view.shape = ((Py_ssize_t *)__pyx_v_result->from_slice.shape);

  /* "View.MemoryView":1029
 * 
 *     result.view.shape = <Py_ssize_t *> result.from_slice.shape
 *     result.view.strides = <Py_ssize_t *> result.from_slice.strides             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_result->__pyx_base.view.strides = ((Py_ssize_t *)__pyx_v_result->from_slice.strides);

  /* "View.MemoryView":1032
 * 
 * 
 *     result.view.suboffsets = NULL             # <<<<<<<<<<<<<<
 *     for suboffset in result.from_slice.suboffsets[:ndim]:
 *         if suboffset >= 0:
 */
  __pyx_v_result->__pyx_base.view.suboffsets = NULL;

  /* "View.MemoryView":1033
 * 
 *     result.view.suboffsets = NULL
 *     for suboffset in result.from_slice.suboffsets[:ndim]:             # <<<<<<<<<<<<<<
 *         if suboffset >= 0:
 *             result.view.suboffsets = <Py_ssize_t *> result.from_slice.suboffsets
 */
  __pyx_t_7 = (__pyx_v_result->from_slice.suboffsets + __pyx_v_ndim);
  for (__pyx_t_8 = __pyx_v_result->from_slice.suboffsets; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) {
    __pyx_t_6 = __pyx_t_8;
    __pyx_v_suboffset = (__pyx_t_6[0]);

    /* "View.MemoryView":1034
 *     result.view.suboffsets = NULL
 *     for suboffset in result.from_slice.suboffsets[:ndim]:
 *         if suboffset >= 0:             # <<<<<<<<<<<<<<
 *             result.view.suboffsets = <Py_ssize_t *> result.from_slice.suboffsets
 *             break
 */
    __pyx_t_1 = ((__pyx_v_suboffset >= 0) != 0);
    if (__pyx_t_1) {

      /* "View.MemoryView":1035
 *     for suboffset in result.from_slice.suboffsets[:ndim]:
 *         if suboffset >= 0:
 *             result.view.suboffsets = <Py_ssize_t *> result.from_slice.suboffsets             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_result->__pyx_base.view.suboffsets = ((Py_ssize_t *)__pyx_v_result->from_slice.suboffsets);

      /* "View.MemoryView":1036
 *         if suboffset >= 0:
 *             result.view.suboffsets = <Py_ssize_t *> result.from_slice.suboffsets
 *             break             # <<<<<<<<<<<<<<
 * 
 *     result.view.len = result.view.itemsize
 */
      goto __pyx_L6_break;

      /* "View.MemoryView":1034
 *     result.view.suboffsets = NULL
 *     for suboffset in result.from_slice.suboffsets[:ndim]:
 *         if suboffset >= 0:             # <<<<<<<<<<<<<<
 *             result.view.suboffsets = <Py_ssize_t *> result.from_slice.suboffsets
 *             break
 */
    }
  }
  __pyx_L6_break:;

  /* "View.MemoryView":1038
 *             break
 * 
 *     result.view.len = result.view.itemsize             # <<<<<<<<<<<<<<
 *     for length in result.view.shape[:ndim]:
 *         result.view.len *= length
 */
  __pyx_t_9 = __pyx_v_result->__pyx_base.view.itemsize;
  __pyx_v_result->__pyx_base.view.len = __pyx_t_9;

  /* "View.MemoryView":1039
 * 
 *     result.view.len = result.view.itemsize
 *     for length in result.view.shape[:ndim]:             # <<<<<<<<<<<<<<
 *         result.view.len *= length
 * 
 */
  __pyx_t_7 = (__pyx_v_result->__pyx_base.view.shape + __pyx_v_ndim);
  for (__pyx_t_8 = __pyx_v_result->__pyx_base.view.shape; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) {
    __pyx_t_6 = __pyx_t_8;
    __pyx_t_2 = PyInt_FromSsize_t((__pyx_t_6[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "View.MemoryView":1040
 *     result.view.len = result.view.itemsize
 *     for length in result.view.shape[:ndim]:
 *         result.view.len *= length             # <<<<<<<<<<<<<<
 * 
 *     result.to_object_func = to_object_func
 */
    __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_result->__pyx_base.view.len); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyNumber_InPlaceMultiply(__pyx_t_2, __pyx_v_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1040, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_result->__pyx_base.view.len = __pyx_t_9;
  }

  /* "View.MemoryView":1042
 *         result.view.len *= length
 * 
 *     result.to_object_func = to_object_func             # <<<<<<<<<<<<<<
 *     result.to_dtype_func = to_dtype_func
 * 
 */
  __pyx_v_result->to_object_func = __pyx_v_to_object_func;

  /* "View.MemoryView":1043
 * 
 *     result.to_object_func = to_object_func
 *     result.to_dtype_func = to_dtype_func             # <<<<<<<<<<<<<<
 * 
 *     return result
 */
  __pyx_v_result->to_dtype_func = __pyx_v_to_dtype_func;

  /* "View.MemoryView":1045
 *     result.to_dtype_func = to_dtype_func
 * 
 *     return result             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_get_slice_from_memoryview')
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = ((PyObject *)__pyx_v_result);
  goto __pyx_L0;

  /* "View.MemoryView":995
 * 
 * @cname('__pyx_memoryview_fromslice')
 * cdef memoryview_fromslice(__Pyx_memviewslice memviewslice,             # <<<<<<<<<<<<<<
 *                           int ndim,
 *                           object (*to_object_func)(char *),
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("View.MemoryView.memoryview_fromslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":1048
 * 
 * @cname('__pyx_memoryview_get_slice_from_memoryview')
 * cdef __Pyx_memviewslice *get_slice_from_memview(memoryview memview,             # <<<<<<<<<<<<<<
 *                                                    __Pyx_memviewslice *mslice):
 *     cdef _memoryviewslice obj
 */

static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_mslice) {
  struct __pyx_memoryviewslice_obj *__pyx_v_obj = 0;
  __Pyx_memviewslice *__pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("get_slice_from_memview", 0);

  /* "View.MemoryView":1051
 *                                                    __Pyx_memviewslice *mslice):
 *     cdef _memoryviewslice obj
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         obj = memview
 *         return &obj.from_slice
 */
  __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1052
 *     cdef _memoryviewslice obj
 *     if isinstance(memview, _memoryviewslice):
 *         obj = memview             # <<<<<<<<<<<<<<
 *         return &obj.from_slice
 *     else:
 */
    if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(1, 1052, __pyx_L1_error)
    __pyx_t_3 = ((PyObject *)__pyx_v_memview);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_v_obj = ((struct __pyx_memoryviewslice_obj *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "View.MemoryView":1053
 *     if isinstance(memview, _memoryviewslice):
 *         obj = memview
 *         return &obj.from_slice             # <<<<<<<<<<<<<<
 *     else:
 *         slice_copy(memview, mslice)
 */
    __pyx_r = (&__pyx_v_obj->from_slice);
    goto __pyx_L0;

    /* "View.MemoryView":1051
 *                                                    __Pyx_memviewslice *mslice):
 *     cdef _memoryviewslice obj
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         obj = memview
 *         return &obj.from_slice
 */
  }

  /* "View.MemoryView":1055
 *         return &obj.from_slice
 *     else:
 *         slice_copy(memview, mslice)             # <<<<<<<<<<<<<<
 *         return mslice
 * 
 */
  /*else*/ {
    __pyx_memoryview_slice_copy(__pyx_v_memview, __pyx_v_mslice);

    /* "View.MemoryView":1056
 *     else:
 *         slice_copy(memview, mslice)
 *         return mslice             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_slice_copy')
 */
    __pyx_r = __pyx_v_mslice;
    goto __pyx_L0;
  }

  /* "View.MemoryView":1048
 * 
 * @cname('__pyx_memoryview_get_slice_from_memoryview')
 * cdef __Pyx_memviewslice *get_slice_from_memview(memoryview memview,             # <<<<<<<<<<<<<<
 *                                                    __Pyx_memviewslice *mslice):
 *     cdef _memoryviewslice obj
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("View.MemoryView.get_slice_from_memview", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_obj);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":1059
 * 
 * @cname('__pyx_memoryview_slice_copy')
 * cdef void slice_copy(memoryview memview, __Pyx_memviewslice *dst):             # <<<<<<<<<<<<<<
 *     cdef int dim
 *     cdef (Py_ssize_t*) shape, strides, suboffsets
 */

static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_dst) {
  int __pyx_v_dim;
  Py_ssize_t *__pyx_v_shape;
  Py_ssize_t *__pyx_v_strides;
  Py_ssize_t *__pyx_v_suboffsets;
  __Pyx_RefNannyDeclarations
  Py_ssize_t *__pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  __Pyx_RefNannySetupContext("slice_copy", 0);

  /* "View.MemoryView":1063
 *     cdef (Py_ssize_t*) shape, strides, suboffsets
 * 
 *     shape = memview.view.shape             # <<<<<<<<<<<<<<
 *     strides = memview.view.strides
 *     suboffsets = memview.view.suboffsets
 */
  __pyx_t_1 = __pyx_v_memview->view.shape;
  __pyx_v_shape = __pyx_t_1;

  /* "View.MemoryView":1064
 * 
 *     shape = memview.view.shape
 *     strides = memview.view.strides             # <<<<<<<<<<<<<<
 *     suboffsets = memview.view.suboffsets
 * 
 */
  __pyx_t_1 = __pyx_v_memview->view.strides;
  __pyx_v_strides = __pyx_t_1;

  /* "View.MemoryView":1065
 *     shape = memview.view.shape
 *     strides = memview.view.strides
 *     suboffsets = memview.view.suboffsets             # <<<<<<<<<<<<<<
 * 
 *     dst.memview = <__pyx_memoryview *> memview
 */
  __pyx_t_1 = __pyx_v_memview->view.suboffsets;
  __pyx_v_suboffsets = __pyx_t_1;

  /* "View.MemoryView":1067
 *     suboffsets = memview.view.suboffsets
 * 
 *     dst.memview = <__pyx_memoryview *> memview             # <<<<<<<<<<<<<<
 *     dst.data = <char *> memview.view.buf
 * 
 */
  __pyx_v_dst->memview = ((struct __pyx_memoryview_obj *)__pyx_v_memview);

  /* "View.MemoryView":1068
 * 
 *     dst.memview = <__pyx_memoryview *> memview
 *     dst.data = <char *> memview.view.buf             # <<<<<<<<<<<<<<
 * 
 *     for dim in range(memview.view.ndim):
 */
  __pyx_v_dst->data = ((char *)__pyx_v_memview->view.buf);

  /* "View.MemoryView":1070
 *     dst.data = <char *> memview.view.buf
 * 
 *     for dim in range(memview.view.ndim):             # <<<<<<<<<<<<<<
 *         dst.shape[dim] = shape[dim]
 *         dst.strides[dim] = strides[dim]
 */
  __pyx_t_2 = __pyx_v_memview->view.ndim;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_dim = __pyx_t_4;

    /* "View.MemoryView":1071
 * 
 *     for dim in range(memview.view.ndim):
 *         dst.shape[dim] = shape[dim]             # <<<<<<<<<<<<<<
 *         dst.strides[dim] = strides[dim]
 *         dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1
 */
    (__pyx_v_dst->shape[__pyx_v_dim]) = (__pyx_v_shape[__pyx_v_dim]);

    /* "View.MemoryView":1072
 *     for dim in range(memview.view.ndim):
 *         dst.shape[dim] = shape[dim]
 *         dst.strides[dim] = strides[dim]             # <<<<<<<<<<<<<<
 *         dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1
 * 
 */
    (__pyx_v_dst->strides[__pyx_v_dim]) = (__pyx_v_strides[__pyx_v_dim]);

    /* "View.MemoryView":1073
 *         dst.shape[dim] = shape[dim]
 *         dst.strides[dim] = strides[dim]
 *         dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_copy_object')
 */
    if ((__pyx_v_suboffsets != 0)) {
      __pyx_t_5 = (__pyx_v_suboffsets[__pyx_v_dim]);
    } else {
      __pyx_t_5 = -1L;
    }
    (__pyx_v_dst->suboffsets[__pyx_v_dim]) = __pyx_t_5;
  }

  /* "View.MemoryView":1059
 * 
 * @cname('__pyx_memoryview_slice_copy')
 * cdef void slice_copy(memoryview memview, __Pyx_memviewslice *dst):             # <<<<<<<<<<<<<<
 *     cdef int dim
 *     cdef (Py_ssize_t*) shape, strides, suboffsets
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "View.MemoryView":1076
 * 
 * @cname('__pyx_memoryview_copy_object')
 * cdef memoryview_copy(memoryview memview):             # <<<<<<<<<<<<<<
 *     "Create a new memoryview object"
 *     cdef __Pyx_memviewslice memviewslice
 */

static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx_v_memview) {
  __Pyx_memviewslice __pyx_v_memviewslice;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("memoryview_copy", 0);

  /* "View.MemoryView":1079
 *     "Create a new memoryview object"
 *     cdef __Pyx_memviewslice memviewslice
 *     slice_copy(memview, &memviewslice)             # <<<<<<<<<<<<<<
 *     return memoryview_copy_from_slice(memview, &memviewslice)
 * 
 */
  __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_memviewslice));

  /* "View.MemoryView":1080
 *     cdef __Pyx_memviewslice memviewslice
 *     slice_copy(memview, &memviewslice)
 *     return memoryview_copy_from_slice(memview, &memviewslice)             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_copy_object_from_slice')
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_memoryview_copy_object_from_slice(__pyx_v_memview, (&__pyx_v_memviewslice)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":1076
 * 
 * @cname('__pyx_memoryview_copy_object')
 * cdef memoryview_copy(memoryview memview):             # <<<<<<<<<<<<<<
 *     "Create a new memoryview object"
 *     cdef __Pyx_memviewslice memviewslice
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("View.MemoryView.memoryview_copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":1083
 * 
 * @cname('__pyx_memoryview_copy_object_from_slice')
 * cdef memoryview_copy_from_slice(memoryview memview, __Pyx_memviewslice *memviewslice):             # <<<<<<<<<<<<<<
 *     """
 *     Create a new memoryview object from a given memoryview object and slice.
 */

static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_memviewslice) {
  PyObject *(*__pyx_v_to_object_func)(char *);
  int (*__pyx_v_to_dtype_func)(char *, PyObject *);
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *(*__pyx_t_3)(char *);
  int (*__pyx_t_4)(char *, PyObject *);
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("memoryview_copy_from_slice", 0);

  /* "View.MemoryView":1090
 *     cdef int (*to_dtype_func)(char *, object) except 0
 * 
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         to_object_func = (<_memoryviewslice> memview).to_object_func
 *         to_dtype_func = (<_memoryviewslice> memview).to_dtype_func
 */
  __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1091
 * 
 *     if isinstance(memview, _memoryviewslice):
 *         to_object_func = (<_memoryviewslice> memview).to_object_func             # <<<<<<<<<<<<<<
 *         to_dtype_func = (<_memoryviewslice> memview).to_dtype_func
 *     else:
 */
    __pyx_t_3 = ((struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_object_func;
    __pyx_v_to_object_func = __pyx_t_3;

    /* "View.MemoryView":1092
 *     if isinstance(memview, _memoryviewslice):
 *         to_object_func = (<_memoryviewslice> memview).to_object_func
 *         to_dtype_func = (<_memoryviewslice> memview).to_dtype_func             # <<<<<<<<<<<<<<
 *     else:
 *         to_object_func = NULL
 */
    __pyx_t_4 = ((struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_dtype_func;
    __pyx_v_to_dtype_func = __pyx_t_4;

    /* "View.MemoryView":1090
 *     cdef int (*to_dtype_func)(char *, object) except 0
 * 
 *     if isinstance(memview, _memoryviewslice):             # <<<<<<<<<<<<<<
 *         to_object_func = (<_memoryviewslice> memview).to_object_func
 *         to_dtype_func = (<_memoryviewslice> memview).to_dtype_func
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":1094
 *         to_dtype_func = (<_memoryviewslice> memview).to_dtype_func
 *     else:
 *         to_object_func = NULL             # <<<<<<<<<<<<<<
 *         to_dtype_func = NULL
 * 
 */
  /*else*/ {
    __pyx_v_to_object_func = NULL;

    /* "View.MemoryView":1095
 *     else:
 *         to_object_func = NULL
 *         to_dtype_func = NULL             # <<<<<<<<<<<<<<
 * 
 *     return memoryview_fromslice(memviewslice[0], memview.view.ndim,
 */
    __pyx_v_to_dtype_func = NULL;
  }
  __pyx_L3:;

  /* "View.MemoryView":1097
 *         to_dtype_func = NULL
 * 
 *     return memoryview_fromslice(memviewslice[0], memview.view.ndim,             # <<<<<<<<<<<<<<
 *                                 to_object_func, to_dtype_func,
 *                                 memview.dtype_is_object)
 */
  __Pyx_XDECREF(__pyx_r);

  /* "View.MemoryView":1099
 *     return memoryview_fromslice(memviewslice[0], memview.view.ndim,
 *                                 to_object_func, to_dtype_func,
 *                                 memview.dtype_is_object)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_5 = __pyx_memoryview_fromslice((__pyx_v_memviewslice[0]), __pyx_v_memview->view.ndim, __pyx_v_to_object_func, __pyx_v_to_dtype_func, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "View.MemoryView":1083
 * 
 * @cname('__pyx_memoryview_copy_object_from_slice')
 * cdef memoryview_copy_from_slice(memoryview memview, __Pyx_memviewslice *memviewslice):             # <<<<<<<<<<<<<<
 *     """
 *     Create a new memoryview object from a given memoryview object and slice.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.memoryview_copy_from_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "View.MemoryView":1105
 * 
 * 
 * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil:             # <<<<<<<<<<<<<<
 *     if arg < 0:
 *         return -arg
 */

static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) {
  Py_ssize_t __pyx_r;
  int __pyx_t_1;

  /* "View.MemoryView":1106
 * 
 * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil:
 *     if arg < 0:             # <<<<<<<<<<<<<<
 *         return -arg
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_arg < 0) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1107
 * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil:
 *     if arg < 0:
 *         return -arg             # <<<<<<<<<<<<<<
 *     else:
 *         return arg
 */
    __pyx_r = (-__pyx_v_arg);
    goto __pyx_L0;

    /* "View.MemoryView":1106
 * 
 * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil:
 *     if arg < 0:             # <<<<<<<<<<<<<<
 *         return -arg
 *     else:
 */
  }

  /* "View.MemoryView":1109
 *         return -arg
 *     else:
 *         return arg             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_get_best_slice_order')
 */
  /*else*/ {
    __pyx_r = __pyx_v_arg;
    goto __pyx_L0;
  }

  /* "View.MemoryView":1105
 * 
 * 
 * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) nogil:             # <<<<<<<<<<<<<<
 *     if arg < 0:
 *         return -arg
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":1112
 * 
 * @cname('__pyx_get_best_slice_order')
 * cdef char get_best_order(__Pyx_memviewslice *mslice, int ndim) nogil:             # <<<<<<<<<<<<<<
 *     """
 *     Figure out the best memory access order for a given slice.
 */

static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int __pyx_v_ndim) {
  int __pyx_v_i;
  Py_ssize_t __pyx_v_c_stride;
  Py_ssize_t __pyx_v_f_stride;
  char __pyx_r;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;

  /* "View.MemoryView":1117
 *     """
 *     cdef int i
 *     cdef Py_ssize_t c_stride = 0             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t f_stride = 0
 * 
 */
  __pyx_v_c_stride = 0;

  /* "View.MemoryView":1118
 *     cdef int i
 *     cdef Py_ssize_t c_stride = 0
 *     cdef Py_ssize_t f_stride = 0             # <<<<<<<<<<<<<<
 * 
 *     for i in range(ndim - 1, -1, -1):
 */
  __pyx_v_f_stride = 0;

  /* "View.MemoryView":1120
 *     cdef Py_ssize_t f_stride = 0
 * 
 *     for i in range(ndim - 1, -1, -1):             # <<<<<<<<<<<<<<
 *         if mslice.shape[i] > 1:
 *             c_stride = mslice.strides[i]
 */
  for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) {
    __pyx_v_i = __pyx_t_1;

    /* "View.MemoryView":1121
 * 
 *     for i in range(ndim - 1, -1, -1):
 *         if mslice.shape[i] > 1:             # <<<<<<<<<<<<<<
 *             c_stride = mslice.strides[i]
 *             break
 */
    __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1122
 *     for i in range(ndim - 1, -1, -1):
 *         if mslice.shape[i] > 1:
 *             c_stride = mslice.strides[i]             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_c_stride = (__pyx_v_mslice->strides[__pyx_v_i]);

      /* "View.MemoryView":1123
 *         if mslice.shape[i] > 1:
 *             c_stride = mslice.strides[i]
 *             break             # <<<<<<<<<<<<<<
 * 
 *     for i in range(ndim):
 */
      goto __pyx_L4_break;

      /* "View.MemoryView":1121
 * 
 *     for i in range(ndim - 1, -1, -1):
 *         if mslice.shape[i] > 1:             # <<<<<<<<<<<<<<
 *             c_stride = mslice.strides[i]
 *             break
 */
    }
  }
  __pyx_L4_break:;

  /* "View.MemoryView":1125
 *             break
 * 
 *     for i in range(ndim):             # <<<<<<<<<<<<<<
 *         if mslice.shape[i] > 1:
 *             f_stride = mslice.strides[i]
 */
  __pyx_t_1 = __pyx_v_ndim;
  __pyx_t_3 = __pyx_t_1;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "View.MemoryView":1126
 * 
 *     for i in range(ndim):
 *         if mslice.shape[i] > 1:             # <<<<<<<<<<<<<<
 *             f_stride = mslice.strides[i]
 *             break
 */
    __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1127
 *     for i in range(ndim):
 *         if mslice.shape[i] > 1:
 *             f_stride = mslice.strides[i]             # <<<<<<<<<<<<<<
 *             break
 * 
 */
      __pyx_v_f_stride = (__pyx_v_mslice->strides[__pyx_v_i]);

      /* "View.MemoryView":1128
 *         if mslice.shape[i] > 1:
 *             f_stride = mslice.strides[i]
 *             break             # <<<<<<<<<<<<<<
 * 
 *     if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride):
 */
      goto __pyx_L7_break;

      /* "View.MemoryView":1126
 * 
 *     for i in range(ndim):
 *         if mslice.shape[i] > 1:             # <<<<<<<<<<<<<<
 *             f_stride = mslice.strides[i]
 *             break
 */
    }
  }
  __pyx_L7_break:;

  /* "View.MemoryView":1130
 *             break
 * 
 *     if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride):             # <<<<<<<<<<<<<<
 *         return 'C'
 *     else:
 */
  __pyx_t_2 = ((abs_py_ssize_t(__pyx_v_c_stride) <= abs_py_ssize_t(__pyx_v_f_stride)) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1131
 * 
 *     if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride):
 *         return 'C'             # <<<<<<<<<<<<<<
 *     else:
 *         return 'F'
 */
    __pyx_r = 'C';
    goto __pyx_L0;

    /* "View.MemoryView":1130
 *             break
 * 
 *     if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride):             # <<<<<<<<<<<<<<
 *         return 'C'
 *     else:
 */
  }

  /* "View.MemoryView":1133
 *         return 'C'
 *     else:
 *         return 'F'             # <<<<<<<<<<<<<<
 * 
 * @cython.cdivision(True)
 */
  /*else*/ {
    __pyx_r = 'F';
    goto __pyx_L0;
  }

  /* "View.MemoryView":1112
 * 
 * @cname('__pyx_get_best_slice_order')
 * cdef char get_best_order(__Pyx_memviewslice *mslice, int ndim) nogil:             # <<<<<<<<<<<<<<
 *     """
 *     Figure out the best memory access order for a given slice.
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":1136
 * 
 * @cython.cdivision(True)
 * cdef void _copy_strided_to_strided(char *src_data, Py_ssize_t *src_strides,             # <<<<<<<<<<<<<<
 *                                    char *dst_data, Py_ssize_t *dst_strides,
 *                                    Py_ssize_t *src_shape, Py_ssize_t *dst_shape,
 */

static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v_src_strides, char *__pyx_v_dst_data, Py_ssize_t *__pyx_v_dst_strides, Py_ssize_t *__pyx_v_src_shape, Py_ssize_t *__pyx_v_dst_shape, int __pyx_v_ndim, size_t __pyx_v_itemsize) {
  CYTHON_UNUSED Py_ssize_t __pyx_v_i;
  CYTHON_UNUSED Py_ssize_t __pyx_v_src_extent;
  Py_ssize_t __pyx_v_dst_extent;
  Py_ssize_t __pyx_v_src_stride;
  Py_ssize_t __pyx_v_dst_stride;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;

  /* "View.MemoryView":1143
 * 
 *     cdef Py_ssize_t i
 *     cdef Py_ssize_t src_extent = src_shape[0]             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t dst_extent = dst_shape[0]
 *     cdef Py_ssize_t src_stride = src_strides[0]
 */
  __pyx_v_src_extent = (__pyx_v_src_shape[0]);

  /* "View.MemoryView":1144
 *     cdef Py_ssize_t i
 *     cdef Py_ssize_t src_extent = src_shape[0]
 *     cdef Py_ssize_t dst_extent = dst_shape[0]             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t src_stride = src_strides[0]
 *     cdef Py_ssize_t dst_stride = dst_strides[0]
 */
  __pyx_v_dst_extent = (__pyx_v_dst_shape[0]);

  /* "View.MemoryView":1145
 *     cdef Py_ssize_t src_extent = src_shape[0]
 *     cdef Py_ssize_t dst_extent = dst_shape[0]
 *     cdef Py_ssize_t src_stride = src_strides[0]             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t dst_stride = dst_strides[0]
 * 
 */
  __pyx_v_src_stride = (__pyx_v_src_strides[0]);

  /* "View.MemoryView":1146
 *     cdef Py_ssize_t dst_extent = dst_shape[0]
 *     cdef Py_ssize_t src_stride = src_strides[0]
 *     cdef Py_ssize_t dst_stride = dst_strides[0]             # <<<<<<<<<<<<<<
 * 
 *     if ndim == 1:
 */
  __pyx_v_dst_stride = (__pyx_v_dst_strides[0]);

  /* "View.MemoryView":1148
 *     cdef Py_ssize_t dst_stride = dst_strides[0]
 * 
 *     if ndim == 1:             # <<<<<<<<<<<<<<
 *        if (src_stride > 0 and dst_stride > 0 and
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):
 */
  __pyx_t_1 = ((__pyx_v_ndim == 1) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1149
 * 
 *     if ndim == 1:
 *        if (src_stride > 0 and dst_stride > 0 and             # <<<<<<<<<<<<<<
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):
 *            memcpy(dst_data, src_data, itemsize * dst_extent)
 */
    __pyx_t_2 = ((__pyx_v_src_stride > 0) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_2 = ((__pyx_v_dst_stride > 0) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }

    /* "View.MemoryView":1150
 *     if ndim == 1:
 *        if (src_stride > 0 and dst_stride > 0 and
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):             # <<<<<<<<<<<<<<
 *            memcpy(dst_data, src_data, itemsize * dst_extent)
 *        else:
 */
    __pyx_t_2 = (((size_t)__pyx_v_src_stride) == __pyx_v_itemsize);
    if (__pyx_t_2) {
      __pyx_t_2 = (__pyx_v_itemsize == ((size_t)__pyx_v_dst_stride));
    }
    __pyx_t_3 = (__pyx_t_2 != 0);
    __pyx_t_1 = __pyx_t_3;
    __pyx_L5_bool_binop_done:;

    /* "View.MemoryView":1149
 * 
 *     if ndim == 1:
 *        if (src_stride > 0 and dst_stride > 0 and             # <<<<<<<<<<<<<<
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):
 *            memcpy(dst_data, src_data, itemsize * dst_extent)
 */
    if (__pyx_t_1) {

      /* "View.MemoryView":1151
 *        if (src_stride > 0 and dst_stride > 0 and
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):
 *            memcpy(dst_data, src_data, itemsize * dst_extent)             # <<<<<<<<<<<<<<
 *        else:
 *            for i in range(dst_extent):
 */
      (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, (__pyx_v_itemsize * __pyx_v_dst_extent)));

      /* "View.MemoryView":1149
 * 
 *     if ndim == 1:
 *        if (src_stride > 0 and dst_stride > 0 and             # <<<<<<<<<<<<<<
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):
 *            memcpy(dst_data, src_data, itemsize * dst_extent)
 */
      goto __pyx_L4;
    }

    /* "View.MemoryView":1153
 *            memcpy(dst_data, src_data, itemsize * dst_extent)
 *        else:
 *            for i in range(dst_extent):             # <<<<<<<<<<<<<<
 *                memcpy(dst_data, src_data, itemsize)
 *                src_data += src_stride
 */
    /*else*/ {
      __pyx_t_4 = __pyx_v_dst_extent;
      __pyx_t_5 = __pyx_t_4;
      for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
        __pyx_v_i = __pyx_t_6;

        /* "View.MemoryView":1154
 *        else:
 *            for i in range(dst_extent):
 *                memcpy(dst_data, src_data, itemsize)             # <<<<<<<<<<<<<<
 *                src_data += src_stride
 *                dst_data += dst_stride
 */
        (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, __pyx_v_itemsize));

        /* "View.MemoryView":1155
 *            for i in range(dst_extent):
 *                memcpy(dst_data, src_data, itemsize)
 *                src_data += src_stride             # <<<<<<<<<<<<<<
 *                dst_data += dst_stride
 *     else:
 */
        __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride);

        /* "View.MemoryView":1156
 *                memcpy(dst_data, src_data, itemsize)
 *                src_data += src_stride
 *                dst_data += dst_stride             # <<<<<<<<<<<<<<
 *     else:
 *         for i in range(dst_extent):
 */
        __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride);
      }
    }
    __pyx_L4:;

    /* "View.MemoryView":1148
 *     cdef Py_ssize_t dst_stride = dst_strides[0]
 * 
 *     if ndim == 1:             # <<<<<<<<<<<<<<
 *        if (src_stride > 0 and dst_stride > 0 and
 *            <size_t> src_stride == itemsize == <size_t> dst_stride):
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":1158
 *                dst_data += dst_stride
 *     else:
 *         for i in range(dst_extent):             # <<<<<<<<<<<<<<
 *             _copy_strided_to_strided(src_data, src_strides + 1,
 *                                      dst_data, dst_strides + 1,
 */
  /*else*/ {
    __pyx_t_4 = __pyx_v_dst_extent;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_v_i = __pyx_t_6;

      /* "View.MemoryView":1159
 *     else:
 *         for i in range(dst_extent):
 *             _copy_strided_to_strided(src_data, src_strides + 1,             # <<<<<<<<<<<<<<
 *                                      dst_data, dst_strides + 1,
 *                                      src_shape + 1, dst_shape + 1,
 */
      _copy_strided_to_strided(__pyx_v_src_data, (__pyx_v_src_strides + 1), __pyx_v_dst_data, (__pyx_v_dst_strides + 1), (__pyx_v_src_shape + 1), (__pyx_v_dst_shape + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize);

      /* "View.MemoryView":1163
 *                                      src_shape + 1, dst_shape + 1,
 *                                      ndim - 1, itemsize)
 *             src_data += src_stride             # <<<<<<<<<<<<<<
 *             dst_data += dst_stride
 * 
 */
      __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride);

      /* "View.MemoryView":1164
 *                                      ndim - 1, itemsize)
 *             src_data += src_stride
 *             dst_data += dst_stride             # <<<<<<<<<<<<<<
 * 
 * cdef void copy_strided_to_strided(__Pyx_memviewslice *src,
 */
      __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride);
    }
  }
  __pyx_L3:;

  /* "View.MemoryView":1136
 * 
 * @cython.cdivision(True)
 * cdef void _copy_strided_to_strided(char *src_data, Py_ssize_t *src_strides,             # <<<<<<<<<<<<<<
 *                                    char *dst_data, Py_ssize_t *dst_strides,
 *                                    Py_ssize_t *src_shape, Py_ssize_t *dst_shape,
 */

  /* function exit code */
}

/* "View.MemoryView":1166
 *             dst_data += dst_stride
 * 
 * cdef void copy_strided_to_strided(__Pyx_memviewslice *src,             # <<<<<<<<<<<<<<
 *                                   __Pyx_memviewslice *dst,
 *                                   int ndim, size_t itemsize) nogil:
 */

static void copy_strided_to_strided(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_dst, int __pyx_v_ndim, size_t __pyx_v_itemsize) {

  /* "View.MemoryView":1169
 *                                   __Pyx_memviewslice *dst,
 *                                   int ndim, size_t itemsize) nogil:
 *     _copy_strided_to_strided(src.data, src.strides, dst.data, dst.strides,             # <<<<<<<<<<<<<<
 *                              src.shape, dst.shape, ndim, itemsize)
 * 
 */
  _copy_strided_to_strided(__pyx_v_src->data, __pyx_v_src->strides, __pyx_v_dst->data, __pyx_v_dst->strides, __pyx_v_src->shape, __pyx_v_dst->shape, __pyx_v_ndim, __pyx_v_itemsize);

  /* "View.MemoryView":1166
 *             dst_data += dst_stride
 * 
 * cdef void copy_strided_to_strided(__Pyx_memviewslice *src,             # <<<<<<<<<<<<<<
 *                                   __Pyx_memviewslice *dst,
 *                                   int ndim, size_t itemsize) nogil:
 */

  /* function exit code */
}

/* "View.MemoryView":1173
 * 
 * @cname('__pyx_memoryview_slice_get_size')
 * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) nogil:             # <<<<<<<<<<<<<<
 *     "Return the size of the memory occupied by the slice in number of bytes"
 *     cdef int i
 */

static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_src, int __pyx_v_ndim) {
  int __pyx_v_i;
  Py_ssize_t __pyx_v_size;
  Py_ssize_t __pyx_r;
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;

  /* "View.MemoryView":1176
 *     "Return the size of the memory occupied by the slice in number of bytes"
 *     cdef int i
 *     cdef Py_ssize_t size = src.memview.view.itemsize             # <<<<<<<<<<<<<<
 * 
 *     for i in range(ndim):
 */
  __pyx_t_1 = __pyx_v_src->memview->view.itemsize;
  __pyx_v_size = __pyx_t_1;

  /* "View.MemoryView":1178
 *     cdef Py_ssize_t size = src.memview.view.itemsize
 * 
 *     for i in range(ndim):             # <<<<<<<<<<<<<<
 *         size *= src.shape[i]
 * 
 */
  __pyx_t_2 = __pyx_v_ndim;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "View.MemoryView":1179
 * 
 *     for i in range(ndim):
 *         size *= src.shape[i]             # <<<<<<<<<<<<<<
 * 
 *     return size
 */
    __pyx_v_size = (__pyx_v_size * (__pyx_v_src->shape[__pyx_v_i]));
  }

  /* "View.MemoryView":1181
 *         size *= src.shape[i]
 * 
 *     return size             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_fill_contig_strides_array')
 */
  __pyx_r = __pyx_v_size;
  goto __pyx_L0;

  /* "View.MemoryView":1173
 * 
 * @cname('__pyx_memoryview_slice_get_size')
 * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) nogil:             # <<<<<<<<<<<<<<
 *     "Return the size of the memory occupied by the slice in number of bytes"
 *     cdef int i
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":1184
 * 
 * @cname('__pyx_fill_contig_strides_array')
 * cdef Py_ssize_t fill_contig_strides_array(             # <<<<<<<<<<<<<<
 *                 Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t stride,
 *                 int ndim, char order) nogil:
 */

static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, Py_ssize_t __pyx_v_stride, int __pyx_v_ndim, char __pyx_v_order) {
  int __pyx_v_idx;
  Py_ssize_t __pyx_r;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;

  /* "View.MemoryView":1193
 *     cdef int idx
 * 
 *     if order == 'F':             # <<<<<<<<<<<<<<
 *         for idx in range(ndim):
 *             strides[idx] = stride
 */
  __pyx_t_1 = ((__pyx_v_order == 'F') != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1194
 * 
 *     if order == 'F':
 *         for idx in range(ndim):             # <<<<<<<<<<<<<<
 *             strides[idx] = stride
 *             stride = stride * shape[idx]
 */
    __pyx_t_2 = __pyx_v_ndim;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_v_idx = __pyx_t_4;

      /* "View.MemoryView":1195
 *     if order == 'F':
 *         for idx in range(ndim):
 *             strides[idx] = stride             # <<<<<<<<<<<<<<
 *             stride = stride * shape[idx]
 *     else:
 */
      (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride;

      /* "View.MemoryView":1196
 *         for idx in range(ndim):
 *             strides[idx] = stride
 *             stride = stride * shape[idx]             # <<<<<<<<<<<<<<
 *     else:
 *         for idx in range(ndim - 1, -1, -1):
 */
      __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx]));
    }

    /* "View.MemoryView":1193
 *     cdef int idx
 * 
 *     if order == 'F':             # <<<<<<<<<<<<<<
 *         for idx in range(ndim):
 *             strides[idx] = stride
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":1198
 *             stride = stride * shape[idx]
 *     else:
 *         for idx in range(ndim - 1, -1, -1):             # <<<<<<<<<<<<<<
 *             strides[idx] = stride
 *             stride = stride * shape[idx]
 */
  /*else*/ {
    for (__pyx_t_2 = (__pyx_v_ndim - 1); __pyx_t_2 > -1; __pyx_t_2-=1) {
      __pyx_v_idx = __pyx_t_2;

      /* "View.MemoryView":1199
 *     else:
 *         for idx in range(ndim - 1, -1, -1):
 *             strides[idx] = stride             # <<<<<<<<<<<<<<
 *             stride = stride * shape[idx]
 * 
 */
      (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride;

      /* "View.MemoryView":1200
 *         for idx in range(ndim - 1, -1, -1):
 *             strides[idx] = stride
 *             stride = stride * shape[idx]             # <<<<<<<<<<<<<<
 * 
 *     return stride
 */
      __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx]));
    }
  }
  __pyx_L3:;

  /* "View.MemoryView":1202
 *             stride = stride * shape[idx]
 * 
 *     return stride             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_copy_data_to_temp')
 */
  __pyx_r = __pyx_v_stride;
  goto __pyx_L0;

  /* "View.MemoryView":1184
 * 
 * @cname('__pyx_fill_contig_strides_array')
 * cdef Py_ssize_t fill_contig_strides_array(             # <<<<<<<<<<<<<<
 *                 Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t stride,
 *                 int ndim, char order) nogil:
 */

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":1205
 * 
 * @cname('__pyx_memoryview_copy_data_to_temp')
 * cdef void *copy_data_to_temp(__Pyx_memviewslice *src,             # <<<<<<<<<<<<<<
 *                              __Pyx_memviewslice *tmpslice,
 *                              char order,
 */

static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_tmpslice, char __pyx_v_order, int __pyx_v_ndim) {
  int __pyx_v_i;
  void *__pyx_v_result;
  size_t __pyx_v_itemsize;
  size_t __pyx_v_size;
  void *__pyx_r;
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  struct __pyx_memoryview_obj *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;

  /* "View.MemoryView":1216
 *     cdef void *result
 * 
 *     cdef size_t itemsize = src.memview.view.itemsize             # <<<<<<<<<<<<<<
 *     cdef size_t size = slice_get_size(src, ndim)
 * 
 */
  __pyx_t_1 = __pyx_v_src->memview->view.itemsize;
  __pyx_v_itemsize = __pyx_t_1;

  /* "View.MemoryView":1217
 * 
 *     cdef size_t itemsize = src.memview.view.itemsize
 *     cdef size_t size = slice_get_size(src, ndim)             # <<<<<<<<<<<<<<
 * 
 *     result = malloc(size)
 */
  __pyx_v_size = __pyx_memoryview_slice_get_size(__pyx_v_src, __pyx_v_ndim);

  /* "View.MemoryView":1219
 *     cdef size_t size = slice_get_size(src, ndim)
 * 
 *     result = malloc(size)             # <<<<<<<<<<<<<<
 *     if not result:
 *         _err(MemoryError, NULL)
 */
  __pyx_v_result = malloc(__pyx_v_size);

  /* "View.MemoryView":1220
 * 
 *     result = malloc(size)
 *     if not result:             # <<<<<<<<<<<<<<
 *         _err(MemoryError, NULL)
 * 
 */
  __pyx_t_2 = ((!(__pyx_v_result != 0)) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1221
 *     result = malloc(size)
 *     if not result:
 *         _err(MemoryError, NULL)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_3 = __pyx_memoryview_err(__pyx_builtin_MemoryError, NULL); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 1221, __pyx_L1_error)

    /* "View.MemoryView":1220
 * 
 *     result = malloc(size)
 *     if not result:             # <<<<<<<<<<<<<<
 *         _err(MemoryError, NULL)
 * 
 */
  }

  /* "View.MemoryView":1224
 * 
 * 
 *     tmpslice.data = <char *> result             # <<<<<<<<<<<<<<
 *     tmpslice.memview = src.memview
 *     for i in range(ndim):
 */
  __pyx_v_tmpslice->data = ((char *)__pyx_v_result);

  /* "View.MemoryView":1225
 * 
 *     tmpslice.data = <char *> result
 *     tmpslice.memview = src.memview             # <<<<<<<<<<<<<<
 *     for i in range(ndim):
 *         tmpslice.shape[i] = src.shape[i]
 */
  __pyx_t_4 = __pyx_v_src->memview;
  __pyx_v_tmpslice->memview = __pyx_t_4;

  /* "View.MemoryView":1226
 *     tmpslice.data = <char *> result
 *     tmpslice.memview = src.memview
 *     for i in range(ndim):             # <<<<<<<<<<<<<<
 *         tmpslice.shape[i] = src.shape[i]
 *         tmpslice.suboffsets[i] = -1
 */
  __pyx_t_3 = __pyx_v_ndim;
  __pyx_t_5 = __pyx_t_3;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "View.MemoryView":1227
 *     tmpslice.memview = src.memview
 *     for i in range(ndim):
 *         tmpslice.shape[i] = src.shape[i]             # <<<<<<<<<<<<<<
 *         tmpslice.suboffsets[i] = -1
 * 
 */
    (__pyx_v_tmpslice->shape[__pyx_v_i]) = (__pyx_v_src->shape[__pyx_v_i]);

    /* "View.MemoryView":1228
 *     for i in range(ndim):
 *         tmpslice.shape[i] = src.shape[i]
 *         tmpslice.suboffsets[i] = -1             # <<<<<<<<<<<<<<
 * 
 *     fill_contig_strides_array(&tmpslice.shape[0], &tmpslice.strides[0], itemsize,
 */
    (__pyx_v_tmpslice->suboffsets[__pyx_v_i]) = -1L;
  }

  /* "View.MemoryView":1230
 *         tmpslice.suboffsets[i] = -1
 * 
 *     fill_contig_strides_array(&tmpslice.shape[0], &tmpslice.strides[0], itemsize,             # <<<<<<<<<<<<<<
 *                               ndim, order)
 * 
 */
  (void)(__pyx_fill_contig_strides_array((&(__pyx_v_tmpslice->shape[0])), (&(__pyx_v_tmpslice->strides[0])), __pyx_v_itemsize, __pyx_v_ndim, __pyx_v_order));

  /* "View.MemoryView":1234
 * 
 * 
 *     for i in range(ndim):             # <<<<<<<<<<<<<<
 *         if tmpslice.shape[i] == 1:
 *             tmpslice.strides[i] = 0
 */
  __pyx_t_3 = __pyx_v_ndim;
  __pyx_t_5 = __pyx_t_3;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "View.MemoryView":1235
 * 
 *     for i in range(ndim):
 *         if tmpslice.shape[i] == 1:             # <<<<<<<<<<<<<<
 *             tmpslice.strides[i] = 0
 * 
 */
    __pyx_t_2 = (((__pyx_v_tmpslice->shape[__pyx_v_i]) == 1) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1236
 *     for i in range(ndim):
 *         if tmpslice.shape[i] == 1:
 *             tmpslice.strides[i] = 0             # <<<<<<<<<<<<<<
 * 
 *     if slice_is_contig(src[0], order, ndim):
 */
      (__pyx_v_tmpslice->strides[__pyx_v_i]) = 0;

      /* "View.MemoryView":1235
 * 
 *     for i in range(ndim):
 *         if tmpslice.shape[i] == 1:             # <<<<<<<<<<<<<<
 *             tmpslice.strides[i] = 0
 * 
 */
    }
  }

  /* "View.MemoryView":1238
 *             tmpslice.strides[i] = 0
 * 
 *     if slice_is_contig(src[0], order, ndim):             # <<<<<<<<<<<<<<
 *         memcpy(result, src.data, size)
 *     else:
 */
  __pyx_t_2 = (__pyx_memviewslice_is_contig((__pyx_v_src[0]), __pyx_v_order, __pyx_v_ndim) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1239
 * 
 *     if slice_is_contig(src[0], order, ndim):
 *         memcpy(result, src.data, size)             # <<<<<<<<<<<<<<
 *     else:
 *         copy_strided_to_strided(src, tmpslice, ndim, itemsize)
 */
    (void)(memcpy(__pyx_v_result, __pyx_v_src->data, __pyx_v_size));

    /* "View.MemoryView":1238
 *             tmpslice.strides[i] = 0
 * 
 *     if slice_is_contig(src[0], order, ndim):             # <<<<<<<<<<<<<<
 *         memcpy(result, src.data, size)
 *     else:
 */
    goto __pyx_L9;
  }

  /* "View.MemoryView":1241
 *         memcpy(result, src.data, size)
 *     else:
 *         copy_strided_to_strided(src, tmpslice, ndim, itemsize)             # <<<<<<<<<<<<<<
 * 
 *     return result
 */
  /*else*/ {
    copy_strided_to_strided(__pyx_v_src, __pyx_v_tmpslice, __pyx_v_ndim, __pyx_v_itemsize);
  }
  __pyx_L9:;

  /* "View.MemoryView":1243
 *         copy_strided_to_strided(src, tmpslice, ndim, itemsize)
 * 
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "View.MemoryView":1205
 * 
 * @cname('__pyx_memoryview_copy_data_to_temp')
 * cdef void *copy_data_to_temp(__Pyx_memviewslice *src,             # <<<<<<<<<<<<<<
 *                              __Pyx_memviewslice *tmpslice,
 *                              char order,
 */

  /* function exit code */
  __pyx_L1_error:;
  {
    #ifdef WITH_THREAD
    PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
    #endif
    __Pyx_AddTraceback("View.MemoryView.copy_data_to_temp", __pyx_clineno, __pyx_lineno, __pyx_filename);
    #ifdef WITH_THREAD
    __Pyx_PyGILState_Release(__pyx_gilstate_save);
    #endif
  }
  __pyx_r = NULL;
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":1248
 * 
 * @cname('__pyx_memoryview_err_extents')
 * cdef int _err_extents(int i, Py_ssize_t extent1,             # <<<<<<<<<<<<<<
 *                              Py_ssize_t extent2) except -1 with gil:
 *     raise ValueError("got differing extents in dimension %d (got %d and %d)" %
 */

static int __pyx_memoryview_err_extents(int __pyx_v_i, Py_ssize_t __pyx_v_extent1, Py_ssize_t __pyx_v_extent2) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("_err_extents", 0);

  /* "View.MemoryView":1251
 *                              Py_ssize_t extent2) except -1 with gil:
 *     raise ValueError("got differing extents in dimension %d (got %d and %d)" %
 *                                                         (i, extent1, extent2))             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_err_dim')
 */
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_extent1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_extent2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;

  /* "View.MemoryView":1250
 * cdef int _err_extents(int i, Py_ssize_t extent1,
 *                              Py_ssize_t extent2) except -1 with gil:
 *     raise ValueError("got differing extents in dimension %d (got %d and %d)" %             # <<<<<<<<<<<<<<
 *                                                         (i, extent1, extent2))
 * 
 */
  __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_Raise(__pyx_t_4, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __PYX_ERR(1, 1250, __pyx_L1_error)

  /* "View.MemoryView":1248
 * 
 * @cname('__pyx_memoryview_err_extents')
 * cdef int _err_extents(int i, Py_ssize_t extent1,             # <<<<<<<<<<<<<<
 *                              Py_ssize_t extent2) except -1 with gil:
 *     raise ValueError("got differing extents in dimension %d (got %d and %d)" %
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("View.MemoryView._err_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "View.MemoryView":1254
 * 
 * @cname('__pyx_memoryview_err_dim')
 * cdef int _err_dim(object error, char *msg, int dim) except -1 with gil:             # <<<<<<<<<<<<<<
 *     raise error(msg.decode('ascii') % dim)
 * 
 */

static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error, char *__pyx_v_msg, int __pyx_v_dim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("_err_dim", 0);
  __Pyx_INCREF(__pyx_v_error);

  /* "View.MemoryView":1255
 * @cname('__pyx_memoryview_err_dim')
 * cdef int _err_dim(object error, char *msg, int dim) except -1 with gil:
 *     raise error(msg.decode('ascii') % dim)             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_err')
 */
  __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_dim); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyUnicode_Format(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_INCREF(__pyx_v_error);
  __pyx_t_3 = __pyx_v_error; __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 1255, __pyx_L1_error)

  /* "View.MemoryView":1254
 * 
 * @cname('__pyx_memoryview_err_dim')
 * cdef int _err_dim(object error, char *msg, int dim) except -1 with gil:             # <<<<<<<<<<<<<<
 *     raise error(msg.decode('ascii') % dim)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("View.MemoryView._err_dim", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_XDECREF(__pyx_v_error);
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "View.MemoryView":1258
 * 
 * @cname('__pyx_memoryview_err')
 * cdef int _err(object error, char *msg) except -1 with gil:             # <<<<<<<<<<<<<<
 *     if msg != NULL:
 *         raise error(msg.decode('ascii'))
 */

static int __pyx_memoryview_err(PyObject *__pyx_v_error, char *__pyx_v_msg) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("_err", 0);
  __Pyx_INCREF(__pyx_v_error);

  /* "View.MemoryView":1259
 * @cname('__pyx_memoryview_err')
 * cdef int _err(object error, char *msg) except -1 with gil:
 *     if msg != NULL:             # <<<<<<<<<<<<<<
 *         raise error(msg.decode('ascii'))
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_msg != NULL) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "View.MemoryView":1260
 * cdef int _err(object error, char *msg) except -1 with gil:
 *     if msg != NULL:
 *         raise error(msg.decode('ascii'))             # <<<<<<<<<<<<<<
 *     else:
 *         raise error
 */
    __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_error);
    __pyx_t_4 = __pyx_v_error; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1260, __pyx_L1_error)

    /* "View.MemoryView":1259
 * @cname('__pyx_memoryview_err')
 * cdef int _err(object error, char *msg) except -1 with gil:
 *     if msg != NULL:             # <<<<<<<<<<<<<<
 *         raise error(msg.decode('ascii'))
 *     else:
 */
  }

  /* "View.MemoryView":1262
 *         raise error(msg.decode('ascii'))
 *     else:
 *         raise error             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_copy_contents')
 */
  /*else*/ {
    __Pyx_Raise(__pyx_v_error, 0, 0, 0);
    __PYX_ERR(1, 1262, __pyx_L1_error)
  }

  /* "View.MemoryView":1258
 * 
 * @cname('__pyx_memoryview_err')
 * cdef int _err(object error, char *msg) except -1 with gil:             # <<<<<<<<<<<<<<
 *     if msg != NULL:
 *         raise error(msg.decode('ascii'))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView._err", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_XDECREF(__pyx_v_error);
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "View.MemoryView":1265
 * 
 * @cname('__pyx_memoryview_copy_contents')
 * cdef int memoryview_copy_contents(__Pyx_memviewslice src,             # <<<<<<<<<<<<<<
 *                                   __Pyx_memviewslice dst,
 *                                   int src_ndim, int dst_ndim,
 */

static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_memviewslice __pyx_v_dst, int __pyx_v_src_ndim, int __pyx_v_dst_ndim, int __pyx_v_dtype_is_object) {
  void *__pyx_v_tmpdata;
  size_t __pyx_v_itemsize;
  int __pyx_v_i;
  char __pyx_v_order;
  int __pyx_v_broadcasting;
  int __pyx_v_direct_copy;
  __Pyx_memviewslice __pyx_v_tmp;
  int __pyx_v_ndim;
  int __pyx_r;
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  void *__pyx_t_7;
  int __pyx_t_8;

  /* "View.MemoryView":1273
 *     Check for overlapping memory and verify the shapes.
 *     """
 *     cdef void *tmpdata = NULL             # <<<<<<<<<<<<<<
 *     cdef size_t itemsize = src.memview.view.itemsize
 *     cdef int i
 */
  __pyx_v_tmpdata = NULL;

  /* "View.MemoryView":1274
 *     """
 *     cdef void *tmpdata = NULL
 *     cdef size_t itemsize = src.memview.view.itemsize             # <<<<<<<<<<<<<<
 *     cdef int i
 *     cdef char order = get_best_order(&src, src_ndim)
 */
  __pyx_t_1 = __pyx_v_src.memview->view.itemsize;
  __pyx_v_itemsize = __pyx_t_1;

  /* "View.MemoryView":1276
 *     cdef size_t itemsize = src.memview.view.itemsize
 *     cdef int i
 *     cdef char order = get_best_order(&src, src_ndim)             # <<<<<<<<<<<<<<
 *     cdef bint broadcasting = False
 *     cdef bint direct_copy = False
 */
  __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_src), __pyx_v_src_ndim);

  /* "View.MemoryView":1277
 *     cdef int i
 *     cdef char order = get_best_order(&src, src_ndim)
 *     cdef bint broadcasting = False             # <<<<<<<<<<<<<<
 *     cdef bint direct_copy = False
 *     cdef __Pyx_memviewslice tmp
 */
  __pyx_v_broadcasting = 0;

  /* "View.MemoryView":1278
 *     cdef char order = get_best_order(&src, src_ndim)
 *     cdef bint broadcasting = False
 *     cdef bint direct_copy = False             # <<<<<<<<<<<<<<
 *     cdef __Pyx_memviewslice tmp
 * 
 */
  __pyx_v_direct_copy = 0;

  /* "View.MemoryView":1281
 *     cdef __Pyx_memviewslice tmp
 * 
 *     if src_ndim < dst_ndim:             # <<<<<<<<<<<<<<
 *         broadcast_leading(&src, src_ndim, dst_ndim)
 *     elif dst_ndim < src_ndim:
 */
  __pyx_t_2 = ((__pyx_v_src_ndim < __pyx_v_dst_ndim) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1282
 * 
 *     if src_ndim < dst_ndim:
 *         broadcast_leading(&src, src_ndim, dst_ndim)             # <<<<<<<<<<<<<<
 *     elif dst_ndim < src_ndim:
 *         broadcast_leading(&dst, dst_ndim, src_ndim)
 */
    __pyx_memoryview_broadcast_leading((&__pyx_v_src), __pyx_v_src_ndim, __pyx_v_dst_ndim);

    /* "View.MemoryView":1281
 *     cdef __Pyx_memviewslice tmp
 * 
 *     if src_ndim < dst_ndim:             # <<<<<<<<<<<<<<
 *         broadcast_leading(&src, src_ndim, dst_ndim)
 *     elif dst_ndim < src_ndim:
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":1283
 *     if src_ndim < dst_ndim:
 *         broadcast_leading(&src, src_ndim, dst_ndim)
 *     elif dst_ndim < src_ndim:             # <<<<<<<<<<<<<<
 *         broadcast_leading(&dst, dst_ndim, src_ndim)
 * 
 */
  __pyx_t_2 = ((__pyx_v_dst_ndim < __pyx_v_src_ndim) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1284
 *         broadcast_leading(&src, src_ndim, dst_ndim)
 *     elif dst_ndim < src_ndim:
 *         broadcast_leading(&dst, dst_ndim, src_ndim)             # <<<<<<<<<<<<<<
 * 
 *     cdef int ndim = max(src_ndim, dst_ndim)
 */
    __pyx_memoryview_broadcast_leading((&__pyx_v_dst), __pyx_v_dst_ndim, __pyx_v_src_ndim);

    /* "View.MemoryView":1283
 *     if src_ndim < dst_ndim:
 *         broadcast_leading(&src, src_ndim, dst_ndim)
 *     elif dst_ndim < src_ndim:             # <<<<<<<<<<<<<<
 *         broadcast_leading(&dst, dst_ndim, src_ndim)
 * 
 */
  }
  __pyx_L3:;

  /* "View.MemoryView":1286
 *         broadcast_leading(&dst, dst_ndim, src_ndim)
 * 
 *     cdef int ndim = max(src_ndim, dst_ndim)             # <<<<<<<<<<<<<<
 * 
 *     for i in range(ndim):
 */
  __pyx_t_3 = __pyx_v_dst_ndim;
  __pyx_t_4 = __pyx_v_src_ndim;
  if (((__pyx_t_3 > __pyx_t_4) != 0)) {
    __pyx_t_5 = __pyx_t_3;
  } else {
    __pyx_t_5 = __pyx_t_4;
  }
  __pyx_v_ndim = __pyx_t_5;

  /* "View.MemoryView":1288
 *     cdef int ndim = max(src_ndim, dst_ndim)
 * 
 *     for i in range(ndim):             # <<<<<<<<<<<<<<
 *         if src.shape[i] != dst.shape[i]:
 *             if src.shape[i] == 1:
 */
  __pyx_t_5 = __pyx_v_ndim;
  __pyx_t_3 = __pyx_t_5;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "View.MemoryView":1289
 * 
 *     for i in range(ndim):
 *         if src.shape[i] != dst.shape[i]:             # <<<<<<<<<<<<<<
 *             if src.shape[i] == 1:
 *                 broadcasting = True
 */
    __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) != (__pyx_v_dst.shape[__pyx_v_i])) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1290
 *     for i in range(ndim):
 *         if src.shape[i] != dst.shape[i]:
 *             if src.shape[i] == 1:             # <<<<<<<<<<<<<<
 *                 broadcasting = True
 *                 src.strides[i] = 0
 */
      __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) == 1) != 0);
      if (__pyx_t_2) {

        /* "View.MemoryView":1291
 *         if src.shape[i] != dst.shape[i]:
 *             if src.shape[i] == 1:
 *                 broadcasting = True             # <<<<<<<<<<<<<<
 *                 src.strides[i] = 0
 *             else:
 */
        __pyx_v_broadcasting = 1;

        /* "View.MemoryView":1292
 *             if src.shape[i] == 1:
 *                 broadcasting = True
 *                 src.strides[i] = 0             # <<<<<<<<<<<<<<
 *             else:
 *                 _err_extents(i, dst.shape[i], src.shape[i])
 */
        (__pyx_v_src.strides[__pyx_v_i]) = 0;

        /* "View.MemoryView":1290
 *     for i in range(ndim):
 *         if src.shape[i] != dst.shape[i]:
 *             if src.shape[i] == 1:             # <<<<<<<<<<<<<<
 *                 broadcasting = True
 *                 src.strides[i] = 0
 */
        goto __pyx_L7;
      }

      /* "View.MemoryView":1294
 *                 src.strides[i] = 0
 *             else:
 *                 _err_extents(i, dst.shape[i], src.shape[i])             # <<<<<<<<<<<<<<
 * 
 *         if src.suboffsets[i] >= 0:
 */
      /*else*/ {
        __pyx_t_6 = __pyx_memoryview_err_extents(__pyx_v_i, (__pyx_v_dst.shape[__pyx_v_i]), (__pyx_v_src.shape[__pyx_v_i])); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(1, 1294, __pyx_L1_error)
      }
      __pyx_L7:;

      /* "View.MemoryView":1289
 * 
 *     for i in range(ndim):
 *         if src.shape[i] != dst.shape[i]:             # <<<<<<<<<<<<<<
 *             if src.shape[i] == 1:
 *                 broadcasting = True
 */
    }

    /* "View.MemoryView":1296
 *                 _err_extents(i, dst.shape[i], src.shape[i])
 * 
 *         if src.suboffsets[i] >= 0:             # <<<<<<<<<<<<<<
 *             _err_dim(ValueError, "Dimension %d is not direct", i)
 * 
 */
    __pyx_t_2 = (((__pyx_v_src.suboffsets[__pyx_v_i]) >= 0) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1297
 * 
 *         if src.suboffsets[i] >= 0:
 *             _err_dim(ValueError, "Dimension %d is not direct", i)             # <<<<<<<<<<<<<<
 * 
 *     if slices_overlap(&src, &dst, ndim, itemsize):
 */
      __pyx_t_6 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((char *)"Dimension %d is not direct"), __pyx_v_i); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(1, 1297, __pyx_L1_error)

      /* "View.MemoryView":1296
 *                 _err_extents(i, dst.shape[i], src.shape[i])
 * 
 *         if src.suboffsets[i] >= 0:             # <<<<<<<<<<<<<<
 *             _err_dim(ValueError, "Dimension %d is not direct", i)
 * 
 */
    }
  }

  /* "View.MemoryView":1299
 *             _err_dim(ValueError, "Dimension %d is not direct", i)
 * 
 *     if slices_overlap(&src, &dst, ndim, itemsize):             # <<<<<<<<<<<<<<
 * 
 *         if not slice_is_contig(src, order, ndim):
 */
  __pyx_t_2 = (__pyx_slices_overlap((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1301
 *     if slices_overlap(&src, &dst, ndim, itemsize):
 * 
 *         if not slice_is_contig(src, order, ndim):             # <<<<<<<<<<<<<<
 *             order = get_best_order(&dst, ndim)
 * 
 */
    __pyx_t_2 = ((!(__pyx_memviewslice_is_contig(__pyx_v_src, __pyx_v_order, __pyx_v_ndim) != 0)) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1302
 * 
 *         if not slice_is_contig(src, order, ndim):
 *             order = get_best_order(&dst, ndim)             # <<<<<<<<<<<<<<
 * 
 *         tmpdata = copy_data_to_temp(&src, &tmp, order, ndim)
 */
      __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim);

      /* "View.MemoryView":1301
 *     if slices_overlap(&src, &dst, ndim, itemsize):
 * 
 *         if not slice_is_contig(src, order, ndim):             # <<<<<<<<<<<<<<
 *             order = get_best_order(&dst, ndim)
 * 
 */
    }

    /* "View.MemoryView":1304
 *             order = get_best_order(&dst, ndim)
 * 
 *         tmpdata = copy_data_to_temp(&src, &tmp, order, ndim)             # <<<<<<<<<<<<<<
 *         src = tmp
 * 
 */
    __pyx_t_7 = __pyx_memoryview_copy_data_to_temp((&__pyx_v_src), (&__pyx_v_tmp), __pyx_v_order, __pyx_v_ndim); if (unlikely(__pyx_t_7 == ((void *)NULL))) __PYX_ERR(1, 1304, __pyx_L1_error)
    __pyx_v_tmpdata = __pyx_t_7;

    /* "View.MemoryView":1305
 * 
 *         tmpdata = copy_data_to_temp(&src, &tmp, order, ndim)
 *         src = tmp             # <<<<<<<<<<<<<<
 * 
 *     if not broadcasting:
 */
    __pyx_v_src = __pyx_v_tmp;

    /* "View.MemoryView":1299
 *             _err_dim(ValueError, "Dimension %d is not direct", i)
 * 
 *     if slices_overlap(&src, &dst, ndim, itemsize):             # <<<<<<<<<<<<<<
 * 
 *         if not slice_is_contig(src, order, ndim):
 */
  }

  /* "View.MemoryView":1307
 *         src = tmp
 * 
 *     if not broadcasting:             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = ((!(__pyx_v_broadcasting != 0)) != 0);
  if (__pyx_t_2) {

    /* "View.MemoryView":1310
 * 
 * 
 *         if slice_is_contig(src, 'C', ndim):             # <<<<<<<<<<<<<<
 *             direct_copy = slice_is_contig(dst, 'C', ndim)
 *         elif slice_is_contig(src, 'F', ndim):
 */
    __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src, 'C', __pyx_v_ndim) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1311
 * 
 *         if slice_is_contig(src, 'C', ndim):
 *             direct_copy = slice_is_contig(dst, 'C', ndim)             # <<<<<<<<<<<<<<
 *         elif slice_is_contig(src, 'F', ndim):
 *             direct_copy = slice_is_contig(dst, 'F', ndim)
 */
      __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst, 'C', __pyx_v_ndim);

      /* "View.MemoryView":1310
 * 
 * 
 *         if slice_is_contig(src, 'C', ndim):             # <<<<<<<<<<<<<<
 *             direct_copy = slice_is_contig(dst, 'C', ndim)
 *         elif slice_is_contig(src, 'F', ndim):
 */
      goto __pyx_L12;
    }

    /* "View.MemoryView":1312
 *         if slice_is_contig(src, 'C', ndim):
 *             direct_copy = slice_is_contig(dst, 'C', ndim)
 *         elif slice_is_contig(src, 'F', ndim):             # <<<<<<<<<<<<<<
 *             direct_copy = slice_is_contig(dst, 'F', ndim)
 * 
 */
    __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src, 'F', __pyx_v_ndim) != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1313
 *             direct_copy = slice_is_contig(dst, 'C', ndim)
 *         elif slice_is_contig(src, 'F', ndim):
 *             direct_copy = slice_is_contig(dst, 'F', ndim)             # <<<<<<<<<<<<<<
 * 
 *         if direct_copy:
 */
      __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst, 'F', __pyx_v_ndim);

      /* "View.MemoryView":1312
 *         if slice_is_contig(src, 'C', ndim):
 *             direct_copy = slice_is_contig(dst, 'C', ndim)
 *         elif slice_is_contig(src, 'F', ndim):             # <<<<<<<<<<<<<<
 *             direct_copy = slice_is_contig(dst, 'F', ndim)
 * 
 */
    }
    __pyx_L12:;

    /* "View.MemoryView":1315
 *             direct_copy = slice_is_contig(dst, 'F', ndim)
 * 
 *         if direct_copy:             # <<<<<<<<<<<<<<
 * 
 *             refcount_copying(&dst, dtype_is_object, ndim, False)
 */
    __pyx_t_2 = (__pyx_v_direct_copy != 0);
    if (__pyx_t_2) {

      /* "View.MemoryView":1317
 *         if direct_copy:
 * 
 *             refcount_copying(&dst, dtype_is_object, ndim, False)             # <<<<<<<<<<<<<<
 *             memcpy(dst.data, src.data, slice_get_size(&src, ndim))
 *             refcount_copying(&dst, dtype_is_object, ndim, True)
 */
      __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0);

      /* "View.MemoryView":1318
 * 
 *             refcount_copying(&dst, dtype_is_object, ndim, False)
 *             memcpy(dst.data, src.data, slice_get_size(&src, ndim))             # <<<<<<<<<<<<<<
 *             refcount_copying(&dst, dtype_is_object, ndim, True)
 *             free(tmpdata)
 */
      (void)(memcpy(__pyx_v_dst.data, __pyx_v_src.data, __pyx_memoryview_slice_get_size((&__pyx_v_src), __pyx_v_ndim)));

      /* "View.MemoryView":1319
 *             refcount_copying(&dst, dtype_is_object, ndim, False)
 *             memcpy(dst.data, src.data, slice_get_size(&src, ndim))
 *             refcount_copying(&dst, dtype_is_object, ndim, True)             # <<<<<<<<<<<<<<
 *             free(tmpdata)
 *             return 0
 */
      __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1);

      /* "View.MemoryView":1320
 *             memcpy(dst.data, src.data, slice_get_size(&src, ndim))
 *             refcount_copying(&dst, dtype_is_object, ndim, True)
 *             free(tmpdata)             # <<<<<<<<<<<<<<
 *             return 0
 * 
 */
      free(__pyx_v_tmpdata);

      /* "View.MemoryView":1321
 *             refcount_copying(&dst, dtype_is_object, ndim, True)
 *             free(tmpdata)
 *             return 0             # <<<<<<<<<<<<<<
 * 
 *     if order == 'F' == get_best_order(&dst, ndim):
 */
      __pyx_r = 0;
      goto __pyx_L0;

      /* "View.MemoryView":1315
 *             direct_copy = slice_is_contig(dst, 'F', ndim)
 * 
 *         if direct_copy:             # <<<<<<<<<<<<<<
 * 
 *             refcount_copying(&dst, dtype_is_object, ndim, False)
 */
    }

    /* "View.MemoryView":1307
 *         src = tmp
 * 
 *     if not broadcasting:             # <<<<<<<<<<<<<<
 * 
 * 
 */
  }

  /* "View.MemoryView":1323
 *             return 0
 * 
 *     if order == 'F' == get_best_order(&dst, ndim):             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_2 = (__pyx_v_order == 'F');
  if (__pyx_t_2) {
    __pyx_t_2 = ('F' == __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim));
  }
  __pyx_t_8 = (__pyx_t_2 != 0);
  if (__pyx_t_8) {

    /* "View.MemoryView":1326
 * 
 * 
 *         transpose_memslice(&src)             # <<<<<<<<<<<<<<
 *         transpose_memslice(&dst)
 * 
 */
    __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_src)); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(1, 1326, __pyx_L1_error)

    /* "View.MemoryView":1327
 * 
 *         transpose_memslice(&src)
 *         transpose_memslice(&dst)             # <<<<<<<<<<<<<<
 * 
 *     refcount_copying(&dst, dtype_is_object, ndim, False)
 */
    __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_dst)); if (unlikely(__pyx_t_5 == ((int)0))) __PYX_ERR(1, 1327, __pyx_L1_error)

    /* "View.MemoryView":1323
 *             return 0
 * 
 *     if order == 'F' == get_best_order(&dst, ndim):             # <<<<<<<<<<<<<<
 * 
 * 
 */
  }

  /* "View.MemoryView":1329
 *         transpose_memslice(&dst)
 * 
 *     refcount_copying(&dst, dtype_is_object, ndim, False)             # <<<<<<<<<<<<<<
 *     copy_strided_to_strided(&src, &dst, ndim, itemsize)
 *     refcount_copying(&dst, dtype_is_object, ndim, True)
 */
  __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0);

  /* "View.MemoryView":1330
 * 
 *     refcount_copying(&dst, dtype_is_object, ndim, False)
 *     copy_strided_to_strided(&src, &dst, ndim, itemsize)             # <<<<<<<<<<<<<<
 *     refcount_copying(&dst, dtype_is_object, ndim, True)
 * 
 */
  copy_strided_to_strided((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize);

  /* "View.MemoryView":1331
 *     refcount_copying(&dst, dtype_is_object, ndim, False)
 *     copy_strided_to_strided(&src, &dst, ndim, itemsize)
 *     refcount_copying(&dst, dtype_is_object, ndim, True)             # <<<<<<<<<<<<<<
 * 
 *     free(tmpdata)
 */
  __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1);

  /* "View.MemoryView":1333
 *     refcount_copying(&dst, dtype_is_object, ndim, True)
 * 
 *     free(tmpdata)             # <<<<<<<<<<<<<<
 *     return 0
 * 
 */
  free(__pyx_v_tmpdata);

  /* "View.MemoryView":1334
 * 
 *     free(tmpdata)
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_broadcast_leading')
 */
  __pyx_r = 0;
  goto __pyx_L0;

  /* "View.MemoryView":1265
 * 
 * @cname('__pyx_memoryview_copy_contents')
 * cdef int memoryview_copy_contents(__Pyx_memviewslice src,             # <<<<<<<<<<<<<<
 *                                   __Pyx_memviewslice dst,
 *                                   int src_ndim, int dst_ndim,
 */

  /* function exit code */
  __pyx_L1_error:;
  {
    #ifdef WITH_THREAD
    PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
    #endif
    __Pyx_AddTraceback("View.MemoryView.memoryview_copy_contents", __pyx_clineno, __pyx_lineno, __pyx_filename);
    #ifdef WITH_THREAD
    __Pyx_PyGILState_Release(__pyx_gilstate_save);
    #endif
  }
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "View.MemoryView":1337
 * 
 * @cname('__pyx_memoryview_broadcast_leading')
 * cdef void broadcast_leading(__Pyx_memviewslice *mslice,             # <<<<<<<<<<<<<<
 *                             int ndim,
 *                             int ndim_other) nogil:
 */

static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslice, int __pyx_v_ndim, int __pyx_v_ndim_other) {
  int __pyx_v_i;
  int __pyx_v_offset;
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;

  /* "View.MemoryView":1341
 *                             int ndim_other) nogil:
 *     cdef int i
 *     cdef int offset = ndim_other - ndim             # <<<<<<<<<<<<<<
 * 
 *     for i in range(ndim - 1, -1, -1):
 */
  __pyx_v_offset = (__pyx_v_ndim_other - __pyx_v_ndim);

  /* "View.MemoryView":1343
 *     cdef int offset = ndim_other - ndim
 * 
 *     for i in range(ndim - 1, -1, -1):             # <<<<<<<<<<<<<<
 *         mslice.shape[i + offset] = mslice.shape[i]
 *         mslice.strides[i + offset] = mslice.strides[i]
 */
  for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) {
    __pyx_v_i = __pyx_t_1;

    /* "View.MemoryView":1344
 * 
 *     for i in range(ndim - 1, -1, -1):
 *         mslice.shape[i + offset] = mslice.shape[i]             # <<<<<<<<<<<<<<
 *         mslice.strides[i + offset] = mslice.strides[i]
 *         mslice.suboffsets[i + offset] = mslice.suboffsets[i]
 */
    (__pyx_v_mslice->shape[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->shape[__pyx_v_i]);

    /* "View.MemoryView":1345
 *     for i in range(ndim - 1, -1, -1):
 *         mslice.shape[i + offset] = mslice.shape[i]
 *         mslice.strides[i + offset] = mslice.strides[i]             # <<<<<<<<<<<<<<
 *         mslice.suboffsets[i + offset] = mslice.suboffsets[i]
 * 
 */
    (__pyx_v_mslice->strides[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->strides[__pyx_v_i]);

    /* "View.MemoryView":1346
 *         mslice.shape[i + offset] = mslice.shape[i]
 *         mslice.strides[i + offset] = mslice.strides[i]
 *         mslice.suboffsets[i + offset] = mslice.suboffsets[i]             # <<<<<<<<<<<<<<
 * 
 *     for i in range(offset):
 */
    (__pyx_v_mslice->suboffsets[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->suboffsets[__pyx_v_i]);
  }

  /* "View.MemoryView":1348
 *         mslice.suboffsets[i + offset] = mslice.suboffsets[i]
 * 
 *     for i in range(offset):             # <<<<<<<<<<<<<<
 *         mslice.shape[i] = 1
 *         mslice.strides[i] = mslice.strides[0]
 */
  __pyx_t_1 = __pyx_v_offset;
  __pyx_t_2 = __pyx_t_1;
  for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
    __pyx_v_i = __pyx_t_3;

    /* "View.MemoryView":1349
 * 
 *     for i in range(offset):
 *         mslice.shape[i] = 1             # <<<<<<<<<<<<<<
 *         mslice.strides[i] = mslice.strides[0]
 *         mslice.suboffsets[i] = -1
 */
    (__pyx_v_mslice->shape[__pyx_v_i]) = 1;

    /* "View.MemoryView":1350
 *     for i in range(offset):
 *         mslice.shape[i] = 1
 *         mslice.strides[i] = mslice.strides[0]             # <<<<<<<<<<<<<<
 *         mslice.suboffsets[i] = -1
 * 
 */
    (__pyx_v_mslice->strides[__pyx_v_i]) = (__pyx_v_mslice->strides[0]);

    /* "View.MemoryView":1351
 *         mslice.shape[i] = 1
 *         mslice.strides[i] = mslice.strides[0]
 *         mslice.suboffsets[i] = -1             # <<<<<<<<<<<<<<
 * 
 * 
 */
    (__pyx_v_mslice->suboffsets[__pyx_v_i]) = -1L;
  }

  /* "View.MemoryView":1337
 * 
 * @cname('__pyx_memoryview_broadcast_leading')
 * cdef void broadcast_leading(__Pyx_memviewslice *mslice,             # <<<<<<<<<<<<<<
 *                             int ndim,
 *                             int ndim_other) nogil:
 */

  /* function exit code */
}

/* "View.MemoryView":1359
 * 
 * @cname('__pyx_memoryview_refcount_copying')
 * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object,             # <<<<<<<<<<<<<<
 *                            int ndim, bint inc) nogil:
 * 
 */

static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst, int __pyx_v_dtype_is_object, int __pyx_v_ndim, int __pyx_v_inc) {
  int __pyx_t_1;

  /* "View.MemoryView":1363
 * 
 * 
 *     if dtype_is_object:             # <<<<<<<<<<<<<<
 *         refcount_objects_in_slice_with_gil(dst.data, dst.shape,
 *                                            dst.strides, ndim, inc)
 */
  __pyx_t_1 = (__pyx_v_dtype_is_object != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1364
 * 
 *     if dtype_is_object:
 *         refcount_objects_in_slice_with_gil(dst.data, dst.shape,             # <<<<<<<<<<<<<<
 *                                            dst.strides, ndim, inc)
 * 
 */
    __pyx_memoryview_refcount_objects_in_slice_with_gil(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_inc);

    /* "View.MemoryView":1363
 * 
 * 
 *     if dtype_is_object:             # <<<<<<<<<<<<<<
 *         refcount_objects_in_slice_with_gil(dst.data, dst.shape,
 *                                            dst.strides, ndim, inc)
 */
  }

  /* "View.MemoryView":1359
 * 
 * @cname('__pyx_memoryview_refcount_copying')
 * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object,             # <<<<<<<<<<<<<<
 *                            int ndim, bint inc) nogil:
 * 
 */

  /* function exit code */
}

/* "View.MemoryView":1368
 * 
 * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil')
 * cdef void refcount_objects_in_slice_with_gil(char *data, Py_ssize_t *shape,             # <<<<<<<<<<<<<<
 *                                              Py_ssize_t *strides, int ndim,
 *                                              bint inc) with gil:
 */

static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, int __pyx_v_inc) {
  __Pyx_RefNannyDeclarations
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("refcount_objects_in_slice_with_gil", 0);

  /* "View.MemoryView":1371
 *                                              Py_ssize_t *strides, int ndim,
 *                                              bint inc) with gil:
 *     refcount_objects_in_slice(data, shape, strides, ndim, inc)             # <<<<<<<<<<<<<<
 * 
 * @cname('__pyx_memoryview_refcount_objects_in_slice')
 */
  __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, __pyx_v_shape, __pyx_v_strides, __pyx_v_ndim, __pyx_v_inc);

  /* "View.MemoryView":1368
 * 
 * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil')
 * cdef void refcount_objects_in_slice_with_gil(char *data, Py_ssize_t *shape,             # <<<<<<<<<<<<<<
 *                                              Py_ssize_t *strides, int ndim,
 *                                              bint inc) with gil:
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "View.MemoryView":1374
 * 
 * @cname('__pyx_memoryview_refcount_objects_in_slice')
 * cdef void refcount_objects_in_slice(char *data, Py_ssize_t *shape,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t *strides, int ndim, bint inc):
 *     cdef Py_ssize_t i
 */

static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, int __pyx_v_inc) {
  CYTHON_UNUSED Py_ssize_t __pyx_v_i;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("refcount_objects_in_slice", 0);

  /* "View.MemoryView":1378
 *     cdef Py_ssize_t i
 * 
 *     for i in range(shape[0]):             # <<<<<<<<<<<<<<
 *         if ndim == 1:
 *             if inc:
 */
  __pyx_t_1 = (__pyx_v_shape[0]);
  __pyx_t_2 = __pyx_t_1;
  for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
    __pyx_v_i = __pyx_t_3;

    /* "View.MemoryView":1379
 * 
 *     for i in range(shape[0]):
 *         if ndim == 1:             # <<<<<<<<<<<<<<
 *             if inc:
 *                 Py_INCREF((<PyObject **> data)[0])
 */
    __pyx_t_4 = ((__pyx_v_ndim == 1) != 0);
    if (__pyx_t_4) {

      /* "View.MemoryView":1380
 *     for i in range(shape[0]):
 *         if ndim == 1:
 *             if inc:             # <<<<<<<<<<<<<<
 *                 Py_INCREF((<PyObject **> data)[0])
 *             else:
 */
      __pyx_t_4 = (__pyx_v_inc != 0);
      if (__pyx_t_4) {

        /* "View.MemoryView":1381
 *         if ndim == 1:
 *             if inc:
 *                 Py_INCREF((<PyObject **> data)[0])             # <<<<<<<<<<<<<<
 *             else:
 *                 Py_DECREF((<PyObject **> data)[0])
 */
        Py_INCREF((((PyObject **)__pyx_v_data)[0]));

        /* "View.MemoryView":1380
 *     for i in range(shape[0]):
 *         if ndim == 1:
 *             if inc:             # <<<<<<<<<<<<<<
 *                 Py_INCREF((<PyObject **> data)[0])
 *             else:
 */
        goto __pyx_L6;
      }

      /* "View.MemoryView":1383
 *                 Py_INCREF((<PyObject **> data)[0])
 *             else:
 *                 Py_DECREF((<PyObject **> data)[0])             # <<<<<<<<<<<<<<
 *         else:
 *             refcount_objects_in_slice(data, shape + 1, strides + 1,
 */
      /*else*/ {
        Py_DECREF((((PyObject **)__pyx_v_data)[0]));
      }
      __pyx_L6:;

      /* "View.MemoryView":1379
 * 
 *     for i in range(shape[0]):
 *         if ndim == 1:             # <<<<<<<<<<<<<<
 *             if inc:
 *                 Py_INCREF((<PyObject **> data)[0])
 */
      goto __pyx_L5;
    }

    /* "View.MemoryView":1385
 *                 Py_DECREF((<PyObject **> data)[0])
 *         else:
 *             refcount_objects_in_slice(data, shape + 1, strides + 1,             # <<<<<<<<<<<<<<
 *                                       ndim - 1, inc)
 * 
 */
    /*else*/ {

      /* "View.MemoryView":1386
 *         else:
 *             refcount_objects_in_slice(data, shape + 1, strides + 1,
 *                                       ndim - 1, inc)             # <<<<<<<<<<<<<<
 * 
 *         data += strides[0]
 */
      __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_inc);
    }
    __pyx_L5:;

    /* "View.MemoryView":1388
 *                                       ndim - 1, inc)
 * 
 *         data += strides[0]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_v_data = (__pyx_v_data + (__pyx_v_strides[0]));
  }

  /* "View.MemoryView":1374
 * 
 * @cname('__pyx_memoryview_refcount_objects_in_slice')
 * cdef void refcount_objects_in_slice(char *data, Py_ssize_t *shape,             # <<<<<<<<<<<<<<
 *                                     Py_ssize_t *strides, int ndim, bint inc):
 *     cdef Py_ssize_t i
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "View.MemoryView":1394
 * 
 * @cname('__pyx_memoryview_slice_assign_scalar')
 * cdef void slice_assign_scalar(__Pyx_memviewslice *dst, int ndim,             # <<<<<<<<<<<<<<
 *                               size_t itemsize, void *item,
 *                               bint dtype_is_object) nogil:
 */

static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst, int __pyx_v_ndim, size_t __pyx_v_itemsize, void *__pyx_v_item, int __pyx_v_dtype_is_object) {

  /* "View.MemoryView":1397
 *                               size_t itemsize, void *item,
 *                               bint dtype_is_object) nogil:
 *     refcount_copying(dst, dtype_is_object, ndim, False)             # <<<<<<<<<<<<<<
 *     _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim,
 *                          itemsize, item)
 */
  __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 0);

  /* "View.MemoryView":1398
 *                               bint dtype_is_object) nogil:
 *     refcount_copying(dst, dtype_is_object, ndim, False)
 *     _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim,             # <<<<<<<<<<<<<<
 *                          itemsize, item)
 *     refcount_copying(dst, dtype_is_object, ndim, True)
 */
  __pyx_memoryview__slice_assign_scalar(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_itemsize, __pyx_v_item);

  /* "View.MemoryView":1400
 *     _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim,
 *                          itemsize, item)
 *     refcount_copying(dst, dtype_is_object, ndim, True)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 1);

  /* "View.MemoryView":1394
 * 
 * @cname('__pyx_memoryview_slice_assign_scalar')
 * cdef void slice_assign_scalar(__Pyx_memviewslice *dst, int ndim,             # <<<<<<<<<<<<<<
 *                               size_t itemsize, void *item,
 *                               bint dtype_is_object) nogil:
 */

  /* function exit code */
}

/* "View.MemoryView":1404
 * 
 * @cname('__pyx_memoryview__slice_assign_scalar')
 * cdef void _slice_assign_scalar(char *data, Py_ssize_t *shape,             # <<<<<<<<<<<<<<
 *                               Py_ssize_t *strides, int ndim,
 *                               size_t itemsize, void *item) nogil:
 */

static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, size_t __pyx_v_itemsize, void *__pyx_v_item) {
  CYTHON_UNUSED Py_ssize_t __pyx_v_i;
  Py_ssize_t __pyx_v_stride;
  Py_ssize_t __pyx_v_extent;
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;

  /* "View.MemoryView":1408
 *                               size_t itemsize, void *item) nogil:
 *     cdef Py_ssize_t i
 *     cdef Py_ssize_t stride = strides[0]             # <<<<<<<<<<<<<<
 *     cdef Py_ssize_t extent = shape[0]
 * 
 */
  __pyx_v_stride = (__pyx_v_strides[0]);

  /* "View.MemoryView":1409
 *     cdef Py_ssize_t i
 *     cdef Py_ssize_t stride = strides[0]
 *     cdef Py_ssize_t extent = shape[0]             # <<<<<<<<<<<<<<
 * 
 *     if ndim == 1:
 */
  __pyx_v_extent = (__pyx_v_shape[0]);

  /* "View.MemoryView":1411
 *     cdef Py_ssize_t extent = shape[0]
 * 
 *     if ndim == 1:             # <<<<<<<<<<<<<<
 *         for i in range(extent):
 *             memcpy(data, item, itemsize)
 */
  __pyx_t_1 = ((__pyx_v_ndim == 1) != 0);
  if (__pyx_t_1) {

    /* "View.MemoryView":1412
 * 
 *     if ndim == 1:
 *         for i in range(extent):             # <<<<<<<<<<<<<<
 *             memcpy(data, item, itemsize)
 *             data += stride
 */
    __pyx_t_2 = __pyx_v_extent;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_v_i = __pyx_t_4;

      /* "View.MemoryView":1413
 *     if ndim == 1:
 *         for i in range(extent):
 *             memcpy(data, item, itemsize)             # <<<<<<<<<<<<<<
 *             data += stride
 *     else:
 */
      (void)(memcpy(__pyx_v_data, __pyx_v_item, __pyx_v_itemsize));

      /* "View.MemoryView":1414
 *         for i in range(extent):
 *             memcpy(data, item, itemsize)
 *             data += stride             # <<<<<<<<<<<<<<
 *     else:
 *         for i in range(extent):
 */
      __pyx_v_data = (__pyx_v_data + __pyx_v_stride);
    }

    /* "View.MemoryView":1411
 *     cdef Py_ssize_t extent = shape[0]
 * 
 *     if ndim == 1:             # <<<<<<<<<<<<<<
 *         for i in range(extent):
 *             memcpy(data, item, itemsize)
 */
    goto __pyx_L3;
  }

  /* "View.MemoryView":1416
 *             data += stride
 *     else:
 *         for i in range(extent):             # <<<<<<<<<<<<<<
 *             _slice_assign_scalar(data, shape + 1, strides + 1,
 *                                 ndim - 1, itemsize, item)
 */
  /*else*/ {
    __pyx_t_2 = __pyx_v_extent;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_v_i = __pyx_t_4;

      /* "View.MemoryView":1417
 *     else:
 *         for i in range(extent):
 *             _slice_assign_scalar(data, shape + 1, strides + 1,             # <<<<<<<<<<<<<<
 *                                 ndim - 1, itemsize, item)
 *             data += stride
 */
      __pyx_memoryview__slice_assign_scalar(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize, __pyx_v_item);

      /* "View.MemoryView":1419
 *             _slice_assign_scalar(data, shape + 1, strides + 1,
 *                                 ndim - 1, itemsize, item)
 *             data += stride             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __pyx_v_data = (__pyx_v_data + __pyx_v_stride);
    }
  }
  __pyx_L3:;

  /* "View.MemoryView":1404
 * 
 * @cname('__pyx_memoryview__slice_assign_scalar')
 * cdef void _slice_assign_scalar(char *data, Py_ssize_t *shape,             # <<<<<<<<<<<<<<
 *                               Py_ssize_t *strides, int ndim,
 *                               size_t itemsize, void *item) nogil:
 */

  /* function exit code */
}

/* "(tree fragment)":1
 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum = {"__pyx_unpickle_Enum", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_Enum (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_Enum") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("__pyx_unpickle_Enum", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xb068931:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xb068931) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xb068931:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)
 *     __pyx_result = Enum.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0xb068931:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = Enum.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xb0, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0xb068931:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)
 *     __pyx_result = Enum.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_MemviewEnum_type), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)
 *     __pyx_result = Enum.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = Enum.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_unpickle_Enum__set_state(((struct __pyx_MemviewEnum_obj *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0xb068931 = (name))" % __pyx_checksum)
 *     __pyx_result = Enum.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):
 *     __pyx_result.name = __pyx_state[0]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.name = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("__pyx_unpickle_Enum__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):
 *     __pyx_result.name = __pyx_state[0]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[1])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(1, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->name);
  __Pyx_DECREF(__pyx_v___pyx_result->name);
  __pyx_v___pyx_result->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):
 *     __pyx_result.name = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[1])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 13, __pyx_L1_error)
  }
  __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_4 = ((__pyx_t_3 > 1) != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_2 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "(tree fragment)":14
 *     __pyx_result.name = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[1])             # <<<<<<<<<<<<<<
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 14, __pyx_L1_error)
    }
    __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):
 *     __pyx_result.name = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[1])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.name = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("View.MemoryView.__pyx_unpickle_Enum__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase __pyx_vtable_13variant_tools_11io_vcf_read_InputStreamBase;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_InputStreamBase(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)o);
  p->__pyx_vtab = __pyx_vtabptr_13variant_tools_11io_vcf_read_InputStreamBase;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_InputStreamBase(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_InputStreamBase[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15InputStreamBase_1__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15InputStreamBase_3__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_InputStreamBase = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.InputStreamBase", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_InputStreamBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  "Abstract base class defining an input stream over C chars.", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_InputStreamBase, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_InputStreamBase, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_FileInputStream __pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_FileInputStream(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_InputStreamBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_FileInputStream;
  p->fileobj = Py_None; Py_INCREF(Py_None);
  p->buffer = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_FileInputStream(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->fileobj);
  Py_CLEAR(p->buffer);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_InputStreamBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_FileInputStream(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)o;
  e = ((likely(__pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase)) ? ((__pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase->tp_traverse) ? __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_13variant_tools_11io_vcf_read_FileInputStream)); if (e) return e;
  if (p->fileobj) {
    e = (*v)(p->fileobj, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_FileInputStream(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *)o;
  if (likely(__pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase)) { if (__pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase->tp_clear) __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_13variant_tools_11io_vcf_read_FileInputStream);
  tmp = ((PyObject*)p->fileobj);
  p->fileobj = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_FileInputStream[] = {
  {"readline", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_5readline, METH_NOARGS, __pyx_doc_13variant_tools_11io_vcf_read_15FileInputStream_4readline},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_FileInputStream = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.FileInputStream", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_FileInputStream, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_FileInputStream, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_FileInputStream, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_FileInputStream, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_15FileInputStream_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_FileInputStream, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_CharVectorInputStream __pyx_vtable_13variant_tools_11io_vcf_read_CharVectorInputStream;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_CharVectorInputStream(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_InputStreamBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_InputStreamBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_CharVectorInputStream;
  if (unlikely(__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_CharVectorInputStream(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_InputStreamBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_CharVectorInputStream[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_5__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21CharVectorInputStream_7__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.CharVectorInputStream", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_CharVectorInputStream, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_CharVectorInputStream, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_CharVectorInputStream, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFContext(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)o);
  p->headers = Py_None; Py_INCREF(Py_None);
  p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->formats = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFContext(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->headers);
  Py_CLEAR(p->fields);
  Py_CLEAR(p->formats);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFContext(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)o;
  if (p->headers) {
    e = (*v)(p->headers, a); if (e) return e;
  }
  if (p->fields) {
    e = (*v)(p->fields, a); if (e) return e;
  }
  if (p->formats) {
    e = (*v)(p->formats, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFContext(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)o;
  tmp = ((PyObject*)p->headers);
  p->headers = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->fields);
  p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->formats);
  p->formats = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFContext[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_5__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_10VCFContext_7__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFContext = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFContext", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFContext, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFContext, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFContext, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFContext, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFContext, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFChunkIterator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)o);
  p->stream = ((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)Py_None); Py_INCREF(Py_None);
  p->context = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)Py_None); Py_INCREF(Py_None);
  p->parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFChunkIterator(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->stream);
  Py_CLEAR(p->context);
  Py_CLEAR(p->parser);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFChunkIterator(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)o;
  if (p->stream) {
    e = (*v)(((PyObject *)p->stream), a); if (e) return e;
  }
  if (p->context) {
    e = (*v)(((PyObject *)p->context), a); if (e) return e;
  }
  if (p->parser) {
    e = (*v)(((PyObject *)p->parser), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFChunkIterator(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator *)o;
  tmp = ((PyObject*)p->stream);
  p->stream = ((struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->context);
  p->context = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->parser);
  p->parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_specialmethod___pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_5__next__(PyObject *self, CYTHON_UNUSED PyObject *arg) {return __pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_5__next__(self);}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFChunkIterator[] = {
  {"__next__", (PyCFunction)__pyx_specialmethod___pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_5__next__, METH_NOARGS|METH_COEXIST, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFChunkIterator", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChunkIterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFChunkIterator, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFChunkIterator, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFChunkIterator, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_3__iter__, /*tp_iter*/
  __pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_5__next__, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFChunkIterator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_16VCFChunkIterator_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFChunkIterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFParser(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)o);
  p->__pyx_vtab = __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFParser;
  p->chrom_pos_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->id_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->ref_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->alt_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->qual_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->filter_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->info_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->format_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->calldata_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  p->region_chrom = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->loc_samples.data = NULL;
  p->loc_samples.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->chrom_pos_parser);
  Py_CLEAR(p->id_parser);
  Py_CLEAR(p->ref_parser);
  Py_CLEAR(p->alt_parser);
  Py_CLEAR(p->qual_parser);
  Py_CLEAR(p->filter_parser);
  Py_CLEAR(p->info_parser);
  Py_CLEAR(p->format_parser);
  Py_CLEAR(p->calldata_parser);
  Py_CLEAR(p->region_chrom);
  __PYX_XDEC_MEMVIEW(&p->loc_samples, 1);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)o;
  if (p->chrom_pos_parser) {
    e = (*v)(((PyObject *)p->chrom_pos_parser), a); if (e) return e;
  }
  if (p->id_parser) {
    e = (*v)(((PyObject *)p->id_parser), a); if (e) return e;
  }
  if (p->ref_parser) {
    e = (*v)(((PyObject *)p->ref_parser), a); if (e) return e;
  }
  if (p->alt_parser) {
    e = (*v)(((PyObject *)p->alt_parser), a); if (e) return e;
  }
  if (p->qual_parser) {
    e = (*v)(((PyObject *)p->qual_parser), a); if (e) return e;
  }
  if (p->filter_parser) {
    e = (*v)(((PyObject *)p->filter_parser), a); if (e) return e;
  }
  if (p->info_parser) {
    e = (*v)(((PyObject *)p->info_parser), a); if (e) return e;
  }
  if (p->format_parser) {
    e = (*v)(((PyObject *)p->format_parser), a); if (e) return e;
  }
  if (p->calldata_parser) {
    e = (*v)(((PyObject *)p->calldata_parser), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *)o;
  tmp = ((PyObject*)p->chrom_pos_parser);
  p->chrom_pos_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->id_parser);
  p->id_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->ref_parser);
  p->ref_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->alt_parser);
  p->alt_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->qual_parser);
  p->qual_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->filter_parser);
  p->filter_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->info_parser);
  p->info_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->format_parser);
  p->format_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->calldata_parser);
  p->calldata_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFParser[] = {
  {"_init_region", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_3_init_region, METH_O, 0},
  {"_init_chrom_pos", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_5_init_chrom_pos, METH_VARARGS|METH_KEYWORDS, __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_4_init_chrom_pos},
  {"_init_id", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_7_init_id, METH_VARARGS|METH_KEYWORDS, __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_6_init_id},
  {"_init_ref", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_9_init_ref, METH_VARARGS|METH_KEYWORDS, 0},
  {"_init_alt", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_11_init_alt, METH_VARARGS|METH_KEYWORDS, __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_10_init_alt},
  {"_init_qual", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_13_init_qual, METH_VARARGS|METH_KEYWORDS, __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_12_init_qual},
  {"_init_filter", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_15_init_filter, METH_O, __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_14_init_filter},
  {"_init_info", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_17_init_info, METH_VARARGS|METH_KEYWORDS, 0},
  {"_init_format_calldata", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_19_init_format_calldata, METH_VARARGS|METH_KEYWORDS, __pyx_doc_13variant_tools_11io_vcf_read_9VCFParser_18_init_format_calldata},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_21__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_23__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_9VCFParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase __pyx_vtable_13variant_tools_11io_vcf_read_VCFFieldParserBase;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)o);
  p->__pyx_vtab = __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  p->key = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->dtype = ((PyArray_Descr *)Py_None); Py_INCREF(Py_None);
  p->fill = Py_None; Py_INCREF(Py_None);
  p->values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->key);
  Py_CLEAR(p->dtype);
  Py_CLEAR(p->fill);
  Py_CLEAR(p->values);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)o;
  if (p->dtype) {
    e = (*v)(((PyObject *)p->dtype), a); if (e) return e;
  }
  if (p->fill) {
    e = (*v)(p->fill, a); if (e) return e;
  }
  if (p->values) {
    e = (*v)(((PyObject *)p->values), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *)o;
  tmp = ((PyObject*)p->dtype);
  p->dtype = ((PyArray_Descr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->fill);
  p->fill = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->values);
  p->values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFFieldParserBase[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFFieldParserBase", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "Abstract base class for top-level field parsers.", /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFSkipFieldParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipFieldParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFSkipFieldParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipFieldParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFSkipFieldParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFSkipFieldParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipFieldParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "Parser to skip a tab-delimited field.", /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFSkipFieldParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFSkipFieldParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFChromPosParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFChromPosParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFChromPosParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFChromPosParser;
  p->chrom_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->pos_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->chrom_memory.data = NULL;
  p->chrom_memory.memview = NULL;
  p->pos_memory.data = NULL;
  p->pos_memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFChromPosParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->chrom_values);
  Py_CLEAR(p->pos_values);
  __PYX_XDEC_MEMVIEW(&p->chrom_memory, 1);
  __PYX_XDEC_MEMVIEW(&p->pos_memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFChromPosParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->chrom_values) {
    e = (*v)(((PyObject *)p->chrom_values), a); if (e) return e;
  }
  if (p->pos_values) {
    e = (*v)(((PyObject *)p->pos_values), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFChromPosParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->chrom_values);
  p->chrom_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->pos_values);
  p->pos_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFChromPosParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFChromPosParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFChromPosParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFChromPosParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFChromPosParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFChromPosParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFChromPosParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFChromPosParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFChromPosParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFIDStringParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDStringParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFIDStringParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDStringParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFIDStringParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFIDStringParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFIDStringParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDStringParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFIDStringParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFIDStringParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFIDStringParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFIDStringParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFIDObjectParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDObjectParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFIDObjectParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDObjectParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFIDObjectParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFIDObjectParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFIDObjectParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFIDObjectParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFIDObjectParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFIDObjectParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFRefStringParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefStringParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFRefStringParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefStringParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFRefStringParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFRefStringParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFRefStringParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefStringParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFRefStringParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFRefStringParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFRefStringParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFRefStringParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFRefObjectParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefObjectParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFRefObjectParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefObjectParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFRefObjectParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFRefObjectParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFRefObjectParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFRefObjectParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFRefObjectParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFRefObjectParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFAltStringParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltStringParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFAltStringParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltStringParser;
  p->numalt_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->svlen_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->is_snp_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->memory.data = NULL;
  p->memory.memview = NULL;
  p->numalt_memory.data = NULL;
  p->numalt_memory.memview = NULL;
  p->svlen_memory.data = NULL;
  p->svlen_memory.memview = NULL;
  p->is_snp_memory.data = NULL;
  p->is_snp_memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFAltStringParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->numalt_values);
  Py_CLEAR(p->svlen_values);
  Py_CLEAR(p->is_snp_values);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  __PYX_XDEC_MEMVIEW(&p->numalt_memory, 1);
  __PYX_XDEC_MEMVIEW(&p->svlen_memory, 1);
  __PYX_XDEC_MEMVIEW(&p->is_snp_memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFAltStringParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->numalt_values) {
    e = (*v)(((PyObject *)p->numalt_values), a); if (e) return e;
  }
  if (p->svlen_values) {
    e = (*v)(((PyObject *)p->svlen_values), a); if (e) return e;
  }
  if (p->is_snp_values) {
    e = (*v)(((PyObject *)p->is_snp_values), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFAltStringParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->numalt_values);
  p->numalt_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->svlen_values);
  p->svlen_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->is_snp_values);
  p->is_snp_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFAltStringParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFAltStringParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltStringParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFAltStringParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFAltStringParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFAltStringParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFAltStringParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFAltStringParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFAltStringParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFAltObjectParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltObjectParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFAltObjectParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltObjectParser;
  p->numalt_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->svlen_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->is_snp_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  p->numalt_memory.data = NULL;
  p->numalt_memory.memview = NULL;
  p->svlen_memory.data = NULL;
  p->svlen_memory.memview = NULL;
  p->is_snp_memory.data = NULL;
  p->is_snp_memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFAltObjectParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->numalt_values);
  Py_CLEAR(p->svlen_values);
  Py_CLEAR(p->is_snp_values);
  __PYX_XDEC_MEMVIEW(&p->numalt_memory, 1);
  __PYX_XDEC_MEMVIEW(&p->svlen_memory, 1);
  __PYX_XDEC_MEMVIEW(&p->is_snp_memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFAltObjectParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->numalt_values) {
    e = (*v)(((PyObject *)p->numalt_values), a); if (e) return e;
  }
  if (p->svlen_values) {
    e = (*v)(((PyObject *)p->svlen_values), a); if (e) return e;
  }
  if (p->is_snp_values) {
    e = (*v)(((PyObject *)p->is_snp_values), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFAltObjectParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->numalt_values);
  p->numalt_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->svlen_values);
  p->svlen_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->is_snp_values);
  p->is_snp_values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFAltObjectParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFAltObjectParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFAltObjectParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFAltObjectParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFAltObjectParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFAltObjectParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFAltObjectParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFAltObjectParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFAltObjectParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFQualParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFQualParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFQualParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFQualParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFQualParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFQualParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFQualParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFQualParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFQualParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFQualParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFQualParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_13VCFQualParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFQualParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFilterParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFFilterParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFilterParser;
  p->filter_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->memory.data = NULL;
  p->memory.memview = NULL;
  if (unlikely(__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFilterParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_5__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->filter_keys);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFilterParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->filter_keys) {
    e = (*v)(p->filter_keys, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFilterParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->filter_keys);
  p->filter_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFFilterParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFFilterParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFilterParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFilterParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFilterParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFFilterParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_15VCFFilterParser_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFilterParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParser;
  p->info_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->info_parsers = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->skip_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)Py_None); Py_INCREF(Py_None);
  p->fills = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_5__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->info_keys);
  Py_CLEAR(p->info_parsers);
  Py_CLEAR(p->skip_parser);
  Py_CLEAR(p->fills);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->info_keys) {
    e = (*v)(p->info_keys, a); if (e) return e;
  }
  if (p->info_parsers) {
    e = (*v)(p->info_parsers, a); if (e) return e;
  }
  if (p->skip_parser) {
    e = (*v)(((PyObject *)p->skip_parser), a); if (e) return e;
  }
  if (p->fills) {
    e = (*v)(p->fills, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->info_keys);
  p->info_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->info_parsers);
  p->info_parsers = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->skip_parser);
  p->skip_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->fills);
  p->fills = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_13VCFInfoParser_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParserBase;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)o);
  p->__pyx_vtab = __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  p->key = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->dtype = ((PyArray_Descr *)Py_None); Py_INCREF(Py_None);
  p->fill = Py_None; Py_INCREF(Py_None);
  p->values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->key);
  Py_CLEAR(p->dtype);
  Py_CLEAR(p->fill);
  Py_CLEAR(p->values);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)o;
  if (p->dtype) {
    e = (*v)(((PyObject *)p->dtype), a); if (e) return e;
  }
  if (p->fill) {
    e = (*v)(p->fill, a); if (e) return e;
  }
  if (p->values) {
    e = (*v)(((PyObject *)p->values), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *)o;
  tmp = ((PyObject*)p->dtype);
  p->dtype = ((PyArray_Descr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->fill);
  p->fill = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->values);
  p->values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoParserBase[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoParserBase", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoParserBase_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoUInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoUInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoUInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoUInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoFloat32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoFloat64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoFlagParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFlagParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFlagParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFlagParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoFlagParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoFlagParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoFlagParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoFlagParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoFlagParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoFlagParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoFlagParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoStringParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoStringParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoStringParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoStringParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoStringParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoStringParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoStringParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoStringParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoStringParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoStringParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoStringParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoStringParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoObjectParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoObjectParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoObjectParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoObjectParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoObjectParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoObjectParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoObjectParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoObjectParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoObjectParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoSkipParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoSkipParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoSkipParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFInfoParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoSkipParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoSkipParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFInfoSkipParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoSkipParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFInfoParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFInfoSkipParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFInfoSkipParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFormatParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFFormatParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFFormatParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFormatParser;
  p->format_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFormatParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_5__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->format_keys);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFormatParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->format_keys) {
    e = (*v)(p->format_keys, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFormatParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->format_keys);
  p->format_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFFormatParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFFormatParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFormatParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFormatParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFormatParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFFormatParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_15VCFFormatParser_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFormatParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_1__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_3__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFSkipAllCallDataParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "Skip a field.", /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_13variant_tools_11io_vcf_read_18VCFFieldParserBase_1__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFFieldParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFFieldParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParser;
  p->format_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->parsers = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->skip_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)Py_None); Py_INCREF(Py_None);
  p->loc_samples.data = NULL;
  p->loc_samples.memview = NULL;
  if (unlikely(__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_5__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->format_keys);
  Py_CLEAR(p->parsers);
  Py_CLEAR(p->skip_parser);
  __PYX_XDEC_MEMVIEW(&p->loc_samples, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)o;
  e = __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFFieldParserBase(o, v, a); if (e) return e;
  if (p->format_keys) {
    e = (*v)(p->format_keys, a); if (e) return e;
  }
  if (p->parsers) {
    e = (*v)(p->parsers, a); if (e) return e;
  }
  if (p->skip_parser) {
    e = (*v)(((PyObject *)p->skip_parser), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParser(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser *)o;
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFFieldParserBase(o);
  tmp = ((PyObject*)p->format_keys);
  p->format_keys = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->parsers);
  p->parsers = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->skip_parser);
  p->skip_parser = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_7__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_9__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParser, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_17VCFCallDataParser_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParserBase;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)o);
  p->__pyx_vtab = __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  p->key = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->dtype = ((PyArray_Descr *)Py_None); Py_INCREF(Py_None);
  p->fill = Py_None; Py_INCREF(Py_None);
  p->values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->key);
  Py_CLEAR(p->dtype);
  Py_CLEAR(p->fill);
  Py_CLEAR(p->values);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)o;
  if (p->dtype) {
    e = (*v)(((PyObject *)p->dtype), a); if (e) return e;
  }
  if (p->fill) {
    e = (*v)(p->fill, a); if (e) return e;
  }
  if (p->values) {
    e = (*v)(((PyObject *)p->values), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *)o;
  tmp = ((PyObject*)p->dtype);
  p->dtype = ((PyArray_Descr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->fill);
  p->fill = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->values);
  p->values = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataParserBase[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataParserBase", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataSkipParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataSkipParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataSkipParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataSkipParser;
  return o;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataSkipParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataSkipParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataSkipParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataSkipParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataSkipParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeUInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeUInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeUInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeUInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACUInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACUInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACUInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFGenotypeACUInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataUInt8Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataUInt16Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataUInt32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataUInt64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataFloat32Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataFloat64Parser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataStringParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataStringParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataStringParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataStringParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataStringParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataStringParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataStringParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataStringParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataStringParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataStringParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataStringParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataObjectParser __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataObjectParser;

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataObjectParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *p;
  PyObject *o = __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataParserBase(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_13variant_tools_11io_vcf_read_VCFCallDataParserBase*)__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataObjectParser;
  p->memory.data = NULL;
  p->memory.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataObjectParser(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  __PYX_XDEC_MEMVIEW(&p->memory, 1);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataParserBase(o);
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataObjectParser[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_3__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_5__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.VCFCallDataObjectParser", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataObjectParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_VCFCallDataObjectParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_VCFCallDataParserBase, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_VCFCallDataObjectParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_VCFCallDataObjectParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_13variant_tools_11io_vcf_read_ANNTransformer(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)o);
  p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->types = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_13variant_tools_11io_vcf_read_ANNTransformer(PyObject *o) {
  struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->fields);
  Py_CLEAR(p->types);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_13variant_tools_11io_vcf_read_ANNTransformer(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)o;
  if (p->fields) {
    e = (*v)(p->fields, a); if (e) return e;
  }
  if (p->types) {
    e = (*v)(p->types, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_13variant_tools_11io_vcf_read_ANNTransformer(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *p = (struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer *)o;
  tmp = ((PyObject*)p->fields);
  p->fields = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->types);
  p->types = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_13variant_tools_11io_vcf_read_ANNTransformer[] = {
  {"transform_fields", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_3transform_fields, METH_O, 0},
  {"_malloc_string_array", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_5_malloc_string_array, METH_VARARGS|METH_KEYWORDS, 0},
  {"_malloc_integer_array", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_7_malloc_integer_array, METH_VARARGS|METH_KEYWORDS, 0},
  {"transform_chunk", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_9transform_chunk, METH_O, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_13variant_tools_11io_vcf_read_ANNTransformer = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.ANNTransformer", /*tp_name*/
  sizeof(struct __pyx_obj_13variant_tools_11io_vcf_read_ANNTransformer), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_13variant_tools_11io_vcf_read_ANNTransformer, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_13variant_tools_11io_vcf_read_ANNTransformer, /*tp_traverse*/
  __pyx_tp_clear_13variant_tools_11io_vcf_read_ANNTransformer, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_13variant_tools_11io_vcf_read_ANNTransformer, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_13variant_tools_11io_vcf_read_14ANNTransformer_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_13variant_tools_11io_vcf_read_ANNTransformer, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_array __pyx_vtable_array;

static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_array_obj *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_array_obj *)o);
  p->__pyx_vtab = __pyx_vtabptr_array;
  p->mode = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->_format = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_array___cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_array(PyObject *o) {
  struct __pyx_array_obj *p = (struct __pyx_array_obj *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_array___dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->mode);
  Py_CLEAR(p->_format);
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_array(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_array(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_array___setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyObject *__pyx_tp_getattro_array(PyObject *o, PyObject *n) {
  PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_array___getattr__(o, n);
  }
  return v;
}

static PyObject *__pyx_getprop___pyx_array_memview(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(o);
}

static PyMethodDef __pyx_methods_array[] = {
  {"__getattr__", (PyCFunction)__pyx_array___getattr__, METH_O|METH_COEXIST, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_array_1__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_array_3__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_array[] = {
  {(char *)"memview", __pyx_getprop___pyx_array_memview, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_array = {
  __pyx_array___len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_array, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_array = {
  __pyx_array___len__, /*mp_length*/
  __pyx_array___getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_array, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_array = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  __pyx_array_getbuffer, /*bf_getbuffer*/
  0, /*bf_releasebuffer*/
};

static PyTypeObject __pyx_type___pyx_array = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.array", /*tp_name*/
  sizeof(struct __pyx_array_obj), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_array, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_array, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_array, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  __pyx_tp_getattro_array, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_array, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_array, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_array, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_array, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_MemviewEnum_obj *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_MemviewEnum_obj *)o);
  p->name = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_Enum(PyObject *o) {
  struct __pyx_MemviewEnum_obj *p = (struct __pyx_MemviewEnum_obj *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->name);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_Enum(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_MemviewEnum_obj *p = (struct __pyx_MemviewEnum_obj *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_Enum(PyObject *o) {
  PyObject* tmp;
  struct __pyx_MemviewEnum_obj *p = (struct __pyx_MemviewEnum_obj *)o;
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_Enum[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_1__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_3__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type___pyx_MemviewEnum = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.Enum", /*tp_name*/
  sizeof(struct __pyx_MemviewEnum_obj), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_Enum, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_MemviewEnum___repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_Enum, /*tp_traverse*/
  __pyx_tp_clear_Enum, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_Enum, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_MemviewEnum___init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_Enum, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_memoryview __pyx_vtable_memoryview;

static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_memoryview_obj *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_memoryview_obj *)o);
  p->__pyx_vtab = __pyx_vtabptr_memoryview;
  p->obj = Py_None; Py_INCREF(Py_None);
  p->_size = Py_None; Py_INCREF(Py_None);
  p->_array_interface = Py_None; Py_INCREF(Py_None);
  p->view.obj = NULL;
  if (unlikely(__pyx_memoryview___cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_memoryview(PyObject *o) {
  struct __pyx_memoryview_obj *p = (struct __pyx_memoryview_obj *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_memoryview___dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->obj);
  Py_CLEAR(p->_size);
  Py_CLEAR(p->_array_interface);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_memoryview(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_memoryview_obj *p = (struct __pyx_memoryview_obj *)o;
  if (p->obj) {
    e = (*v)(p->obj, a); if (e) return e;
  }
  if (p->_size) {
    e = (*v)(p->_size, a); if (e) return e;
  }
  if (p->_array_interface) {
    e = (*v)(p->_array_interface, a); if (e) return e;
  }
  if (p->view.obj) {
    e = (*v)(p->view.obj, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_memoryview(PyObject *o) {
  PyObject* tmp;
  struct __pyx_memoryview_obj *p = (struct __pyx_memoryview_obj *)o;
  tmp = ((PyObject*)p->obj);
  p->obj = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_size);
  p->_size = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_array_interface);
  p->_array_interface = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  Py_CLEAR(p->view.obj);
  return 0;
}
static PyObject *__pyx_sq_item_memoryview(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_memoryview(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_memoryview___setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyObject *__pyx_getprop___pyx_memoryview_T(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_base(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_shape(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_strides(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_suboffsets(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_ndim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_itemsize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_nbytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(o);
}

static PyObject *__pyx_getprop___pyx_memoryview_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(o);
}

static PyMethodDef __pyx_methods_memoryview[] = {
  {"is_c_contig", (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, 0},
  {"is_f_contig", (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, 0},
  {"copy", (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, 0},
  {"copy_fortran", (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_1__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_3__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_memoryview[] = {
  {(char *)"T", __pyx_getprop___pyx_memoryview_T, 0, (char *)0, 0},
  {(char *)"base", __pyx_getprop___pyx_memoryview_base, 0, (char *)0, 0},
  {(char *)"shape", __pyx_getprop___pyx_memoryview_shape, 0, (char *)0, 0},
  {(char *)"strides", __pyx_getprop___pyx_memoryview_strides, 0, (char *)0, 0},
  {(char *)"suboffsets", __pyx_getprop___pyx_memoryview_suboffsets, 0, (char *)0, 0},
  {(char *)"ndim", __pyx_getprop___pyx_memoryview_ndim, 0, (char *)0, 0},
  {(char *)"itemsize", __pyx_getprop___pyx_memoryview_itemsize, 0, (char *)0, 0},
  {(char *)"nbytes", __pyx_getprop___pyx_memoryview_nbytes, 0, (char *)0, 0},
  {(char *)"size", __pyx_getprop___pyx_memoryview_size, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_memoryview = {
  __pyx_memoryview___len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_memoryview, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_memoryview = {
  __pyx_memoryview___len__, /*mp_length*/
  __pyx_memoryview___getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_memoryview, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_memoryview = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  __pyx_memoryview_getbuffer, /*bf_getbuffer*/
  0, /*bf_releasebuffer*/
};

static PyTypeObject __pyx_type___pyx_memoryview = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read.memoryview", /*tp_name*/
  sizeof(struct __pyx_memoryview_obj), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_memoryview, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_memoryview___repr__, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_memoryview, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_memoryview, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_memoryview___str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_memoryview, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_memoryview, /*tp_traverse*/
  __pyx_tp_clear_memoryview, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_memoryview, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_memoryview, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_memoryview, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct__memoryviewslice __pyx_vtable__memoryviewslice;

static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_memoryviewslice_obj *p;
  PyObject *o = __pyx_tp_new_memoryview(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_memoryviewslice_obj *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_memoryview*)__pyx_vtabptr__memoryviewslice;
  p->from_object = Py_None; Py_INCREF(Py_None);
  p->from_slice.memview = NULL;
  return o;
}

static void __pyx_tp_dealloc__memoryviewslice(PyObject *o) {
  struct __pyx_memoryviewslice_obj *p = (struct __pyx_memoryviewslice_obj *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_memoryviewslice___dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->from_object);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_memoryview(o);
}

static int __pyx_tp_traverse__memoryviewslice(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_memoryviewslice_obj *p = (struct __pyx_memoryviewslice_obj *)o;
  e = __pyx_tp_traverse_memoryview(o, v, a); if (e) return e;
  if (p->from_object) {
    e = (*v)(p->from_object, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear__memoryviewslice(PyObject *o) {
  PyObject* tmp;
  struct __pyx_memoryviewslice_obj *p = (struct __pyx_memoryviewslice_obj *)o;
  __pyx_tp_clear_memoryview(o);
  tmp = ((PyObject*)p->from_object);
  p->from_object = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  __PYX_XDEC_MEMVIEW(&p->from_slice, 1);
  return 0;
}

static PyObject *__pyx_getprop___pyx_memoryviewslice_base(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(o);
}

static PyMethodDef __pyx_methods__memoryviewslice[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_1__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_3__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets__memoryviewslice[] = {
  {(char *)"base", __pyx_getprop___pyx_memoryviewslice_base, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type___pyx_memoryviewslice = {
  PyVarObject_HEAD_INIT(0, 0)
  "variant_tools.io_vcf_read._memoryviewslice", /*tp_name*/
  sizeof(struct __pyx_memoryviewslice_obj), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc__memoryviewslice, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_memoryview___repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_memoryview___str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "Internal class for passing memoryview slices to Python", /*tp_doc*/
  __pyx_tp_traverse__memoryviewslice, /*tp_traverse*/
  __pyx_tp_clear__memoryviewslice, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods__memoryviewslice, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets__memoryviewslice, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new__memoryviewslice, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_io_vcf_read(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_io_vcf_read},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "io_vcf_read",
    __pyx_k_options_for_profiling_cython_pr, /* m_doc */
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    0, /* m_size */
  #else
    -1, /* m_size */
  #endif
    __pyx_methods /* m_methods */,
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    __pyx_moduledef_slots, /* m_slots */
  #else
    NULL, /* m_reload */
  #endif
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_n_b_ALT, __pyx_k_ALT, sizeof(__pyx_k_ALT), 0, 0, 0, 1},
  {&__pyx_n_s_ALT, __pyx_k_ALT, sizeof(__pyx_k_ALT), 0, 0, 1, 1},
  {&__pyx_n_s_ALT_FIELD, __pyx_k_ALT_FIELD, sizeof(__pyx_k_ALT_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN, __pyx_k_ANN, sizeof(__pyx_k_ANN), 0, 0, 1, 1},
  {&__pyx_n_s_ANNTransformer, __pyx_k_ANNTransformer, sizeof(__pyx_k_ANNTransformer), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_AA_FIELD, __pyx_k_ANN_AA_FIELD, sizeof(__pyx_k_ANN_AA_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_AA_LENGTH_FIELD, __pyx_k_ANN_AA_LENGTH_FIELD, sizeof(__pyx_k_ANN_AA_LENGTH_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_AA_POS_FIELD, __pyx_k_ANN_AA_POS_FIELD, sizeof(__pyx_k_ANN_AA_POS_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_ALLELE_FIELD, __pyx_k_ANN_ALLELE_FIELD, sizeof(__pyx_k_ANN_ALLELE_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_ANNOTATION_FIELD, __pyx_k_ANN_ANNOTATION_FIELD, sizeof(__pyx_k_ANN_ANNOTATION_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD, __pyx_k_ANN_ANNOTATION_IMPACT_FIELD, sizeof(__pyx_k_ANN_ANNOTATION_IMPACT_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_CDNA_FIELD, __pyx_k_ANN_CDNA_FIELD, sizeof(__pyx_k_ANN_CDNA_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_CDNA_LENGTH_FIELD, __pyx_k_ANN_CDNA_LENGTH_FIELD, sizeof(__pyx_k_ANN_CDNA_LENGTH_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_CDNA_POS_FIELD, __pyx_k_ANN_CDNA_POS_FIELD, sizeof(__pyx_k_ANN_CDNA_POS_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_CDS_FIELD, __pyx_k_ANN_CDS_FIELD, sizeof(__pyx_k_ANN_CDS_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_CDS_LENGTH_FIELD, __pyx_k_ANN_CDS_LENGTH_FIELD, sizeof(__pyx_k_ANN_CDS_LENGTH_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_CDS_POS_FIELD, __pyx_k_ANN_CDS_POS_FIELD, sizeof(__pyx_k_ANN_CDS_POS_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_DISTANCE_FIELD, __pyx_k_ANN_DISTANCE_FIELD, sizeof(__pyx_k_ANN_DISTANCE_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_FEATURE_ID_FIELD, __pyx_k_ANN_FEATURE_ID_FIELD, sizeof(__pyx_k_ANN_FEATURE_ID_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_FEATURE_TYPE_FIELD, __pyx_k_ANN_FEATURE_TYPE_FIELD, sizeof(__pyx_k_ANN_FEATURE_TYPE_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_FIELD, __pyx_k_ANN_FIELD, sizeof(__pyx_k_ANN_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_FIELDS, __pyx_k_ANN_FIELDS, sizeof(__pyx_k_ANN_FIELDS), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_GENE_ID_FIELD, __pyx_k_ANN_GENE_ID_FIELD, sizeof(__pyx_k_ANN_GENE_ID_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_GENE_NAME_FIELD, __pyx_k_ANN_GENE_NAME_FIELD, sizeof(__pyx_k_ANN_GENE_NAME_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_HGVS_C_FIELD, __pyx_k_ANN_HGVS_C_FIELD, sizeof(__pyx_k_ANN_HGVS_C_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_HGVS_P_FIELD, __pyx_k_ANN_HGVS_P_FIELD, sizeof(__pyx_k_ANN_HGVS_P_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_RANK_FIELD, __pyx_k_ANN_RANK_FIELD, sizeof(__pyx_k_ANN_RANK_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD, __pyx_k_ANN_TRANSCRIPT_BIOTYPE_FIELD, sizeof(__pyx_k_ANN_TRANSCRIPT_BIOTYPE_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_ASCII, __pyx_k_ASCII, sizeof(__pyx_k_ASCII), 0, 0, 1, 1},
  {&__pyx_kp_s_Buffer_view_does_not_expose_stri, __pyx_k_Buffer_view_does_not_expose_stri, sizeof(__pyx_k_Buffer_view_does_not_expose_stri), 0, 0, 1, 0},
  {&__pyx_n_s_C, __pyx_k_C, sizeof(__pyx_k_C), 0, 0, 1, 1},
  {&__pyx_n_s_CALLDATA, __pyx_k_CALLDATA, sizeof(__pyx_k_CALLDATA), 0, 0, 1, 1},
  {&__pyx_n_b_CHROM, __pyx_k_CHROM, sizeof(__pyx_k_CHROM), 0, 0, 0, 1},
  {&__pyx_n_s_CHROM, __pyx_k_CHROM, sizeof(__pyx_k_CHROM), 0, 0, 1, 1},
  {&__pyx_n_s_CHROM_FIELD, __pyx_k_CHROM_FIELD, sizeof(__pyx_k_CHROM_FIELD), 0, 0, 1, 1},
  {&__pyx_kp_s_Can_only_create_a_buffer_that_is, __pyx_k_Can_only_create_a_buffer_that_is, sizeof(__pyx_k_Can_only_create_a_buffer_that_is), 0, 0, 1, 0},
  {&__pyx_kp_s_Cannot_assign_to_read_only_memor, __pyx_k_Cannot_assign_to_read_only_memor, sizeof(__pyx_k_Cannot_assign_to_read_only_memor), 0, 0, 1, 0},
  {&__pyx_kp_s_Cannot_create_writable_memory_vi, __pyx_k_Cannot_create_writable_memory_vi, sizeof(__pyx_k_Cannot_create_writable_memory_vi), 0, 0, 1, 0},
  {&__pyx_kp_s_Cannot_index_with_type_s, __pyx_k_Cannot_index_with_type_s, sizeof(__pyx_k_Cannot_index_with_type_s), 0, 0, 1, 0},
  {&__pyx_n_s_CharVectorInputStream, __pyx_k_CharVectorInputStream, sizeof(__pyx_k_CharVectorInputStream), 0, 0, 1, 1},
  {&__pyx_n_s_EOF, __pyx_k_EOF, sizeof(__pyx_k_EOF), 0, 0, 1, 1},
  {&__pyx_n_s_EOL, __pyx_k_EOL, sizeof(__pyx_k_EOL), 0, 0, 1, 1},
  {&__pyx_n_s_Ellipsis, __pyx_k_Ellipsis, sizeof(__pyx_k_Ellipsis), 0, 0, 1, 1},
  {&__pyx_kp_s_Empty_shape_tuple_for_cython_arr, __pyx_k_Empty_shape_tuple_for_cython_arr, sizeof(__pyx_k_Empty_shape_tuple_for_cython_arr), 0, 0, 1, 0},
  {&__pyx_n_b_FILTER, __pyx_k_FILTER, sizeof(__pyx_k_FILTER), 0, 0, 0, 1},
  {&__pyx_n_s_FILTER, __pyx_k_FILTER, sizeof(__pyx_k_FILTER), 0, 0, 1, 1},
  {&__pyx_n_b_FORMAT, __pyx_k_FORMAT, sizeof(__pyx_k_FORMAT), 0, 0, 0, 1},
  {&__pyx_n_s_FORMAT, __pyx_k_FORMAT, sizeof(__pyx_k_FORMAT), 0, 0, 1, 1},
  {&__pyx_n_s_FileInputStream, __pyx_k_FileInputStream, sizeof(__pyx_k_FileInputStream), 0, 0, 1, 1},
  {&__pyx_kp_u_Format_string_allocated_too_shor, __pyx_k_Format_string_allocated_too_shor, sizeof(__pyx_k_Format_string_allocated_too_shor), 0, 1, 0, 0},
  {&__pyx_kp_u_Format_string_allocated_too_shor_2, __pyx_k_Format_string_allocated_too_shor_2, sizeof(__pyx_k_Format_string_allocated_too_shor_2), 0, 1, 0, 0},
  {&__pyx_n_b_GT, __pyx_k_GT, sizeof(__pyx_k_GT), 0, 0, 0, 1},
  {&__pyx_n_b_ID, __pyx_k_ID, sizeof(__pyx_k_ID), 0, 0, 0, 1},
  {&__pyx_n_s_ID, __pyx_k_ID, sizeof(__pyx_k_ID), 0, 0, 1, 1},
  {&__pyx_n_s_ID_FIELD, __pyx_k_ID_FIELD, sizeof(__pyx_k_ID_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_II16, __pyx_k_II16, sizeof(__pyx_k_II16), 0, 0, 1, 1},
  {&__pyx_n_s_II32, __pyx_k_II32, sizeof(__pyx_k_II32), 0, 0, 1, 1},
  {&__pyx_n_s_II64, __pyx_k_II64, sizeof(__pyx_k_II64), 0, 0, 1, 1},
  {&__pyx_n_s_II8, __pyx_k_II8, sizeof(__pyx_k_II8), 0, 0, 1, 1},
  {&__pyx_n_b_INFO, __pyx_k_INFO, sizeof(__pyx_k_INFO), 0, 0, 0, 1},
  {&__pyx_n_s_INFO, __pyx_k_INFO, sizeof(__pyx_k_INFO), 0, 0, 1, 1},
  {&__pyx_n_s_IU16, __pyx_k_IU16, sizeof(__pyx_k_IU16), 0, 0, 1, 1},
  {&__pyx_n_s_IU32, __pyx_k_IU32, sizeof(__pyx_k_IU32), 0, 0, 1, 1},
  {&__pyx_n_s_IU64, __pyx_k_IU64, sizeof(__pyx_k_IU64), 0, 0, 1, 1},
  {&__pyx_n_s_IU8, __pyx_k_IU8, sizeof(__pyx_k_IU8), 0, 0, 1, 1},
  {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x03, __pyx_k_Incompatible_checksums_s_vs_0x03, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x03), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x03_2, __pyx_k_Incompatible_checksums_s_vs_0x03_2, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x03_2), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x1a, __pyx_k_Incompatible_checksums_s_vs_0x1a, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x1a), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x3c, __pyx_k_Incompatible_checksums_s_vs_0x3c, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x3c), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x45, __pyx_k_Incompatible_checksums_s_vs_0x45, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x45), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x4a, __pyx_k_Incompatible_checksums_s_vs_0x4a, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x4a), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x6d, __pyx_k_Incompatible_checksums_s_vs_0x6d, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x6d), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x71, __pyx_k_Incompatible_checksums_s_vs_0x71, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x71), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x78, __pyx_k_Incompatible_checksums_s_vs_0x78, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x78), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x7e, __pyx_k_Incompatible_checksums_s_vs_0x7e, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x7e), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x8c, __pyx_k_Incompatible_checksums_s_vs_0x8c, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x8c), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0xb0, __pyx_k_Incompatible_checksums_s_vs_0xb0, sizeof(__pyx_k_Incompatible_checksums_s_vs_0xb0), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0xb6, __pyx_k_Incompatible_checksums_s_vs_0xb6, sizeof(__pyx_k_Incompatible_checksums_s_vs_0xb6), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0xe2, __pyx_k_Incompatible_checksums_s_vs_0xe2, sizeof(__pyx_k_Incompatible_checksums_s_vs_0xe2), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0xf8, __pyx_k_Incompatible_checksums_s_vs_0xf8, sizeof(__pyx_k_Incompatible_checksums_s_vs_0xf8), 0, 0, 1, 0},
  {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1},
  {&__pyx_kp_s_Indirect_dimensions_not_supporte, __pyx_k_Indirect_dimensions_not_supporte, sizeof(__pyx_k_Indirect_dimensions_not_supporte), 0, 0, 1, 0},
  {&__pyx_n_s_InputStreamBase, __pyx_k_InputStreamBase, sizeof(__pyx_k_InputStreamBase), 0, 0, 1, 1},
  {&__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_k_Invalid_mode_expected_c_or_fortr, sizeof(__pyx_k_Invalid_mode_expected_c_or_fortr), 0, 0, 1, 0},
  {&__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_k_Invalid_shape_in_axis_d_d, sizeof(__pyx_k_Invalid_shape_in_axis_d_d), 0, 0, 1, 0},
  {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
  {&__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_k_MemoryView_of_r_at_0x_x, sizeof(__pyx_k_MemoryView_of_r_at_0x_x), 0, 0, 1, 0},
  {&__pyx_kp_s_MemoryView_of_r_object, __pyx_k_MemoryView_of_r_object, sizeof(__pyx_k_MemoryView_of_r_object), 0, 0, 1, 0},
  {&__pyx_kp_u_Non_native_byte_order_not_suppor, __pyx_k_Non_native_byte_order_not_suppor, sizeof(__pyx_k_Non_native_byte_order_not_suppor), 0, 1, 0, 0},
  {&__pyx_n_b_O, __pyx_k_O, sizeof(__pyx_k_O), 0, 0, 0, 1},
  {&__pyx_n_s_O, __pyx_k_O, sizeof(__pyx_k_O), 0, 0, 1, 1},
  {&__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_k_Out_of_bounds_on_buffer_access_a, sizeof(__pyx_k_Out_of_bounds_on_buffer_access_a), 0, 0, 1, 0},
  {&__pyx_n_s_POS, __pyx_k_POS, sizeof(__pyx_k_POS), 0, 0, 1, 1},
  {&__pyx_n_s_POS_FIELD, __pyx_k_POS_FIELD, sizeof(__pyx_k_POS_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_PY2, __pyx_k_PY2, sizeof(__pyx_k_PY2), 0, 0, 1, 1},
  {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
  {&__pyx_n_b_QUAL, __pyx_k_QUAL, sizeof(__pyx_k_QUAL), 0, 0, 0, 1},
  {&__pyx_n_s_QUAL, __pyx_k_QUAL, sizeof(__pyx_k_QUAL), 0, 0, 1, 1},
  {&__pyx_n_s_QUAL_FIELD, __pyx_k_QUAL_FIELD, sizeof(__pyx_k_QUAL_FIELD), 0, 0, 1, 1},
  {&__pyx_n_b_REF, __pyx_k_REF, sizeof(__pyx_k_REF), 0, 0, 0, 1},
  {&__pyx_n_s_REF, __pyx_k_REF, sizeof(__pyx_k_REF), 0, 0, 1, 1},
  {&__pyx_n_s_REF_FIELD, __pyx_k_REF_FIELD, sizeof(__pyx_k_REF_FIELD), 0, 0, 1, 1},
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
  {&__pyx_n_s_S, __pyx_k_S, sizeof(__pyx_k_S), 0, 0, 1, 1},
  {&__pyx_n_s_StopIteration, __pyx_k_StopIteration, sizeof(__pyx_k_StopIteration), 0, 0, 1, 1},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_kp_s_Unable_to_convert_item_to_object, __pyx_k_Unable_to_convert_item_to_object, sizeof(__pyx_k_Unable_to_convert_item_to_object), 0, 0, 1, 0},
  {&__pyx_n_s_VCFAltObjectParser, __pyx_k_VCFAltObjectParser, sizeof(__pyx_k_VCFAltObjectParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFAltStringParser, __pyx_k_VCFAltStringParser, sizeof(__pyx_k_VCFAltStringParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataFloat32Parser, __pyx_k_VCFCallDataFloat32Parser, sizeof(__pyx_k_VCFCallDataFloat32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataFloat64Parser, __pyx_k_VCFCallDataFloat64Parser, sizeof(__pyx_k_VCFCallDataFloat64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataInt16Parser, __pyx_k_VCFCallDataInt16Parser, sizeof(__pyx_k_VCFCallDataInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataInt32Parser, __pyx_k_VCFCallDataInt32Parser, sizeof(__pyx_k_VCFCallDataInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataInt64Parser, __pyx_k_VCFCallDataInt64Parser, sizeof(__pyx_k_VCFCallDataInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataInt8Parser, __pyx_k_VCFCallDataInt8Parser, sizeof(__pyx_k_VCFCallDataInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataObjectParser, __pyx_k_VCFCallDataObjectParser, sizeof(__pyx_k_VCFCallDataObjectParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataParser, __pyx_k_VCFCallDataParser, sizeof(__pyx_k_VCFCallDataParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataParserBase, __pyx_k_VCFCallDataParserBase, sizeof(__pyx_k_VCFCallDataParserBase), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataSkipParser, __pyx_k_VCFCallDataSkipParser, sizeof(__pyx_k_VCFCallDataSkipParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataStringParser, __pyx_k_VCFCallDataStringParser, sizeof(__pyx_k_VCFCallDataStringParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataUInt16Parser, __pyx_k_VCFCallDataUInt16Parser, sizeof(__pyx_k_VCFCallDataUInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataUInt32Parser, __pyx_k_VCFCallDataUInt32Parser, sizeof(__pyx_k_VCFCallDataUInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataUInt64Parser, __pyx_k_VCFCallDataUInt64Parser, sizeof(__pyx_k_VCFCallDataUInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFCallDataUInt8Parser, __pyx_k_VCFCallDataUInt8Parser, sizeof(__pyx_k_VCFCallDataUInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFChromPosParser, __pyx_k_VCFChromPosParser, sizeof(__pyx_k_VCFChromPosParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFChunkIterator, __pyx_k_VCFChunkIterator, sizeof(__pyx_k_VCFChunkIterator), 0, 0, 1, 1},
  {&__pyx_n_s_VCFContext, __pyx_k_VCFContext, sizeof(__pyx_k_VCFContext), 0, 0, 1, 1},
  {&__pyx_n_s_VCFFieldParserBase, __pyx_k_VCFFieldParserBase, sizeof(__pyx_k_VCFFieldParserBase), 0, 0, 1, 1},
  {&__pyx_n_s_VCFFilterParser, __pyx_k_VCFFilterParser, sizeof(__pyx_k_VCFFilterParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFFormatParser, __pyx_k_VCFFormatParser, sizeof(__pyx_k_VCFFormatParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACInt16Parser, __pyx_k_VCFGenotypeACInt16Parser, sizeof(__pyx_k_VCFGenotypeACInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACInt32Parser, __pyx_k_VCFGenotypeACInt32Parser, sizeof(__pyx_k_VCFGenotypeACInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACInt64Parser, __pyx_k_VCFGenotypeACInt64Parser, sizeof(__pyx_k_VCFGenotypeACInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACInt8Parser, __pyx_k_VCFGenotypeACInt8Parser, sizeof(__pyx_k_VCFGenotypeACInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACUInt16Parser, __pyx_k_VCFGenotypeACUInt16Parser, sizeof(__pyx_k_VCFGenotypeACUInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACUInt32Parser, __pyx_k_VCFGenotypeACUInt32Parser, sizeof(__pyx_k_VCFGenotypeACUInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACUInt64Parser, __pyx_k_VCFGenotypeACUInt64Parser, sizeof(__pyx_k_VCFGenotypeACUInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeACUInt8Parser, __pyx_k_VCFGenotypeACUInt8Parser, sizeof(__pyx_k_VCFGenotypeACUInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeInt16Parser, __pyx_k_VCFGenotypeInt16Parser, sizeof(__pyx_k_VCFGenotypeInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeInt32Parser, __pyx_k_VCFGenotypeInt32Parser, sizeof(__pyx_k_VCFGenotypeInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeInt64Parser, __pyx_k_VCFGenotypeInt64Parser, sizeof(__pyx_k_VCFGenotypeInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeInt8Parser, __pyx_k_VCFGenotypeInt8Parser, sizeof(__pyx_k_VCFGenotypeInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeUInt16Parser, __pyx_k_VCFGenotypeUInt16Parser, sizeof(__pyx_k_VCFGenotypeUInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeUInt32Parser, __pyx_k_VCFGenotypeUInt32Parser, sizeof(__pyx_k_VCFGenotypeUInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeUInt64Parser, __pyx_k_VCFGenotypeUInt64Parser, sizeof(__pyx_k_VCFGenotypeUInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFGenotypeUInt8Parser, __pyx_k_VCFGenotypeUInt8Parser, sizeof(__pyx_k_VCFGenotypeUInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFIDObjectParser, __pyx_k_VCFIDObjectParser, sizeof(__pyx_k_VCFIDObjectParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFIDStringParser, __pyx_k_VCFIDStringParser, sizeof(__pyx_k_VCFIDStringParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoFlagParser, __pyx_k_VCFInfoFlagParser, sizeof(__pyx_k_VCFInfoFlagParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoFloat32Parser, __pyx_k_VCFInfoFloat32Parser, sizeof(__pyx_k_VCFInfoFloat32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoFloat64Parser, __pyx_k_VCFInfoFloat64Parser, sizeof(__pyx_k_VCFInfoFloat64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoInt16Parser, __pyx_k_VCFInfoInt16Parser, sizeof(__pyx_k_VCFInfoInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoInt32Parser, __pyx_k_VCFInfoInt32Parser, sizeof(__pyx_k_VCFInfoInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoInt64Parser, __pyx_k_VCFInfoInt64Parser, sizeof(__pyx_k_VCFInfoInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoInt8Parser, __pyx_k_VCFInfoInt8Parser, sizeof(__pyx_k_VCFInfoInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoObjectParser, __pyx_k_VCFInfoObjectParser, sizeof(__pyx_k_VCFInfoObjectParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoParser, __pyx_k_VCFInfoParser, sizeof(__pyx_k_VCFInfoParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoParserBase, __pyx_k_VCFInfoParserBase, sizeof(__pyx_k_VCFInfoParserBase), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoSkipParser, __pyx_k_VCFInfoSkipParser, sizeof(__pyx_k_VCFInfoSkipParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoStringParser, __pyx_k_VCFInfoStringParser, sizeof(__pyx_k_VCFInfoStringParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoUInt16Parser, __pyx_k_VCFInfoUInt16Parser, sizeof(__pyx_k_VCFInfoUInt16Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoUInt32Parser, __pyx_k_VCFInfoUInt32Parser, sizeof(__pyx_k_VCFInfoUInt32Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoUInt64Parser, __pyx_k_VCFInfoUInt64Parser, sizeof(__pyx_k_VCFInfoUInt64Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFInfoUInt8Parser, __pyx_k_VCFInfoUInt8Parser, sizeof(__pyx_k_VCFInfoUInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFParser, __pyx_k_VCFParser, sizeof(__pyx_k_VCFParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFQualParser, __pyx_k_VCFQualParser, sizeof(__pyx_k_VCFQualParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFRefObjectParser, __pyx_k_VCFRefObjectParser, sizeof(__pyx_k_VCFRefObjectParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFRefStringParser, __pyx_k_VCFRefStringParser, sizeof(__pyx_k_VCFRefStringParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFSkipAllCallDataParser, __pyx_k_VCFSkipAllCallDataParser, sizeof(__pyx_k_VCFSkipAllCallDataParser), 0, 0, 1, 1},
  {&__pyx_n_s_VCFSkipFieldParser, __pyx_k_VCFSkipFieldParser, sizeof(__pyx_k_VCFSkipFieldParser), 0, 0, 1, 1},
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
  {&__pyx_n_s_View_MemoryView, __pyx_k_View_MemoryView, sizeof(__pyx_k_View_MemoryView), 0, 0, 1, 1},
  {&__pyx_kp_s__13, __pyx_k__13, sizeof(__pyx_k__13), 0, 0, 1, 0},
  {&__pyx_kp_s__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 0, 1, 0},
  {&__pyx_kp_s__32, __pyx_k__32, sizeof(__pyx_k__32), 0, 0, 1, 0},
  {&__pyx_kp_b__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 0, 0, 0},
  {&__pyx_kp_s__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 0, 1, 0},
  {&__pyx_kp_s__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 0, 1, 0},
  {&__pyx_kp_s__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 0, 1, 0},
  {&__pyx_n_s_allocate_buffer, __pyx_k_allocate_buffer, sizeof(__pyx_k_allocate_buffer), 0, 0, 1, 1},
  {&__pyx_n_s_ascii, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 0, 1, 1},
  {&__pyx_n_s_axis, __pyx_k_axis, sizeof(__pyx_k_axis), 0, 0, 1, 1},
  {&__pyx_kp_s_bad_region_string_r, __pyx_k_bad_region_string_r, sizeof(__pyx_k_bad_region_string_r), 0, 0, 1, 0},
  {&__pyx_n_s_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 0, 1, 1},
  {&__pyx_n_s_bool, __pyx_k_bool, sizeof(__pyx_k_bool), 0, 0, 1, 1},
  {&__pyx_n_s_buffer_size, __pyx_k_buffer_size, sizeof(__pyx_k_buffer_size), 0, 0, 1, 1},
  {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1},
  {&__pyx_n_u_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 1, 0, 1},
  {&__pyx_n_s_calldata, __pyx_k_calldata, sizeof(__pyx_k_calldata), 0, 0, 1, 1},
  {&__pyx_kp_s_calldata_2, __pyx_k_calldata_2, sizeof(__pyx_k_calldata_2), 0, 0, 1, 0},
  {&__pyx_kp_s_cannot_have_non_bool_dtype_for_f, __pyx_k_cannot_have_non_bool_dtype_for_f, sizeof(__pyx_k_cannot_have_non_bool_dtype_for_f), 0, 0, 1, 0},
  {&__pyx_n_s_capacity, __pyx_k_capacity, sizeof(__pyx_k_capacity), 0, 0, 1, 1},
  {&__pyx_n_s_check_samples, __pyx_k_check_samples, sizeof(__pyx_k_check_samples), 0, 0, 1, 1},
  {&__pyx_n_s_check_string_dtype, __pyx_k_check_string_dtype, sizeof(__pyx_k_check_string_dtype), 0, 0, 1, 1},
  {&__pyx_n_s_chunk_length, __pyx_k_chunk_length, sizeof(__pyx_k_chunk_length), 0, 0, 1, 1},
  {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1},
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1},
  {&__pyx_kp_s_contiguous_and_direct, __pyx_k_contiguous_and_direct, sizeof(__pyx_k_contiguous_and_direct), 0, 0, 1, 0},
  {&__pyx_kp_s_contiguous_and_indirect, __pyx_k_contiguous_and_indirect, sizeof(__pyx_k_contiguous_and_indirect), 0, 0, 1, 0},
  {&__pyx_n_s_count_nonzero, __pyx_k_count_nonzero, sizeof(__pyx_k_count_nonzero), 0, 0, 1, 1},
  {&__pyx_n_s_default_ann_types, __pyx_k_default_ann_types, sizeof(__pyx_k_default_ann_types), 0, 0, 1, 1},
  {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1},
  {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1},
  {&__pyx_n_s_dtype_is_object, __pyx_k_dtype_is_object, sizeof(__pyx_k_dtype_is_object), 0, 0, 1, 1},
  {&__pyx_n_s_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 0, 1, 1},
  {&__pyx_kp_s_empty_CHROM, __pyx_k_empty_CHROM, sizeof(__pyx_k_empty_CHROM), 0, 0, 1, 0},
  {&__pyx_kp_s_empty_POS, __pyx_k_empty_POS, sizeof(__pyx_k_empty_POS), 0, 0, 1, 0},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1},
  {&__pyx_n_s_error, __pyx_k_error, sizeof(__pyx_k_error), 0, 0, 1, 1},
  {&__pyx_kp_s_error_parsing_floating_point_val, __pyx_k_error_parsing_floating_point_val, sizeof(__pyx_k_error_parsing_floating_point_val), 0, 0, 1, 0},
  {&__pyx_kp_s_error_parsing_integer_value, __pyx_k_error_parsing_integer_value, sizeof(__pyx_k_error_parsing_integer_value), 0, 0, 1, 0},
  {&__pyx_kp_s_expected_string_S_or_object_O_dt, __pyx_k_expected_string_S_or_object_O_dt, sizeof(__pyx_k_expected_string_S_or_object_O_dt), 0, 0, 1, 0},
  {&__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1},
  {&__pyx_n_s_ff, __pyx_k_ff, sizeof(__pyx_k_ff), 0, 0, 1, 1},
  {&__pyx_n_s_field, __pyx_k_field, sizeof(__pyx_k_field), 0, 0, 1, 1},
  {&__pyx_kp_s_field_s, __pyx_k_field_s, sizeof(__pyx_k_field_s), 0, 0, 1, 0},
  {&__pyx_n_s_fields, __pyx_k_fields, sizeof(__pyx_k_fields), 0, 0, 1, 1},
  {&__pyx_n_s_fileobj, __pyx_k_fileobj, sizeof(__pyx_k_fileobj), 0, 0, 1, 1},
  {&__pyx_n_s_fill, __pyx_k_fill, sizeof(__pyx_k_fill), 0, 0, 1, 1},
  {&__pyx_n_s_fills, __pyx_k_fills, sizeof(__pyx_k_fills), 0, 0, 1, 1},
  {&__pyx_n_s_filter_keys, __pyx_k_filter_keys, sizeof(__pyx_k_filter_keys), 0, 0, 1, 1},
  {&__pyx_n_s_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 0, 1, 1},
  {&__pyx_n_s_float32, __pyx_k_float32, sizeof(__pyx_k_float32), 0, 0, 1, 1},
  {&__pyx_n_s_float64, __pyx_k_float64, sizeof(__pyx_k_float64), 0, 0, 1, 1},
  {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1},
  {&__pyx_n_s_format_keys, __pyx_k_format_keys, sizeof(__pyx_k_format_keys), 0, 0, 1, 1},
  {&__pyx_n_s_fortran, __pyx_k_fortran, sizeof(__pyx_k_fortran), 0, 0, 1, 1},
  {&__pyx_n_u_fortran, __pyx_k_fortran, sizeof(__pyx_k_fortran), 0, 1, 0, 1},
  {&__pyx_kp_s_genotype, __pyx_k_genotype, sizeof(__pyx_k_genotype), 0, 0, 1, 0},
  {&__pyx_kp_s_genotype_ac, __pyx_k_genotype_ac, sizeof(__pyx_k_genotype_ac), 0, 0, 1, 0},
  {&__pyx_n_s_get, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1},
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
  {&__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_k_got_differing_extents_in_dimensi, sizeof(__pyx_k_got_differing_extents_in_dimensi), 0, 0, 1, 0},
  {&__pyx_n_s_headers, __pyx_k_headers, sizeof(__pyx_k_headers), 0, 0, 1, 1},
  {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1},
  {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1},
  {&__pyx_n_s_iinfo, __pyx_k_iinfo, sizeof(__pyx_k_iinfo), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_info_keys, __pyx_k_info_keys, sizeof(__pyx_k_info_keys), 0, 0, 1, 1},
  {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1},
  {&__pyx_n_s_init_alt, __pyx_k_init_alt, sizeof(__pyx_k_init_alt), 0, 0, 1, 1},
  {&__pyx_n_s_init_chrom_pos, __pyx_k_init_chrom_pos, sizeof(__pyx_k_init_chrom_pos), 0, 0, 1, 1},
  {&__pyx_n_s_init_filter, __pyx_k_init_filter, sizeof(__pyx_k_init_filter), 0, 0, 1, 1},
  {&__pyx_n_s_init_format_calldata, __pyx_k_init_format_calldata, sizeof(__pyx_k_init_format_calldata), 0, 0, 1, 1},
  {&__pyx_n_s_init_id, __pyx_k_init_id, sizeof(__pyx_k_init_id), 0, 0, 1, 1},
  {&__pyx_n_s_init_info, __pyx_k_init_info, sizeof(__pyx_k_init_info), 0, 0, 1, 1},
  {&__pyx_n_s_init_qual, __pyx_k_init_qual, sizeof(__pyx_k_init_qual), 0, 0, 1, 1},
  {&__pyx_n_s_init_ref, __pyx_k_init_ref, sizeof(__pyx_k_init_ref), 0, 0, 1, 1},
  {&__pyx_n_s_init_region, __pyx_k_init_region, sizeof(__pyx_k_init_region), 0, 0, 1, 1},
  {&__pyx_n_s_int16, __pyx_k_int16, sizeof(__pyx_k_int16), 0, 0, 1, 1},
  {&__pyx_n_s_int32, __pyx_k_int32, sizeof(__pyx_k_int32), 0, 0, 1, 1},
  {&__pyx_n_s_int64, __pyx_k_int64, sizeof(__pyx_k_int64), 0, 0, 1, 1},
  {&__pyx_n_s_int8, __pyx_k_int8, sizeof(__pyx_k_int8), 0, 0, 1, 1},
  {&__pyx_kp_s_invalid_ANN_field_r_will_be_igno, __pyx_k_invalid_ANN_field_r_will_be_igno, sizeof(__pyx_k_invalid_ANN_field_r_will_be_igno), 0, 0, 1, 0},
  {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1},
  {&__pyx_n_s_itemsize, __pyx_k_itemsize, sizeof(__pyx_k_itemsize), 0, 0, 1, 1},
  {&__pyx_kp_s_itemsize_0_for_cython_array, __pyx_k_itemsize_0_for_cython_array, sizeof(__pyx_k_itemsize_0_for_cython_array), 0, 0, 1, 0},
  {&__pyx_n_s_keep_original, __pyx_k_keep_original, sizeof(__pyx_k_keep_original), 0, 0, 1, 1},
  {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1},
  {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1},
  {&__pyx_n_s_kind, __pyx_k_kind, sizeof(__pyx_k_kind), 0, 0, 1, 1},
  {&__pyx_n_s_loc_samples, __pyx_k_loc_samples, sizeof(__pyx_k_loc_samples), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_malloc_integer_array, __pyx_k_malloc_integer_array, sizeof(__pyx_k_malloc_integer_array), 0, 0, 1, 1},
  {&__pyx_n_s_malloc_string_array, __pyx_k_malloc_string_array, sizeof(__pyx_k_malloc_string_array), 0, 0, 1, 1},
  {&__pyx_n_s_max, __pyx_k_max, sizeof(__pyx_k_max), 0, 0, 1, 1},
  {&__pyx_n_s_memview, __pyx_k_memview, sizeof(__pyx_k_memview), 0, 0, 1, 1},
  {&__pyx_kp_s_missing_INFO_key, __pyx_k_missing_INFO_key, sizeof(__pyx_k_missing_INFO_key), 0, 0, 1, 0},
  {&__pyx_n_s_mode, __pyx_k_mode, sizeof(__pyx_k_mode), 0, 0, 1, 1},
  {&__pyx_kp_s_more_samples_than_given_in_heade, __pyx_k_more_samples_than_given_in_heade, sizeof(__pyx_k_more_samples_than_given_in_heade), 0, 0, 1, 0},
  {&__pyx_n_s_n_samples, __pyx_k_n_samples, sizeof(__pyx_k_n_samples), 0, 0, 1, 1},
  {&__pyx_n_s_n_samples_out, __pyx_k_n_samples_out, sizeof(__pyx_k_n_samples_out), 0, 0, 1, 1},
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
  {&__pyx_n_s_nan, __pyx_k_nan, sizeof(__pyx_k_nan), 0, 0, 1, 1},
  {&__pyx_kp_u_ndarray_is_not_C_contiguous, __pyx_k_ndarray_is_not_C_contiguous, sizeof(__pyx_k_ndarray_is_not_C_contiguous), 0, 1, 0, 0},
  {&__pyx_kp_u_ndarray_is_not_Fortran_contiguou, __pyx_k_ndarray_is_not_Fortran_contiguou, sizeof(__pyx_k_ndarray_is_not_Fortran_contiguou), 0, 1, 0, 0},
  {&__pyx_n_s_ndim, __pyx_k_ndim, sizeof(__pyx_k_ndim), 0, 0, 1, 1},
  {&__pyx_n_s_new, __pyx_k_new, sizeof(__pyx_k_new), 0, 0, 1, 1},
  {&__pyx_n_s_newaxis, __pyx_k_newaxis, sizeof(__pyx_k_newaxis), 0, 0, 1, 1},
  {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
  {&__pyx_n_s_normalize_ann_field_prefix, __pyx_k_normalize_ann_field_prefix, sizeof(__pyx_k_normalize_ann_field_prefix), 0, 0, 1, 1},
  {&__pyx_n_s_normalize_ann_fields, __pyx_k_normalize_ann_fields, sizeof(__pyx_k_normalize_ann_fields), 0, 0, 1, 1},
  {&__pyx_n_s_normalize_ann_types, __pyx_k_normalize_ann_types, sizeof(__pyx_k_normalize_ann_types), 0, 0, 1, 1},
  {&__pyx_n_s_normed_fields, __pyx_k_normed_fields, sizeof(__pyx_k_normed_fields), 0, 0, 1, 1},
  {&__pyx_n_s_normed_types, __pyx_k_normed_types, sizeof(__pyx_k_normed_types), 0, 0, 1, 1},
  {&__pyx_kp_s_not_all_characters_parsed_for_fl, __pyx_k_not_all_characters_parsed_for_fl, sizeof(__pyx_k_not_all_characters_parsed_for_fl), 0, 0, 1, 0},
  {&__pyx_kp_s_not_all_characters_parsed_for_in, __pyx_k_not_all_characters_parsed_for_in, sizeof(__pyx_k_not_all_characters_parsed_for_in), 0, 0, 1, 0},
  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
  {&__pyx_n_s_number, __pyx_k_number, sizeof(__pyx_k_number), 0, 0, 1, 1},
  {&__pyx_n_s_numbers, __pyx_k_numbers, sizeof(__pyx_k_numbers), 0, 0, 1, 1},
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
  {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to, sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0},
  {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor, sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0},
  {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
  {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
  {&__pyx_n_s_ones, __pyx_k_ones, sizeof(__pyx_k_ones), 0, 0, 1, 1},
  {&__pyx_kp_s_only_float32_supported_for_QUAL, __pyx_k_only_float32_supported_for_QUAL, sizeof(__pyx_k_only_float32_supported_for_QUAL), 0, 0, 1, 0},
  {&__pyx_kp_s_only_int32_supported_for_POS_fie, __pyx_k_only_int32_supported_for_POS_fie, sizeof(__pyx_k_only_int32_supported_for_POS_fie), 0, 0, 1, 0},
  {&__pyx_kp_s_only_signed_integer_dtype_suppor, __pyx_k_only_signed_integer_dtype_suppor, sizeof(__pyx_k_only_signed_integer_dtype_suppor), 0, 0, 1, 0},
  {&__pyx_n_s_order, __pyx_k_order, sizeof(__pyx_k_order), 0, 0, 1, 1},
  {&__pyx_n_s_pack, __pyx_k_pack, sizeof(__pyx_k_pack), 0, 0, 1, 1},
  {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError, sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum, sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_getbuffer, __pyx_k_pyx_getbuffer, sizeof(__pyx_k_pyx_getbuffer), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_result, __pyx_k_pyx_result, sizeof(__pyx_k_pyx_result), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_type, __pyx_k_pyx_type, sizeof(__pyx_k_pyx_type), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_ANNTransformer, __pyx_k_pyx_unpickle_ANNTransformer, sizeof(__pyx_k_pyx_unpickle_ANNTransformer), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_Enum, __pyx_k_pyx_unpickle_Enum, sizeof(__pyx_k_pyx_unpickle_Enum), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_FileInputStream, __pyx_k_pyx_unpickle_FileInputStream, sizeof(__pyx_k_pyx_unpickle_FileInputStream), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_InputStreamBase, __pyx_k_pyx_unpickle_InputStreamBase, sizeof(__pyx_k_pyx_unpickle_InputStreamBase), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFAltObjectParse, __pyx_k_pyx_unpickle_VCFAltObjectParse, sizeof(__pyx_k_pyx_unpickle_VCFAltObjectParse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFAltStringParse, __pyx_k_pyx_unpickle_VCFAltStringParse, sizeof(__pyx_k_pyx_unpickle_VCFAltStringParse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataFloat3, __pyx_k_pyx_unpickle_VCFCallDataFloat3, sizeof(__pyx_k_pyx_unpickle_VCFCallDataFloat3), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataFloat6, __pyx_k_pyx_unpickle_VCFCallDataFloat6, sizeof(__pyx_k_pyx_unpickle_VCFCallDataFloat6), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataInt16P, __pyx_k_pyx_unpickle_VCFCallDataInt16P, sizeof(__pyx_k_pyx_unpickle_VCFCallDataInt16P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataInt32P, __pyx_k_pyx_unpickle_VCFCallDataInt32P, sizeof(__pyx_k_pyx_unpickle_VCFCallDataInt32P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataInt64P, __pyx_k_pyx_unpickle_VCFCallDataInt64P, sizeof(__pyx_k_pyx_unpickle_VCFCallDataInt64P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataInt8Pa, __pyx_k_pyx_unpickle_VCFCallDataInt8Pa, sizeof(__pyx_k_pyx_unpickle_VCFCallDataInt8Pa), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataObject, __pyx_k_pyx_unpickle_VCFCallDataObject, sizeof(__pyx_k_pyx_unpickle_VCFCallDataObject), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataParser, __pyx_k_pyx_unpickle_VCFCallDataParser, sizeof(__pyx_k_pyx_unpickle_VCFCallDataParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataSkipPa, __pyx_k_pyx_unpickle_VCFCallDataSkipPa, sizeof(__pyx_k_pyx_unpickle_VCFCallDataSkipPa), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataString, __pyx_k_pyx_unpickle_VCFCallDataString, sizeof(__pyx_k_pyx_unpickle_VCFCallDataString), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataUInt16, __pyx_k_pyx_unpickle_VCFCallDataUInt16, sizeof(__pyx_k_pyx_unpickle_VCFCallDataUInt16), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataUInt32, __pyx_k_pyx_unpickle_VCFCallDataUInt32, sizeof(__pyx_k_pyx_unpickle_VCFCallDataUInt32), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataUInt64, __pyx_k_pyx_unpickle_VCFCallDataUInt64, sizeof(__pyx_k_pyx_unpickle_VCFCallDataUInt64), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFCallDataUInt8P, __pyx_k_pyx_unpickle_VCFCallDataUInt8P, sizeof(__pyx_k_pyx_unpickle_VCFCallDataUInt8P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFChromPosParser, __pyx_k_pyx_unpickle_VCFChromPosParser, sizeof(__pyx_k_pyx_unpickle_VCFChromPosParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFChunkIterator, __pyx_k_pyx_unpickle_VCFChunkIterator, sizeof(__pyx_k_pyx_unpickle_VCFChunkIterator), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFFieldParserBas, __pyx_k_pyx_unpickle_VCFFieldParserBas, sizeof(__pyx_k_pyx_unpickle_VCFFieldParserBas), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACInt1, __pyx_k_pyx_unpickle_VCFGenotypeACInt1, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACInt1), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACInt3, __pyx_k_pyx_unpickle_VCFGenotypeACInt3, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACInt3), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACInt6, __pyx_k_pyx_unpickle_VCFGenotypeACInt6, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACInt6), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACInt8, __pyx_k_pyx_unpickle_VCFGenotypeACInt8, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACInt8), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt, __pyx_k_pyx_unpickle_VCFGenotypeACUInt, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACUInt), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_2, __pyx_k_pyx_unpickle_VCFGenotypeACUInt_2, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACUInt_2), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_3, __pyx_k_pyx_unpickle_VCFGenotypeACUInt_3, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACUInt_3), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_4, __pyx_k_pyx_unpickle_VCFGenotypeACUInt_4, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeACUInt_4), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeInt16P, __pyx_k_pyx_unpickle_VCFGenotypeInt16P, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeInt16P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeInt32P, __pyx_k_pyx_unpickle_VCFGenotypeInt32P, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeInt32P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeInt64P, __pyx_k_pyx_unpickle_VCFGenotypeInt64P, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeInt64P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeInt8Pa, __pyx_k_pyx_unpickle_VCFGenotypeInt8Pa, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeInt8Pa), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeUInt16, __pyx_k_pyx_unpickle_VCFGenotypeUInt16, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeUInt16), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeUInt32, __pyx_k_pyx_unpickle_VCFGenotypeUInt32, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeUInt32), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeUInt64, __pyx_k_pyx_unpickle_VCFGenotypeUInt64, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeUInt64), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFGenotypeUInt8P, __pyx_k_pyx_unpickle_VCFGenotypeUInt8P, sizeof(__pyx_k_pyx_unpickle_VCFGenotypeUInt8P), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFIDObjectParser, __pyx_k_pyx_unpickle_VCFIDObjectParser, sizeof(__pyx_k_pyx_unpickle_VCFIDObjectParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFIDStringParser, __pyx_k_pyx_unpickle_VCFIDStringParser, sizeof(__pyx_k_pyx_unpickle_VCFIDStringParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoFlagParser, __pyx_k_pyx_unpickle_VCFInfoFlagParser, sizeof(__pyx_k_pyx_unpickle_VCFInfoFlagParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoFloat32Par, __pyx_k_pyx_unpickle_VCFInfoFloat32Par, sizeof(__pyx_k_pyx_unpickle_VCFInfoFloat32Par), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoFloat64Par, __pyx_k_pyx_unpickle_VCFInfoFloat64Par, sizeof(__pyx_k_pyx_unpickle_VCFInfoFloat64Par), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoInt16Parse, __pyx_k_pyx_unpickle_VCFInfoInt16Parse, sizeof(__pyx_k_pyx_unpickle_VCFInfoInt16Parse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoInt32Parse, __pyx_k_pyx_unpickle_VCFInfoInt32Parse, sizeof(__pyx_k_pyx_unpickle_VCFInfoInt32Parse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoInt64Parse, __pyx_k_pyx_unpickle_VCFInfoInt64Parse, sizeof(__pyx_k_pyx_unpickle_VCFInfoInt64Parse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoInt8Parser, __pyx_k_pyx_unpickle_VCFInfoInt8Parser, sizeof(__pyx_k_pyx_unpickle_VCFInfoInt8Parser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoObjectPars, __pyx_k_pyx_unpickle_VCFInfoObjectPars, sizeof(__pyx_k_pyx_unpickle_VCFInfoObjectPars), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoParserBase, __pyx_k_pyx_unpickle_VCFInfoParserBase, sizeof(__pyx_k_pyx_unpickle_VCFInfoParserBase), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoSkipParser, __pyx_k_pyx_unpickle_VCFInfoSkipParser, sizeof(__pyx_k_pyx_unpickle_VCFInfoSkipParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoStringPars, __pyx_k_pyx_unpickle_VCFInfoStringPars, sizeof(__pyx_k_pyx_unpickle_VCFInfoStringPars), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoUInt16Pars, __pyx_k_pyx_unpickle_VCFInfoUInt16Pars, sizeof(__pyx_k_pyx_unpickle_VCFInfoUInt16Pars), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoUInt32Pars, __pyx_k_pyx_unpickle_VCFInfoUInt32Pars, sizeof(__pyx_k_pyx_unpickle_VCFInfoUInt32Pars), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoUInt64Pars, __pyx_k_pyx_unpickle_VCFInfoUInt64Pars, sizeof(__pyx_k_pyx_unpickle_VCFInfoUInt64Pars), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFInfoUInt8Parse, __pyx_k_pyx_unpickle_VCFInfoUInt8Parse, sizeof(__pyx_k_pyx_unpickle_VCFInfoUInt8Parse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFParser, __pyx_k_pyx_unpickle_VCFParser, sizeof(__pyx_k_pyx_unpickle_VCFParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFQualParser, __pyx_k_pyx_unpickle_VCFQualParser, sizeof(__pyx_k_pyx_unpickle_VCFQualParser), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFRefObjectParse, __pyx_k_pyx_unpickle_VCFRefObjectParse, sizeof(__pyx_k_pyx_unpickle_VCFRefObjectParse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFRefStringParse, __pyx_k_pyx_unpickle_VCFRefStringParse, sizeof(__pyx_k_pyx_unpickle_VCFRefStringParse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFSkipAllCallDat, __pyx_k_pyx_unpickle_VCFSkipAllCallDat, sizeof(__pyx_k_pyx_unpickle_VCFSkipAllCallDat), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_VCFSkipFieldParse, __pyx_k_pyx_unpickle_VCFSkipFieldParse, sizeof(__pyx_k_pyx_unpickle_VCFSkipFieldParse), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_readinto, __pyx_k_readinto, sizeof(__pyx_k_readinto), 0, 0, 1, 1},
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
  {&__pyx_n_s_region, __pyx_k_region, sizeof(__pyx_k_region), 0, 0, 1, 1},
  {&__pyx_n_s_region_begin, __pyx_k_region_begin, sizeof(__pyx_k_region_begin), 0, 0, 1, 1},
  {&__pyx_n_s_region_chrom, __pyx_k_region_chrom, sizeof(__pyx_k_region_chrom), 0, 0, 1, 1},
  {&__pyx_n_s_region_end, __pyx_k_region_end, sizeof(__pyx_k_region_end), 0, 0, 1, 1},
  {&__pyx_n_s_remove, __pyx_k_remove, sizeof(__pyx_k_remove), 0, 0, 1, 1},
  {&__pyx_n_s_reshape, __pyx_k_reshape, sizeof(__pyx_k_reshape), 0, 0, 1, 1},
  {&__pyx_kp_s_s_s, __pyx_k_s_s, sizeof(__pyx_k_s_s), 0, 0, 1, 0},
  {&__pyx_kp_s_sample_s_s_s_s, __pyx_k_sample_s_s_s_s, sizeof(__pyx_k_sample_s_s_s_s), 0, 0, 1, 0},
  {&__pyx_n_s_samples, __pyx_k_samples, sizeof(__pyx_k_samples), 0, 0, 1, 1},
  {&__pyx_n_s_setdefault, __pyx_k_setdefault, sizeof(__pyx_k_setdefault), 0, 0, 1, 1},
  {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
  {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
  {&__pyx_n_s_shape, __pyx_k_shape, sizeof(__pyx_k_shape), 0, 0, 1, 1},
  {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1},
  {&__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1},
  {&__pyx_n_s_squeeze, __pyx_k_squeeze, sizeof(__pyx_k_squeeze), 0, 0, 1, 1},
  {&__pyx_kp_s_src_variant_tools_io_vcf_read_py, __pyx_k_src_variant_tools_io_vcf_read_py, sizeof(__pyx_k_src_variant_tools_io_vcf_read_py), 0, 0, 1, 0},
  {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1},
  {&__pyx_n_s_startswith, __pyx_k_startswith, sizeof(__pyx_k_startswith), 0, 0, 1, 1},
  {&__pyx_n_s_step, __pyx_k_step, sizeof(__pyx_k_step), 0, 0, 1, 1},
  {&__pyx_n_s_stop, __pyx_k_stop, sizeof(__pyx_k_stop), 0, 0, 1, 1},
  {&__pyx_n_s_store, __pyx_k_store, sizeof(__pyx_k_store), 0, 0, 1, 1},
  {&__pyx_n_s_store_alt, __pyx_k_store_alt, sizeof(__pyx_k_store_alt), 0, 0, 1, 1},
  {&__pyx_n_s_store_chrom, __pyx_k_store_chrom, sizeof(__pyx_k_store_chrom), 0, 0, 1, 1},
  {&__pyx_n_s_store_is_snp, __pyx_k_store_is_snp, sizeof(__pyx_k_store_is_snp), 0, 0, 1, 1},
  {&__pyx_n_s_store_numalt, __pyx_k_store_numalt, sizeof(__pyx_k_store_numalt), 0, 0, 1, 1},
  {&__pyx_n_s_store_pos, __pyx_k_store_pos, sizeof(__pyx_k_store_pos), 0, 0, 1, 1},
  {&__pyx_n_s_store_svlen, __pyx_k_store_svlen, sizeof(__pyx_k_store_svlen), 0, 0, 1, 1},
  {&__pyx_n_s_stream, __pyx_k_stream, sizeof(__pyx_k_stream), 0, 0, 1, 1},
  {&__pyx_kp_s_strided_and_direct, __pyx_k_strided_and_direct, sizeof(__pyx_k_strided_and_direct), 0, 0, 1, 0},
  {&__pyx_kp_s_strided_and_direct_or_indirect, __pyx_k_strided_and_direct_or_indirect, sizeof(__pyx_k_strided_and_direct_or_indirect), 0, 0, 1, 0},
  {&__pyx_kp_s_strided_and_indirect, __pyx_k_strided_and_indirect, sizeof(__pyx_k_strided_and_indirect), 0, 0, 1, 0},
  {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0},
  {&__pyx_n_s_struct, __pyx_k_struct, sizeof(__pyx_k_struct), 0, 0, 1, 1},
  {&__pyx_n_s_super, __pyx_k_super, sizeof(__pyx_k_super), 0, 0, 1, 1},
  {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1},
  {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_kp_s_type_r_not_supported_for_FORMAT, __pyx_k_type_r_not_supported_for_FORMAT, sizeof(__pyx_k_type_r_not_supported_for_FORMAT), 0, 0, 1, 0},
  {&__pyx_kp_s_type_r_not_supported_for_genotyp, __pyx_k_type_r_not_supported_for_genotyp, sizeof(__pyx_k_type_r_not_supported_for_genotyp), 0, 0, 1, 0},
  {&__pyx_kp_s_type_r_not_supported_for_genotyp_2, __pyx_k_type_r_not_supported_for_genotyp_2, sizeof(__pyx_k_type_r_not_supported_for_genotyp_2), 0, 0, 1, 0},
  {&__pyx_kp_s_type_s_not_supported_for_INFO_fi, __pyx_k_type_s_not_supported_for_INFO_fi, sizeof(__pyx_k_type_s_not_supported_for_INFO_fi), 0, 0, 1, 0},
  {&__pyx_n_s_types, __pyx_k_types, sizeof(__pyx_k_types), 0, 0, 1, 1},
  {&__pyx_n_s_u1, __pyx_k_u1, sizeof(__pyx_k_u1), 0, 0, 1, 1},
  {&__pyx_n_s_uint16, __pyx_k_uint16, sizeof(__pyx_k_uint16), 0, 0, 1, 1},
  {&__pyx_n_s_uint32, __pyx_k_uint32, sizeof(__pyx_k_uint32), 0, 0, 1, 1},
  {&__pyx_n_s_uint64, __pyx_k_uint64, sizeof(__pyx_k_uint64), 0, 0, 1, 1},
  {&__pyx_n_s_uint8, __pyx_k_uint8, sizeof(__pyx_k_uint8), 0, 0, 1, 1},
  {&__pyx_kp_s_unable_to_allocate_array_data, __pyx_k_unable_to_allocate_array_data, sizeof(__pyx_k_unable_to_allocate_array_data), 0, 0, 1, 0},
  {&__pyx_kp_s_unable_to_allocate_shape_and_str, __pyx_k_unable_to_allocate_shape_and_str, sizeof(__pyx_k_unable_to_allocate_shape_and_str), 0, 0, 1, 0},
  {&__pyx_kp_s_unexpected_EOL_character, __pyx_k_unexpected_EOL_character, sizeof(__pyx_k_unexpected_EOL_character), 0, 0, 1, 0},
  {&__pyx_kp_s_unexpected_fields_left_over_r, __pyx_k_unexpected_fields_left_over_r, sizeof(__pyx_k_unexpected_fields_left_over_r), 0, 0, 1, 0},
  {&__pyx_kp_s_unexpected_parser_state, __pyx_k_unexpected_parser_state, sizeof(__pyx_k_unexpected_parser_state), 0, 0, 1, 0},
  {&__pyx_n_s_unknown, __pyx_k_unknown, sizeof(__pyx_k_unknown), 0, 0, 1, 1},
  {&__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_k_unknown_dtype_code_in_numpy_pxd, sizeof(__pyx_k_unknown_dtype_code_in_numpy_pxd), 0, 1, 0, 0},
  {&__pyx_n_s_unpack, __pyx_k_unpack, sizeof(__pyx_k_unpack), 0, 0, 1, 1},
  {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1},
  {&__pyx_kp_s_variant_s, __pyx_k_variant_s, sizeof(__pyx_k_variant_s), 0, 0, 1, 0},
  {&__pyx_n_s_variant_tools_io_vcf_read, __pyx_k_variant_tools_io_vcf_read, sizeof(__pyx_k_variant_tools_io_vcf_read), 0, 0, 1, 1},
  {&__pyx_n_s_variants, __pyx_k_variants, sizeof(__pyx_k_variants), 0, 0, 1, 1},
  {&__pyx_kp_s_variants_2, __pyx_k_variants_2, sizeof(__pyx_k_variants_2), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ALT, __pyx_k_variants_ALT, sizeof(__pyx_k_variants_ALT), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN, __pyx_k_variants_ANN, sizeof(__pyx_k_variants_ANN), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_2, __pyx_k_variants_ANN_2, sizeof(__pyx_k_variants_ANN_2), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_AA, __pyx_k_variants_ANN_AA, sizeof(__pyx_k_variants_ANN_AA), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_AA_length, __pyx_k_variants_ANN_AA_length, sizeof(__pyx_k_variants_ANN_AA_length), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_AA_pos, __pyx_k_variants_ANN_AA_pos, sizeof(__pyx_k_variants_ANN_AA_pos), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Allele, __pyx_k_variants_ANN_Allele, sizeof(__pyx_k_variants_ANN_Allele), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Annotation, __pyx_k_variants_ANN_Annotation, sizeof(__pyx_k_variants_ANN_Annotation), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Annotation_Impact, __pyx_k_variants_ANN_Annotation_Impact, sizeof(__pyx_k_variants_ANN_Annotation_Impact), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_CDS, __pyx_k_variants_ANN_CDS, sizeof(__pyx_k_variants_ANN_CDS), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_CDS_length, __pyx_k_variants_ANN_CDS_length, sizeof(__pyx_k_variants_ANN_CDS_length), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_CDS_pos, __pyx_k_variants_ANN_CDS_pos, sizeof(__pyx_k_variants_ANN_CDS_pos), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Distance, __pyx_k_variants_ANN_Distance, sizeof(__pyx_k_variants_ANN_Distance), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Feature_ID, __pyx_k_variants_ANN_Feature_ID, sizeof(__pyx_k_variants_ANN_Feature_ID), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Feature_Type, __pyx_k_variants_ANN_Feature_Type, sizeof(__pyx_k_variants_ANN_Feature_Type), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Gene_ID, __pyx_k_variants_ANN_Gene_ID, sizeof(__pyx_k_variants_ANN_Gene_ID), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Gene_Name, __pyx_k_variants_ANN_Gene_Name, sizeof(__pyx_k_variants_ANN_Gene_Name), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_HGVS_c, __pyx_k_variants_ANN_HGVS_c, sizeof(__pyx_k_variants_ANN_HGVS_c), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_HGVS_p, __pyx_k_variants_ANN_HGVS_p, sizeof(__pyx_k_variants_ANN_HGVS_p), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Rank, __pyx_k_variants_ANN_Rank, sizeof(__pyx_k_variants_ANN_Rank), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_Transcript_BioType, __pyx_k_variants_ANN_Transcript_BioType, sizeof(__pyx_k_variants_ANN_Transcript_BioType), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_cDNA, __pyx_k_variants_ANN_cDNA, sizeof(__pyx_k_variants_ANN_cDNA), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_cDNA_length, __pyx_k_variants_ANN_cDNA_length, sizeof(__pyx_k_variants_ANN_cDNA_length), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ANN_cDNA_pos, __pyx_k_variants_ANN_cDNA_pos, sizeof(__pyx_k_variants_ANN_cDNA_pos), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_CHROM, __pyx_k_variants_CHROM, sizeof(__pyx_k_variants_CHROM), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_FILTER, __pyx_k_variants_FILTER, sizeof(__pyx_k_variants_FILTER), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_ID, __pyx_k_variants_ID, sizeof(__pyx_k_variants_ID), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_POS, __pyx_k_variants_POS, sizeof(__pyx_k_variants_POS), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_QUAL, __pyx_k_variants_QUAL, sizeof(__pyx_k_variants_QUAL), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_REF, __pyx_k_variants_REF, sizeof(__pyx_k_variants_REF), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_is_snp, __pyx_k_variants_is_snp, sizeof(__pyx_k_variants_is_snp), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_numalt, __pyx_k_variants_numalt, sizeof(__pyx_k_variants_numalt), 0, 0, 1, 0},
  {&__pyx_kp_s_variants_svlen, __pyx_k_variants_svlen, sizeof(__pyx_k_variants_svlen), 0, 0, 1, 0},
  {&__pyx_n_s_vcf_state_labels, __pyx_k_vcf_state_labels, sizeof(__pyx_k_vcf_state_labels), 0, 0, 1, 1},
  {&__pyx_n_s_version_info, __pyx_k_version_info, sizeof(__pyx_k_version_info), 0, 0, 1, 1},
  {&__pyx_n_s_view, __pyx_k_view, sizeof(__pyx_k_view), 0, 0, 1, 1},
  {&__pyx_n_s_warn, __pyx_k_warn, sizeof(__pyx_k_warn), 0, 0, 1, 1},
  {&__pyx_n_s_warnings, __pyx_k_warnings, sizeof(__pyx_k_warnings), 0, 0, 1, 1},
  {&__pyx_n_s_zeros, __pyx_k_zeros, sizeof(__pyx_k_zeros), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 193, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) __PYX_ERR(0, 476, __pyx_L1_error)
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 536, __pyx_L1_error)
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 545, __pyx_L1_error)
  __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_n_s_super); if (!__pyx_builtin_super) __PYX_ERR(0, 890, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 1730, __pyx_L1_error)
  __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1038, __pyx_L1_error)
  __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(1, 148, __pyx_L1_error)
  __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 400, __pyx_L1_error)
  __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 609, __pyx_L1_error)
  __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(1, 828, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple_);
  __Pyx_GIVEREF(__pyx_tuple_);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__2);
  __Pyx_GIVEREF(__pyx_tuple__2);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "variant_tools/io_vcf_read.pyx":571
 *             if POS_FIELD in types:
 *                 t = types[POS_FIELD]
 *                 if t != np.dtype('int32'):             # <<<<<<<<<<<<<<
 *                     warnings.warn('only int32 supported for POS field, ignoring requested type: %r' % t)
 *             kwds['store_pos'] = True
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_n_s_int32); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "variant_tools/io_vcf_read.pyx":654
 *             if QUAL_FIELD in types:
 *                 t = types[QUAL_FIELD]
 *                 if t != np.dtype('float32'):             # <<<<<<<<<<<<<<
 *                     warnings.warn('only float32 supported for QUAL field, ignoring requested type: %r' % t)
 *             fill = fills.get(QUAL_FIELD, -1)
 */
  __pyx_tuple__10 = PyTuple_Pack(1, __pyx_n_s_float32); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__10);
  __Pyx_GIVEREF(__pyx_tuple__10);

  /* "variant_tools/io_vcf_read.pyx":669
 *         for field in list(fields):
 *             if field.startswith('variants/FILTER_'):
 *                 k = field[16:]             # <<<<<<<<<<<<<<
 *                 if not PY2:
 *                     k = k.encode('ascii')
 */
  __pyx_slice__11 = PySlice_New(__pyx_int_16, Py_None, Py_None); if (unlikely(!__pyx_slice__11)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_slice__11);
  __Pyx_GIVEREF(__pyx_slice__11);

  /* "variant_tools/io_vcf_read.pyx":1180
 * 
 *     def __init__(self, chunk_length):
 *         super(VCFIDObjectParser, self).__init__(key=b'ID', dtype=np.dtype('object'), number=1,             # <<<<<<<<<<<<<<
 *                                                 chunk_length=chunk_length)
 * 
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_n_s_object); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 1180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "variant_tools/io_vcf_read.pyx":1774
 *                     warnings.warn('cannot have non-bool dtype for field with number 0, ignoring type %r' % t)
 *                 parser = VCFInfoFlagParser(key, chunk_length=chunk_length)
 *             elif t == np.dtype('int8'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt8Parser(key, number=n,
 */
  __pyx_tuple__17 = PyTuple_Pack(1, __pyx_n_s_int8); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 1774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "variant_tools/io_vcf_read.pyx":1778
 *                 parser = VCFInfoInt8Parser(key, number=n,
 *                                            fill=fill, chunk_length=chunk_length)
 *             elif t == np.dtype('int16'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt16Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_n_s_int16); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 1778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "variant_tools/io_vcf_read.pyx":1786
 *                 parser = VCFInfoInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('int64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, -1)
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_n_s_int64); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 1786, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);

  /* "variant_tools/io_vcf_read.pyx":1790
 *                 parser = VCFInfoInt64Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('uint8'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU8.max)
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__20 = PyTuple_Pack(1, __pyx_n_s_uint8); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 1790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__20);
  __Pyx_GIVEREF(__pyx_tuple__20);

  /* "variant_tools/io_vcf_read.pyx":1794
 *                 parser = VCFInfoUInt8Parser(key, number=n, chunk_length=chunk_length,
 *                                             fill=fill)
 *             elif t == np.dtype('uint16'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU16.max)
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__21 = PyTuple_Pack(1, __pyx_n_s_uint16); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 1794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);

  /* "variant_tools/io_vcf_read.pyx":1798
 *                 parser = VCFInfoUInt16Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('uint32'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU32.max)
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__22 = PyTuple_Pack(1, __pyx_n_s_uint32); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 1798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__22);
  __Pyx_GIVEREF(__pyx_tuple__22);

  /* "variant_tools/io_vcf_read.pyx":1802
 *                 parser = VCFInfoUInt32Parser(key, number=n, chunk_length=chunk_length,
 *                                              fill=fill)
 *             elif t == np.dtype('uint64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, IU64.max)
 *                 parser = VCFInfoUInt64Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__23 = PyTuple_Pack(1, __pyx_n_s_uint64); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 1802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);

  /* "variant_tools/io_vcf_read.pyx":1810
 *                 parser = VCFInfoFloat32Parser(key, number=n, chunk_length=chunk_length,
 *                                               fill=fill)
 *             elif t == np.dtype('float64'):             # <<<<<<<<<<<<<<
 *                 fill = fills.get(key, NAN)
 *                 parser = VCFInfoFloat64Parser(key, number=n, chunk_length=chunk_length,
 */
  __pyx_tuple__24 = PyTuple_Pack(1, __pyx_n_s_float64); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 1810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__24);
  __Pyx_GIVEREF(__pyx_tuple__24);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__26);
  __Pyx_GIVEREF(__pyx_tuple__26);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "variant_tools/io_vcf_read.pyx":4234
 *         chunk_length = ann.shape[0]
 *         if ann.ndim == 1:
 *             ann = ann[:, np.newaxis]             # <<<<<<<<<<<<<<
 *         number = ann.shape[1]
 *         shape = chunk_length, number
 */
  __pyx_slice__31 = PySlice_New(Py_None, Py_None, Py_None); if (unlikely(!__pyx_slice__31)) __PYX_ERR(0, 4234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_slice__31);
  __Pyx_GIVEREF(__pyx_slice__31);

  /* "variant_tools/io_vcf_read.pyx":4300
 *                 if hgvs_c is not None and n_vals > ANNFidx.HGVS_C:
 *                     # strip of leading 'n.' as redundant information
 *                     hgvs_c[i, j] = vals[ANNFidx.HGVS_C][2:]             # <<<<<<<<<<<<<<
 *                 if hgvs_p is not None and n_vals > ANNFidx.HGVS_P:
 *                     # strip of leading 'p.' as redundant information
 */
  __pyx_slice__33 = PySlice_New(__pyx_int_2, Py_None, Py_None); if (unlikely(!__pyx_slice__33)) __PYX_ERR(0, 4300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_slice__33);
  __Pyx_GIVEREF(__pyx_slice__33);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")             # <<<<<<<<<<<<<<
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 */
  __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(2, 272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__34);
  __Pyx_GIVEREF(__pyx_tuple__34);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")             # <<<<<<<<<<<<<<
 * 
 *             info.buf = PyArray_DATA(self)
 */
  __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(2, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__35);
  __Pyx_GIVEREF(__pyx_tuple__35);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":306
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"
 */
  __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(2, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__36);
  __Pyx_GIVEREF(__pyx_tuple__36);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")             # <<<<<<<<<<<<<<
 * 
 *         if ((child.byteorder == c'>' and little_endian) or
 */
  __pyx_tuple__37 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(2, 856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__37);
  __Pyx_GIVEREF(__pyx_tuple__37);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":880
 *             t = child.type_num
 *             if end - f < 5:
 *                 raise RuntimeError(u"Format string allocated too short.")             # <<<<<<<<<<<<<<
 * 
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 */
  __pyx_tuple__38 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(2, 880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__38);
  __Pyx_GIVEREF(__pyx_tuple__38);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1038
 *         _import_array()
 *     except Exception:
 *         raise ImportError("numpy.core.multiarray failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_umath() except -1:
 */
  __pyx_tuple__39 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(2, 1038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);

  /* "../anaconda3/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1044
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_ufunc() except -1:
 */
  __pyx_tuple__40 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(2, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__40);
  __Pyx_GIVEREF(__pyx_tuple__40);

  /* "View.MemoryView":133
 * 
 *         if not self.ndim:
 *             raise ValueError("Empty shape tuple for cython.array")             # <<<<<<<<<<<<<<
 * 
 *         if itemsize <= 0:
 */
  __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_s_Empty_shape_tuple_for_cython_arr); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(1, 133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__41);
  __Pyx_GIVEREF(__pyx_tuple__41);

  /* "View.MemoryView":136
 * 
 *         if itemsize <= 0:
 *             raise ValueError("itemsize <= 0 for cython.array")             # <<<<<<<<<<<<<<
 * 
 *         if not isinstance(format, bytes):
 */
  __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_s_itemsize_0_for_cython_array); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(1, 136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__42);
  __Pyx_GIVEREF(__pyx_tuple__42);

  /* "View.MemoryView":148
 * 
 *         if not self._shape:
 *             raise MemoryError("unable to allocate shape and strides.")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_shape_and_str); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(1, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);

  /* "View.MemoryView":176
 *             self.data = <char *>malloc(self.len)
 *             if not self.data:
 *                 raise MemoryError("unable to allocate array data.")             # <<<<<<<<<<<<<<
 * 
 *             if self.dtype_is_object:
 */
  __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_array_data); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(1, 176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__44);
  __Pyx_GIVEREF(__pyx_tuple__44);

  /* "View.MemoryView":192
 *             bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS
 *         if not (flags & bufmode):
 *             raise ValueError("Can only create a buffer that is contiguous in memory.")             # <<<<<<<<<<<<<<
 *         info.buf = self.data
 *         info.len = self.len
 */
  __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_s_Can_only_create_a_buffer_that_is); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(1, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__45);
  __Pyx_GIVEREF(__pyx_tuple__45);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__46);
  __Pyx_GIVEREF(__pyx_tuple__46);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__47);
  __Pyx_GIVEREF(__pyx_tuple__47);

  /* "View.MemoryView":414
 *     def __setitem__(memoryview self, object index, object value):
 *         if self.view.readonly:
 *             raise TypeError("Cannot assign to read-only memoryview")             # <<<<<<<<<<<<<<
 * 
 *         have_slices, index = _unellipsify(index, self.view.ndim)
 */
  __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_Cannot_assign_to_read_only_memor); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(1, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__48);
  __Pyx_GIVEREF(__pyx_tuple__48);

  /* "View.MemoryView":491
 *             result = struct.unpack(self.view.format, bytesitem)
 *         except struct.error:
 *             raise ValueError("Unable to convert item to object")             # <<<<<<<<<<<<<<
 *         else:
 *             if len(self.view.format) == 1:
 */
  __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_convert_item_to_object); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(1, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);

  /* "View.MemoryView":516
 *     def __getbuffer__(self, Py_buffer *info, int flags):
 *         if flags & PyBUF_WRITABLE and self.view.readonly:
 *             raise ValueError("Cannot create writable memory view from read-only memoryview")             # <<<<<<<<<<<<<<
 * 
 *         if flags & PyBUF_ND:
 */
  __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_Cannot_create_writable_memory_vi); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(1, 516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__50);
  __Pyx_GIVEREF(__pyx_tuple__50);

  /* "View.MemoryView":566
 *         if self.view.strides == NULL:
 * 
 *             raise ValueError("Buffer view does not expose strides")             # <<<<<<<<<<<<<<
 * 
 *         return tuple([stride for stride in self.view.strides[:self.view.ndim]])
 */
  __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_Buffer_view_does_not_expose_stri); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(1, 566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__51);
  __Pyx_GIVEREF(__pyx_tuple__51);

  /* "View.MemoryView":573
 *     def suboffsets(self):
 *         if self.view.suboffsets == NULL:
 *             return (-1,) * self.view.ndim             # <<<<<<<<<<<<<<
 * 
 *         return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]])
 */
  __pyx_tuple__52 = PyTuple_New(1); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(1, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__52);
  __Pyx_INCREF(__pyx_int_neg_1);
  __Pyx_GIVEREF(__pyx_int_neg_1);
  PyTuple_SET_ITEM(__pyx_tuple__52, 0, __pyx_int_neg_1);
  __Pyx_GIVEREF(__pyx_tuple__52);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__53);
  __Pyx_GIVEREF(__pyx_tuple__53);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);

  /* "View.MemoryView":699
 *     for suboffset in suboffsets[:ndim]:
 *         if suboffset >= 0:
 *             raise ValueError("Indirect dimensions not supported")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__55 = PyTuple_Pack(1, __pyx_kp_s_Indirect_dimensions_not_supporte); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(1, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__55);
  __Pyx_GIVEREF(__pyx_tuple__55);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__56);
  __Pyx_GIVEREF(__pyx_tuple__56);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__57 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__57);
  __Pyx_GIVEREF(__pyx_tuple__57);

  /* "variant_tools/io_vcf_read.pyx":427
 * 
 * 
 * def check_samples(loc_samples, headers):             # <<<<<<<<<<<<<<
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:
 */
  __pyx_tuple__58 = PyTuple_Pack(3, __pyx_n_s_loc_samples, __pyx_n_s_headers, __pyx_n_s_n_samples); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_variant_tools_io_vcf_read_py, __pyx_n_s_check_samples, 427, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 427, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":919
 * 
 * 
 * def check_string_dtype(dtype):             # <<<<<<<<<<<<<<
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:
 */
  __pyx_tuple__60 = PyTuple_Pack(1, __pyx_n_s_dtype); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__60);
  __Pyx_GIVEREF(__pyx_tuple__60);
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_variant_tools_io_vcf_read_py, __pyx_n_s_check_string_dtype, 919, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 919, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4093
 * 
 * 
 * def _normalize_ann_field_prefix(f):             # <<<<<<<<<<<<<<
 *     # normalize prefix
 *     if f.startswith('variants/ANN_'):
 */
  __pyx_tuple__62 = PyTuple_Pack(1, __pyx_n_s_f); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 4093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__62);
  __Pyx_GIVEREF(__pyx_tuple__62);
  __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_variant_tools_io_vcf_read_py, __pyx_n_s_normalize_ann_field_prefix, 4093, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 4093, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4104
 * 
 * 
 * def _normalize_ann_fields(fields):             # <<<<<<<<<<<<<<
 *     normed_fields = list()
 * 
 */
  __pyx_tuple__64 = PyTuple_Pack(4, __pyx_n_s_fields, __pyx_n_s_normed_fields, __pyx_n_s_f, __pyx_n_s_ff); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 4104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__64);
  __Pyx_GIVEREF(__pyx_tuple__64);
  __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_variant_tools_io_vcf_read_py, __pyx_n_s_normalize_ann_fields, 4104, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 4104, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4157
 * 
 * 
 * def _normalize_ann_types(fields, types):             # <<<<<<<<<<<<<<
 * 
 *     if types is None:
 */
  __pyx_tuple__66 = PyTuple_Pack(6, __pyx_n_s_fields, __pyx_n_s_types, __pyx_n_s_normed_types, __pyx_n_s_f, __pyx_n_s_f, __pyx_n_s_t); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 4157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__66);
  __Pyx_GIVEREF(__pyx_tuple__66);
  __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_variant_tools_io_vcf_read_py, __pyx_n_s_normalize_ann_types, 4157, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 4157, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __pyx_unpickle_InputStreamBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_tuple__68 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__68);
  __Pyx_GIVEREF(__pyx_tuple__68);
  __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__68, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_InputStreamBase, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__70 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__70);
  __Pyx_GIVEREF(__pyx_tuple__70);
  __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_FileInputStream, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__72 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__72);
  __Pyx_GIVEREF(__pyx_tuple__72);
  __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFChunkIterator, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__74 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__74);
  __Pyx_GIVEREF(__pyx_tuple__74);
  __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__74, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__76 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__76);
  __Pyx_GIVEREF(__pyx_tuple__76);
  __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__76, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFFieldParserBas, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__78 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__78);
  __Pyx_GIVEREF(__pyx_tuple__78);
  __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFSkipFieldParse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__80 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__80);
  __Pyx_GIVEREF(__pyx_tuple__80);
  __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFChromPosParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__82 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__82);
  __Pyx_GIVEREF(__pyx_tuple__82);
  __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFIDStringParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__84 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__84);
  __Pyx_GIVEREF(__pyx_tuple__84);
  __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFIDObjectParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__86 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__86);
  __Pyx_GIVEREF(__pyx_tuple__86);
  __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFRefStringParse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__88 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__88);
  __Pyx_GIVEREF(__pyx_tuple__88);
  __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__88, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFRefObjectParse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__90 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__90);
  __Pyx_GIVEREF(__pyx_tuple__90);
  __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFAltStringParse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__92 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__92);
  __Pyx_GIVEREF(__pyx_tuple__92);
  __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__92, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFAltObjectParse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__94 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__94);
  __Pyx_GIVEREF(__pyx_tuple__94);
  __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__94, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFQualParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__96 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__96);
  __Pyx_GIVEREF(__pyx_tuple__96);
  __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoParserBase, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__98 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__98);
  __Pyx_GIVEREF(__pyx_tuple__98);
  __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoInt8Parser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__100 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__100);
  __Pyx_GIVEREF(__pyx_tuple__100);
  __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoInt16Parse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__102 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__102);
  __Pyx_GIVEREF(__pyx_tuple__102);
  __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__102, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoInt32Parse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__104 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__104);
  __Pyx_GIVEREF(__pyx_tuple__104);
  __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__104, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoInt64Parse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__106 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__106);
  __Pyx_GIVEREF(__pyx_tuple__106);
  __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__106, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoUInt8Parse, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__108 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__108);
  __Pyx_GIVEREF(__pyx_tuple__108);
  __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__108, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoUInt16Pars, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__110 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__110);
  __Pyx_GIVEREF(__pyx_tuple__110);
  __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__110, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoUInt32Pars, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__112 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__112);
  __Pyx_GIVEREF(__pyx_tuple__112);
  __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__112, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoUInt64Pars, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__114 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__114);
  __Pyx_GIVEREF(__pyx_tuple__114);
  __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoFloat32Par, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__116 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__116);
  __Pyx_GIVEREF(__pyx_tuple__116);
  __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoFloat64Par, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__118 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__118);
  __Pyx_GIVEREF(__pyx_tuple__118);
  __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__118, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoFlagParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__120 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__120);
  __Pyx_GIVEREF(__pyx_tuple__120);
  __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoStringPars, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__122 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__122);
  __Pyx_GIVEREF(__pyx_tuple__122);
  __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__122, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoObjectPars, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__123)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__124 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__124);
  __Pyx_GIVEREF(__pyx_tuple__124);
  __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFInfoSkipParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__126 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__126);
  __Pyx_GIVEREF(__pyx_tuple__126);
  __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__126, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFSkipAllCallDat, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__127)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__128 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__128);
  __Pyx_GIVEREF(__pyx_tuple__128);
  __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataParser, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__130 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__130);
  __Pyx_GIVEREF(__pyx_tuple__130);
  __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__130, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataSkipPa, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__132 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__132);
  __Pyx_GIVEREF(__pyx_tuple__132);
  __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__132, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeInt8Pa, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__134 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__134);
  __Pyx_GIVEREF(__pyx_tuple__134);
  __pyx_codeobj__135 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__134, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeInt16P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__135)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__136 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__136);
  __Pyx_GIVEREF(__pyx_tuple__136);
  __pyx_codeobj__137 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__136, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeInt32P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__137)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__138 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__138);
  __Pyx_GIVEREF(__pyx_tuple__138);
  __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__138, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeInt64P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__140 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__140);
  __Pyx_GIVEREF(__pyx_tuple__140);
  __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__140, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt8P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__142 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__142);
  __Pyx_GIVEREF(__pyx_tuple__142);
  __pyx_codeobj__143 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt16, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__143)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__144 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__144);
  __Pyx_GIVEREF(__pyx_tuple__144);
  __pyx_codeobj__145 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__144, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt32, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__145)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__146 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__146);
  __Pyx_GIVEREF(__pyx_tuple__146);
  __pyx_codeobj__147 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__146, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt64, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__147)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__148 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__148);
  __Pyx_GIVEREF(__pyx_tuple__148);
  __pyx_codeobj__149 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__148, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt8, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__149)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__150 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__150);
  __Pyx_GIVEREF(__pyx_tuple__150);
  __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__150, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt1, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__152 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__152);
  __Pyx_GIVEREF(__pyx_tuple__152);
  __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__152, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt3, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__154 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__154);
  __Pyx_GIVEREF(__pyx_tuple__154);
  __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__154, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt6, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__156 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__156);
  __Pyx_GIVEREF(__pyx_tuple__156);
  __pyx_codeobj__157 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__156, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__157)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__158 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__158);
  __Pyx_GIVEREF(__pyx_tuple__158);
  __pyx_codeobj__159 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__158, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_2, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__159)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__160 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__160);
  __Pyx_GIVEREF(__pyx_tuple__160);
  __pyx_codeobj__161 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__160, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_3, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__161)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__162 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__162);
  __Pyx_GIVEREF(__pyx_tuple__162);
  __pyx_codeobj__163 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__162, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_4, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__163)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__164 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__164);
  __Pyx_GIVEREF(__pyx_tuple__164);
  __pyx_codeobj__165 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__164, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataInt8Pa, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__165)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__166 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__166);
  __Pyx_GIVEREF(__pyx_tuple__166);
  __pyx_codeobj__167 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__166, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataInt16P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__167)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__168 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__168)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__168);
  __Pyx_GIVEREF(__pyx_tuple__168);
  __pyx_codeobj__169 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__168, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataInt32P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__169)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__170 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__170);
  __Pyx_GIVEREF(__pyx_tuple__170);
  __pyx_codeobj__171 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__170, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataInt64P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__171)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__172 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__172);
  __Pyx_GIVEREF(__pyx_tuple__172);
  __pyx_codeobj__173 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__172, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataUInt8P, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__173)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__174 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__174);
  __Pyx_GIVEREF(__pyx_tuple__174);
  __pyx_codeobj__175 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__174, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataUInt16, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__175)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__176 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__176);
  __Pyx_GIVEREF(__pyx_tuple__176);
  __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__176, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataUInt32, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__178 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__178);
  __Pyx_GIVEREF(__pyx_tuple__178);
  __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__178, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataUInt64, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__180 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__180);
  __Pyx_GIVEREF(__pyx_tuple__180);
  __pyx_codeobj__181 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__180, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataFloat3, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__181)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__182 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__182);
  __Pyx_GIVEREF(__pyx_tuple__182);
  __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__182, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataFloat6, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__184 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__184)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__184);
  __Pyx_GIVEREF(__pyx_tuple__184);
  __pyx_codeobj__185 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__184, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataString, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__185)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__186 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__186)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__186);
  __Pyx_GIVEREF(__pyx_tuple__186);
  __pyx_codeobj__187 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__186, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_VCFCallDataObject, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__187)) __PYX_ERR(1, 1, __pyx_L1_error)
  __pyx_tuple__188 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__188)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__188);
  __Pyx_GIVEREF(__pyx_tuple__188);
  __pyx_codeobj__189 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__188, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_ANNTransformer, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__189)) __PYX_ERR(1, 1, __pyx_L1_error)

  /* "View.MemoryView":286
 *         return self.name
 * 
 * cdef generic = Enum("<strided and direct or indirect>")             # <<<<<<<<<<<<<<
 * cdef strided = Enum("<strided and direct>") # default
 * cdef indirect = Enum("<strided and indirect>")
 */
  __pyx_tuple__190 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect); if (unlikely(!__pyx_tuple__190)) __PYX_ERR(1, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__190);
  __Pyx_GIVEREF(__pyx_tuple__190);

  /* "View.MemoryView":287
 * 
 * cdef generic = Enum("<strided and direct or indirect>")
 * cdef strided = Enum("<strided and direct>") # default             # <<<<<<<<<<<<<<
 * cdef indirect = Enum("<strided and indirect>")
 * 
 */
  __pyx_tuple__191 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(1, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__191);
  __Pyx_GIVEREF(__pyx_tuple__191);

  /* "View.MemoryView":288
 * cdef generic = Enum("<strided and direct or indirect>")
 * cdef strided = Enum("<strided and direct>") # default
 * cdef indirect = Enum("<strided and indirect>")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__192 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect); if (unlikely(!__pyx_tuple__192)) __PYX_ERR(1, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__192);
  __Pyx_GIVEREF(__pyx_tuple__192);

  /* "View.MemoryView":291
 * 
 * 
 * cdef contiguous = Enum("<contiguous and direct>")             # <<<<<<<<<<<<<<
 * cdef indirect_contiguous = Enum("<contiguous and indirect>")
 * 
 */
  __pyx_tuple__193 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(1, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__193);
  __Pyx_GIVEREF(__pyx_tuple__193);

  /* "View.MemoryView":292
 * 
 * cdef contiguous = Enum("<contiguous and direct>")
 * cdef indirect_contiguous = Enum("<contiguous and indirect>")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__194 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect); if (unlikely(!__pyx_tuple__194)) __PYX_ERR(1, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__194);
  __Pyx_GIVEREF(__pyx_tuple__194);

  /* "(tree fragment)":1
 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_tuple__195 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__195);
  __Pyx_GIVEREF(__pyx_tuple__195);
  __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  __pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_keys.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_setdefault.type = (PyObject*)&PyDict_Type;
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_16384 = PyInt_FromLong(16384L); if (unlikely(!__pyx_int_16384)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_3357624 = PyInt_FromLong(3357624L); if (unlikely(!__pyx_int_3357624)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4027389 = PyInt_FromLong(4027389L); if (unlikely(!__pyx_int_4027389)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_27830275 = PyInt_FromLong(27830275L); if (unlikely(!__pyx_int_27830275)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_63491048 = PyInt_FromLong(63491048L); if (unlikely(!__pyx_int_63491048)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_72589021 = PyInt_FromLong(72589021L); if (unlikely(!__pyx_int_72589021)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_78160015 = PyInt_FromLong(78160015L); if (unlikely(!__pyx_int_78160015)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_115204050 = PyInt_FromLong(115204050L); if (unlikely(!__pyx_int_115204050)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_118541506 = PyInt_FromLong(118541506L); if (unlikely(!__pyx_int_118541506)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_126768758 = PyInt_FromLong(126768758L); if (unlikely(!__pyx_int_126768758)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_132754896 = PyInt_FromLong(132754896L); if (unlikely(!__pyx_int_132754896)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_147095864 = PyInt_FromLong(147095864L); if (unlikely(!__pyx_int_147095864)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_184977713 = PyInt_FromLong(184977713L); if (unlikely(!__pyx_int_184977713)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_191757588 = PyInt_FromLong(191757588L); if (unlikely(!__pyx_int_191757588)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_237691741 = PyInt_FromLong(237691741L); if (unlikely(!__pyx_int_237691741)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_260145588 = PyInt_FromLong(260145588L); if (unlikely(!__pyx_int_260145588)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  generic = Py_None; Py_INCREF(Py_None);
  strided = Py_None; Py_INCREF(Py_None);
  indirect = Py_None; Py_INCREF(Py_None);
  contiguous = Py_None; Py_INCREF(Py_None);
  indirect_contiguous = Py_None; Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_13variant_tools_11io_vcf_read_InputStreamBase = &__pyx_vtable_13variant_tools_11io_vcf_read_InputStreamBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_InputStreamBase.advance = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *))__pyx_f_13variant_tools_11io_vcf_read_15InputStreamBase_advance;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_InputStreamBase) < 0) __PYX_ERR(0, 204, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_InputStreamBase.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_InputStreamBase.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_InputStreamBase.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_InputStreamBase.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_InputStreamBase.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_InputStreamBase) < 0) __PYX_ERR(0, 204, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_InputStreamBase, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_InputStreamBase) < 0) __PYX_ERR(0, 204, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_InputStreamBase) < 0) __PYX_ERR(0, 204, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase = &__pyx_type_13variant_tools_11io_vcf_read_InputStreamBase;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_FileInputStream = &__pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream;
  __pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_InputStreamBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream.__pyx_base.advance = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *))__pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_advance;
  __pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream._bufferup = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *))__pyx_f_13variant_tools_11io_vcf_read_15FileInputStream__bufferup;
  __pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream.read_line_into = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *))__pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_read_line_into;
  __pyx_vtable_13variant_tools_11io_vcf_read_FileInputStream.read_lines_into = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_FileInputStream *, struct __pyx_t_13variant_tools_11io_vcf_read_CharVector *, Py_ssize_t))__pyx_f_13variant_tools_11io_vcf_read_15FileInputStream_read_lines_into;
  __pyx_type_13variant_tools_11io_vcf_read_FileInputStream.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_FileInputStream) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_FileInputStream.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_FileInputStream.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_FileInputStream.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_FileInputStream.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_FileInputStream.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_FileInputStream) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FileInputStream, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_FileInputStream) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_FileInputStream) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_FileInputStream = &__pyx_type_13variant_tools_11io_vcf_read_FileInputStream;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_CharVectorInputStream = &__pyx_vtable_13variant_tools_11io_vcf_read_CharVectorInputStream;
  __pyx_vtable_13variant_tools_11io_vcf_read_CharVectorInputStream.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_InputStreamBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_CharVectorInputStream.__pyx_base.advance = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *))__pyx_f_13variant_tools_11io_vcf_read_21CharVectorInputStream_advance;
  __pyx_vtable_13variant_tools_11io_vcf_read_CharVectorInputStream.clear = (void (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_CharVectorInputStream *))__pyx_f_13variant_tools_11io_vcf_read_21CharVectorInputStream_clear;
  __pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_InputStreamBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream) < 0) __PYX_ERR(0, 318, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_CharVectorInputStream) < 0) __PYX_ERR(0, 318, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CharVectorInputStream, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream) < 0) __PYX_ERR(0, 318, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream) < 0) __PYX_ERR(0, 318, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_CharVectorInputStream = &__pyx_type_13variant_tools_11io_vcf_read_CharVectorInputStream;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFContext) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFContext.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFContext.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFContext.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFContext.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFContext, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFContext) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFContext) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFContext = &__pyx_type_13variant_tools_11io_vcf_read_VCFContext;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator) < 0) __PYX_ERR(0, 438, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFChunkIterator, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator) < 0) __PYX_ERR(0, 438, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator) < 0) __PYX_ERR(0, 438, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFChunkIterator = &__pyx_type_13variant_tools_11io_vcf_read_VCFChunkIterator;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFParser.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_9VCFParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFParser.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *))__pyx_f_13variant_tools_11io_vcf_read_9VCFParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFParser.make_chunk = (PyObject *(*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFParser *, PyObject *))__pyx_f_13variant_tools_11io_vcf_read_9VCFParser_make_chunk;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFParser) < 0) __PYX_ERR(0, 499, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFParser) < 0) __PYX_ERR(0, 499, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFParser) < 0) __PYX_ERR(0, 499, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFParser) < 0) __PYX_ERR(0, 499, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFieldParserBase.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFieldParserBase.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFieldParserBase.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase) < 0) __PYX_ERR(0, 845, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase) < 0) __PYX_ERR(0, 845, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFFieldParserBase, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase) < 0) __PYX_ERR(0, 845, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase) < 0) __PYX_ERR(0, 845, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase = &__pyx_type_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipFieldParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipFieldParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipFieldParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipFieldParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipFieldParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipFieldParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_18VCFSkipFieldParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser) < 0) __PYX_ERR(0, 886, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipFieldParser) < 0) __PYX_ERR(0, 886, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFSkipFieldParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser) < 0) __PYX_ERR(0, 886, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser) < 0) __PYX_ERR(0, 886, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipFieldParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFSkipFieldParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFChromPosParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFChromPosParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFChromPosParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFChromPosParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFChromPosParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFChromPosParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_17VCFChromPosParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFChromPosParser) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFChromPosParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFChromPosParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFChromPosParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDStringParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFIDStringParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDStringParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDStringParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFIDStringParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDStringParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFIDStringParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser) < 0) __PYX_ERR(0, 1130, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDStringParser) < 0) __PYX_ERR(0, 1130, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFIDStringParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser) < 0) __PYX_ERR(0, 1130, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser) < 0) __PYX_ERR(0, 1130, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFIDStringParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFIDStringParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDObjectParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFIDObjectParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDObjectParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDObjectParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFIDObjectParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFIDObjectParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFIDObjectParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser) < 0) __PYX_ERR(0, 1177, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFIDObjectParser) < 0) __PYX_ERR(0, 1177, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFIDObjectParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser) < 0) __PYX_ERR(0, 1177, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser) < 0) __PYX_ERR(0, 1177, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFIDObjectParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFIDObjectParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefStringParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFRefStringParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefStringParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefStringParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefStringParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefStringParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_18VCFRefStringParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefStringParser) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFRefStringParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFRefStringParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFRefStringParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefObjectParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFRefObjectParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefObjectParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefObjectParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefObjectParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFRefObjectParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_18VCFRefObjectParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFRefObjectParser) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFRefObjectParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFRefObjectParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFRefObjectParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltStringParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFAltStringParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltStringParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltStringParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltStringParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltStringParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_18VCFAltStringParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser) < 0) __PYX_ERR(0, 1292, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltStringParser) < 0) __PYX_ERR(0, 1292, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFAltStringParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser) < 0) __PYX_ERR(0, 1292, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser) < 0) __PYX_ERR(0, 1292, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFAltStringParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFAltStringParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltObjectParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFAltObjectParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltObjectParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltObjectParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltObjectParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFAltObjectParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_18VCFAltObjectParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser) < 0) __PYX_ERR(0, 1448, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFAltObjectParser) < 0) __PYX_ERR(0, 1448, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFAltObjectParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser) < 0) __PYX_ERR(0, 1448, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser) < 0) __PYX_ERR(0, 1448, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFAltObjectParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFAltObjectParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFQualParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFQualParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFQualParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFQualParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_13VCFQualParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFQualParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_13VCFQualParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFQualParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFQualParser) < 0) __PYX_ERR(0, 1603, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFQualParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFQualParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFQualParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFQualParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFQualParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFQualParser) < 0) __PYX_ERR(0, 1603, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFQualParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFQualParser) < 0) __PYX_ERR(0, 1603, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFQualParser) < 0) __PYX_ERR(0, 1603, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFQualParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFQualParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFilterParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFilterParser.parse_filter = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFilterParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_15VCFFilterParser_parse_filter;
  __pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser) < 0) __PYX_ERR(0, 1635, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFilterParser) < 0) __PYX_ERR(0, 1635, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFFilterParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser) < 0) __PYX_ERR(0, 1635, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser) < 0) __PYX_ERR(0, 1635, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFFilterParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFFilterParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParser.parse_info = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_13VCFInfoParser_parse_info;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser) < 0) __PYX_ERR(0, 1741, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParser) < 0) __PYX_ERR(0, 1741, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser) < 0) __PYX_ERR(0, 1741, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser) < 0) __PYX_ERR(0, 1741, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParserBase.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParserBase.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoParserBase.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoParserBase_malloc_chunk;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase) < 0) __PYX_ERR(0, 1941, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase) < 0) __PYX_ERR(0, 1941, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoParserBase, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase) < 0) __PYX_ERR(0, 1941, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase) < 0) __PYX_ERR(0, 1941, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoInt8Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser) < 0) __PYX_ERR(0, 1982, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt8Parser) < 0) __PYX_ERR(0, 1982, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser) < 0) __PYX_ERR(0, 1982, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser) < 0) __PYX_ERR(0, 1982, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt16Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser) < 0) __PYX_ERR(0, 2001, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt16Parser) < 0) __PYX_ERR(0, 2001, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser) < 0) __PYX_ERR(0, 2001, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser) < 0) __PYX_ERR(0, 2001, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt32Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser) < 0) __PYX_ERR(0, 2020, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt32Parser) < 0) __PYX_ERR(0, 2020, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser) < 0) __PYX_ERR(0, 2020, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser) < 0) __PYX_ERR(0, 2020, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoInt64Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser) < 0) __PYX_ERR(0, 2039, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoInt64Parser) < 0) __PYX_ERR(0, 2039, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser) < 0) __PYX_ERR(0, 2039, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser) < 0) __PYX_ERR(0, 2039, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_18VCFInfoUInt8Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser) < 0) __PYX_ERR(0, 2058, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser) < 0) __PYX_ERR(0, 2058, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoUInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser) < 0) __PYX_ERR(0, 2058, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser) < 0) __PYX_ERR(0, 2058, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt16Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser) < 0) __PYX_ERR(0, 2077, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser) < 0) __PYX_ERR(0, 2077, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoUInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser) < 0) __PYX_ERR(0, 2077, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser) < 0) __PYX_ERR(0, 2077, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt32Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser) < 0) __PYX_ERR(0, 2096, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser) < 0) __PYX_ERR(0, 2096, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoUInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser) < 0) __PYX_ERR(0, 2096, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser) < 0) __PYX_ERR(0, 2096, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoUInt64Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser) < 0) __PYX_ERR(0, 2115, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser) < 0) __PYX_ERR(0, 2115, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoUInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser) < 0) __PYX_ERR(0, 2115, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser) < 0) __PYX_ERR(0, 2115, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoUInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat32Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser) < 0) __PYX_ERR(0, 2134, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser) < 0) __PYX_ERR(0, 2134, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoFloat32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser) < 0) __PYX_ERR(0, 2134, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser) < 0) __PYX_ERR(0, 2134, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_20VCFInfoFloat64Parser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser) < 0) __PYX_ERR(0, 2153, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser) < 0) __PYX_ERR(0, 2153, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoFloat64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser) < 0) __PYX_ERR(0, 2153, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser) < 0) __PYX_ERR(0, 2153, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFloat64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFlagParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFlagParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFlagParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFlagParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFlagParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoFlagParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoFlagParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser) < 0) __PYX_ERR(0, 2172, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoFlagParser) < 0) __PYX_ERR(0, 2172, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoFlagParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser) < 0) __PYX_ERR(0, 2172, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser) < 0) __PYX_ERR(0, 2172, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoFlagParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoFlagParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoStringParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoStringParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoStringParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoStringParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoStringParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoStringParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoStringParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser) < 0) __PYX_ERR(0, 2205, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoStringParser) < 0) __PYX_ERR(0, 2205, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoStringParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser) < 0) __PYX_ERR(0, 2205, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser) < 0) __PYX_ERR(0, 2205, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoStringParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoStringParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoObjectParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoObjectParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoObjectParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoObjectParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoObjectParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_19VCFInfoObjectParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser) < 0) __PYX_ERR(0, 2259, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoObjectParser) < 0) __PYX_ERR(0, 2259, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoObjectParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser) < 0) __PYX_ERR(0, 2259, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser) < 0) __PYX_ERR(0, 2259, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoObjectParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoObjectParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoSkipParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoSkipParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoSkipParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoSkipParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoSkipParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_17VCFInfoParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFInfoSkipParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFInfoParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFInfoSkipParser_malloc_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser) < 0) __PYX_ERR(0, 2305, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFInfoSkipParser) < 0) __PYX_ERR(0, 2305, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFInfoSkipParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser) < 0) __PYX_ERR(0, 2305, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser) < 0) __PYX_ERR(0, 2305, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFInfoSkipParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFInfoSkipParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFormatParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFFormatParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFormatParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFormatParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_15VCFFormatParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFFormatParser.store_format = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFormatParser *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_15VCFFormatParser_store_format;
  __pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser) < 0) __PYX_ERR(0, 2428, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFormatParser) < 0) __PYX_ERR(0, 2428, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFFormatParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser) < 0) __PYX_ERR(0, 2428, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser) < 0) __PYX_ERR(0, 2428, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFFormatParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFFormatParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_24VCFSkipAllCallDataParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser) < 0) __PYX_ERR(0, 2513, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser) < 0) __PYX_ERR(0, 2513, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFSkipAllCallDataParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser) < 0) __PYX_ERR(0, 2513, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser) < 0) __PYX_ERR(0, 2513, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFSkipAllCallDataParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_parse;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *))__pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFFieldParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_18VCFFieldParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_17VCFCallDataParser_make_chunk;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFFieldParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser) < 0) __PYX_ERR(0, 2523, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParser) < 0) __PYX_ERR(0, 2523, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser) < 0) __PYX_ERR(0, 2523, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser) < 0) __PYX_ERR(0, 2523, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParserBase.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParserBase.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataParserBase.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_parse;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase) < 0) __PYX_ERR(0, 2740, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase) < 0) __PYX_ERR(0, 2740, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataParserBase, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase) < 0) __PYX_ERR(0, 2740, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase) < 0) __PYX_ERR(0, 2740, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataSkipParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataSkipParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataSkipParser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser) < 0) __PYX_ERR(0, 2786, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataSkipParser) < 0) __PYX_ERR(0, 2786, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataSkipParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser) < 0) __PYX_ERR(0, 2786, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser) < 0) __PYX_ERR(0, 2786, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataSkipParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataSkipParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_21VCFGenotypeInt8Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser) < 0) __PYX_ERR(0, 2803, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser) < 0) __PYX_ERR(0, 2803, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser) < 0) __PYX_ERR(0, 2803, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser) < 0) __PYX_ERR(0, 2803, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt16Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser) < 0) __PYX_ERR(0, 2823, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser) < 0) __PYX_ERR(0, 2823, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser) < 0) __PYX_ERR(0, 2823, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser) < 0) __PYX_ERR(0, 2823, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser) < 0) __PYX_ERR(0, 2843, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser) < 0) __PYX_ERR(0, 2843, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser) < 0) __PYX_ERR(0, 2843, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser) < 0) __PYX_ERR(0, 2843, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeInt64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser) < 0) __PYX_ERR(0, 2863, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser) < 0) __PYX_ERR(0, 2863, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser) < 0) __PYX_ERR(0, 2863, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser) < 0) __PYX_ERR(0, 2863, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFGenotypeUInt8Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser) < 0) __PYX_ERR(0, 2883, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser) < 0) __PYX_ERR(0, 2883, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeUInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser) < 0) __PYX_ERR(0, 2883, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser) < 0) __PYX_ERR(0, 2883, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt16Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser) < 0) __PYX_ERR(0, 2903, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser) < 0) __PYX_ERR(0, 2903, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeUInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser) < 0) __PYX_ERR(0, 2903, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser) < 0) __PYX_ERR(0, 2903, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser) < 0) __PYX_ERR(0, 2923, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser) < 0) __PYX_ERR(0, 2923, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeUInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser) < 0) __PYX_ERR(0, 2923, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser) < 0) __PYX_ERR(0, 2923, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeUInt64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser) < 0) __PYX_ERR(0, 2943, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser) < 0) __PYX_ERR(0, 2943, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeUInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser) < 0) __PYX_ERR(0, 2943, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser) < 0) __PYX_ERR(0, 2943, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeUInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFGenotypeACInt8Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser) < 0) __PYX_ERR(0, 3099, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser) < 0) __PYX_ERR(0, 3099, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser) < 0) __PYX_ERR(0, 3099, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser) < 0) __PYX_ERR(0, 3099, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt16Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser) < 0) __PYX_ERR(0, 3119, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser) < 0) __PYX_ERR(0, 3119, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser) < 0) __PYX_ERR(0, 3119, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser) < 0) __PYX_ERR(0, 3119, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser) < 0) __PYX_ERR(0, 3139, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser) < 0) __PYX_ERR(0, 3139, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser) < 0) __PYX_ERR(0, 3139, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser) < 0) __PYX_ERR(0, 3139, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACInt64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFGenotypeACUInt8Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser) < 0) __PYX_ERR(0, 3179, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser) < 0) __PYX_ERR(0, 3179, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACUInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser) < 0) __PYX_ERR(0, 3179, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser) < 0) __PYX_ERR(0, 3179, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt16Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser) < 0) __PYX_ERR(0, 3199, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser) < 0) __PYX_ERR(0, 3199, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACUInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser) < 0) __PYX_ERR(0, 3199, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser) < 0) __PYX_ERR(0, 3199, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser) < 0) __PYX_ERR(0, 3219, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser) < 0) __PYX_ERR(0, 3219, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACUInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser) < 0) __PYX_ERR(0, 3219, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser) < 0) __PYX_ERR(0, 3219, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_25VCFGenotypeACUInt64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFGenotypeACUInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFGenotypeACUInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_21VCFCallDataInt8Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser) < 0) __PYX_ERR(0, 3299, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser) < 0) __PYX_ERR(0, 3299, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser) < 0) __PYX_ERR(0, 3299, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser) < 0) __PYX_ERR(0, 3299, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt16Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser) < 0) __PYX_ERR(0, 3318, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser) < 0) __PYX_ERR(0, 3318, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser) < 0) __PYX_ERR(0, 3318, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser) < 0) __PYX_ERR(0, 3318, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser) < 0) __PYX_ERR(0, 3337, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser) < 0) __PYX_ERR(0, 3337, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser) < 0) __PYX_ERR(0, 3337, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser) < 0) __PYX_ERR(0, 3337, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataInt64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_22VCFCallDataUInt8Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser) < 0) __PYX_ERR(0, 3375, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser) < 0) __PYX_ERR(0, 3375, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataUInt8Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser) < 0) __PYX_ERR(0, 3375, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser) < 0) __PYX_ERR(0, 3375, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt8Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt16Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser) < 0) __PYX_ERR(0, 3394, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser) < 0) __PYX_ERR(0, 3394, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataUInt16Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser) < 0) __PYX_ERR(0, 3394, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser) < 0) __PYX_ERR(0, 3394, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt16Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser) < 0) __PYX_ERR(0, 3413, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser) < 0) __PYX_ERR(0, 3413, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataUInt32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser) < 0) __PYX_ERR(0, 3413, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser) < 0) __PYX_ERR(0, 3413, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataUInt64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser) < 0) __PYX_ERR(0, 3432, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser) < 0) __PYX_ERR(0, 3432, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataUInt64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser) < 0) __PYX_ERR(0, 3432, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser) < 0) __PYX_ERR(0, 3432, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataUInt64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat32Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser) < 0) __PYX_ERR(0, 3451, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser) < 0) __PYX_ERR(0, 3451, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataFloat32Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser) < 0) __PYX_ERR(0, 3451, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser) < 0) __PYX_ERR(0, 3451, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat32Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_24VCFCallDataFloat64Parser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser) < 0) __PYX_ERR(0, 3470, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser) < 0) __PYX_ERR(0, 3470, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataFloat64Parser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser) < 0) __PYX_ERR(0, 3470, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser) < 0) __PYX_ERR(0, 3470, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataFloat64Parser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataStringParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataStringParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataStringParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataStringParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataStringParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataStringParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataStringParser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser) < 0) __PYX_ERR(0, 3587, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataStringParser) < 0) __PYX_ERR(0, 3587, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataStringParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser) < 0) __PYX_ERR(0, 3587, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser) < 0) __PYX_ERR(0, 3587, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataStringParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataStringParser;
  __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataObjectParser = &__pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataObjectParser;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.__pyx_base = *__pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.__pyx_base.malloc_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_malloc_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.__pyx_base.make_chunk = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, PyObject *, struct __pyx_opt_args_13variant_tools_11io_vcf_read_21VCFCallDataParserBase_make_chunk *__pyx_optional_args))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_make_chunk;
  __pyx_vtable_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.__pyx_base.parse = (int (*)(struct __pyx_obj_13variant_tools_11io_vcf_read_VCFCallDataParserBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_InputStreamBase *, struct __pyx_obj_13variant_tools_11io_vcf_read_VCFContext *))__pyx_f_13variant_tools_11io_vcf_read_23VCFCallDataObjectParser_parse;
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.tp_base = __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataParserBase;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser) < 0) __PYX_ERR(0, 3660, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser.tp_dict, __pyx_vtabptr_13variant_tools_11io_vcf_read_VCFCallDataObjectParser) < 0) __PYX_ERR(0, 3660, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VCFCallDataObjectParser, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser) < 0) __PYX_ERR(0, 3660, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser) < 0) __PYX_ERR(0, 3660, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_VCFCallDataObjectParser = &__pyx_type_13variant_tools_11io_vcf_read_VCFCallDataObjectParser;
  if (PyType_Ready(&__pyx_type_13variant_tools_11io_vcf_read_ANNTransformer) < 0) __PYX_ERR(0, 4174, __pyx_L1_error)
  __pyx_type_13variant_tools_11io_vcf_read_ANNTransformer.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_13variant_tools_11io_vcf_read_ANNTransformer.tp_dictoffset && __pyx_type_13variant_tools_11io_vcf_read_ANNTransformer.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_13variant_tools_11io_vcf_read_ANNTransformer.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ANNTransformer, (PyObject *)&__pyx_type_13variant_tools_11io_vcf_read_ANNTransformer) < 0) __PYX_ERR(0, 4174, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_13variant_tools_11io_vcf_read_ANNTransformer) < 0) __PYX_ERR(0, 4174, __pyx_L1_error)
  __pyx_ptype_13variant_tools_11io_vcf_read_ANNTransformer = &__pyx_type_13variant_tools_11io_vcf_read_ANNTransformer;
  __pyx_vtabptr_array = &__pyx_vtable_array;
  __pyx_vtable_array.get_memview = (PyObject *(*)(struct __pyx_array_obj *))__pyx_array_get_memview;
  if (PyType_Ready(&__pyx_type___pyx_array) < 0) __PYX_ERR(1, 105, __pyx_L1_error)
  __pyx_type___pyx_array.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type___pyx_array.tp_dict, __pyx_vtabptr_array) < 0) __PYX_ERR(1, 105, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_array) < 0) __PYX_ERR(1, 105, __pyx_L1_error)
  __pyx_array_type = &__pyx_type___pyx_array;
  if (PyType_Ready(&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(1, 279, __pyx_L1_error)
  __pyx_type___pyx_MemviewEnum.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_MemviewEnum.tp_dictoffset && __pyx_type___pyx_MemviewEnum.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type___pyx_MemviewEnum.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(1, 279, __pyx_L1_error)
  __pyx_MemviewEnum_type = &__pyx_type___pyx_MemviewEnum;
  __pyx_vtabptr_memoryview = &__pyx_vtable_memoryview;
  __pyx_vtable_memoryview.get_item_pointer = (char *(*)(struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_get_item_pointer;
  __pyx_vtable_memoryview.is_slice = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_is_slice;
  __pyx_vtable_memoryview.setitem_slice_assignment = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_slice_assignment;
  __pyx_vtable_memoryview.setitem_slice_assign_scalar = (PyObject *(*)(struct __pyx_memoryview_obj *, struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_setitem_slice_assign_scalar;
  __pyx_vtable_memoryview.setitem_indexed = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_indexed;
  __pyx_vtable_memoryview.convert_item_to_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *))__pyx_memoryview_convert_item_to_object;
  __pyx_vtable_memoryview.assign_item_from_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *, PyObject *))__pyx_memoryview_assign_item_from_object;
  if (PyType_Ready(&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(1, 330, __pyx_L1_error)
  __pyx_type___pyx_memoryview.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryview.tp_dictoffset && __pyx_type___pyx_memoryview.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type___pyx_memoryview.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type___pyx_memoryview.tp_dict, __pyx_vtabptr_memoryview) < 0) __PYX_ERR(1, 330, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(1, 330, __pyx_L1_error)
  __pyx_memoryview_type = &__pyx_type___pyx_memoryview;
  __pyx_vtabptr__memoryviewslice = &__pyx_vtable__memoryviewslice;
  __pyx_vtable__memoryviewslice.__pyx_base = *__pyx_vtabptr_memoryview;
  __pyx_vtable__memoryviewslice.__pyx_base.convert_item_to_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *))__pyx_memoryviewslice_convert_item_to_object;
  __pyx_vtable__memoryviewslice.__pyx_base.assign_item_from_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *, PyObject *))__pyx_memoryviewslice_assign_item_from_object;
  __pyx_type___pyx_memoryviewslice.tp_base = __pyx_memoryview_type;
  if (PyType_Ready(&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(1, 961, __pyx_L1_error)
  __pyx_type___pyx_memoryviewslice.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryviewslice.tp_dictoffset && __pyx_type___pyx_memoryviewslice.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type___pyx_memoryviewslice.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type___pyx_memoryviewslice.tp_dict, __pyx_vtabptr__memoryviewslice) < 0) __PYX_ERR(1, 961, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(1, 961, __pyx_L1_error)
  __pyx_memoryviewslice_type = &__pyx_type___pyx_memoryviewslice;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", 
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(PyTypeObject),
  #else
  sizeof(PyHeapTypeObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 206, __pyx_L1_error)
  __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 229, __pyx_L1_error)
  __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 233, __pyx_L1_error)
  __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 242, __pyx_L1_error)
  __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}


#if PY_MAJOR_VERSION < 3
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC void
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#else
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC initio_vcf_read(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC initio_vcf_read(void)
#else
__Pyx_PyMODINIT_FUNC PyInit_io_vcf_read(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_io_vcf_read(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) {
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_io_vcf_read(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  double __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  static PyThread_type_lock __pyx_t_21[8];
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'io_vcf_read' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_io_vcf_read(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("io_vcf_read", __pyx_methods, __pyx_k_options_for_profiling_cython_pr, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_COMPILING_IN_PYPY
  Py_INCREF(__pyx_b);
  #endif
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_variant_tools__io_vcf_read) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "variant_tools.io_vcf_read")) {
      if (unlikely(PyDict_SetItemString(modules, "variant_tools.io_vcf_read", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  (void)__Pyx_modinit_variable_export_code();
  (void)__Pyx_modinit_function_export_code();
  if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error;
  if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error;
  (void)__Pyx_modinit_variable_import_code();
  (void)__Pyx_modinit_function_import_code();
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "variant_tools/io_vcf_read.pyx":19
 * 
 * 
 * import warnings             # <<<<<<<<<<<<<<
 * import sys
 * # noinspection PyUnresolvedReferences
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_warnings, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_warnings, __pyx_t_1) < 0) __PYX_ERR(0, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":20
 * 
 * import warnings
 * import sys             # <<<<<<<<<<<<<<
 * # noinspection PyUnresolvedReferences
 * from cpython.bytes cimport PyBytes_AS_STRING, PyBytes_FromStringAndSize
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_1) < 0) __PYX_ERR(0, 20, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":27
 * # noinspection PyUnresolvedReferences
 * from libc.string cimport strcmp, memcpy
 * import numpy as np             # <<<<<<<<<<<<<<
 * cimport numpy as np
 * from cpython.ref cimport PyObject
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":36
 * 
 * #from compat import PY2
 * PY2 = sys.version_info[0] == 2             # <<<<<<<<<<<<<<
 * 
 * #########################################################################################
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_sys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_version_info); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_t_1, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PY2, __pyx_t_2) < 0) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "variant_tools/io_vcf_read.pyx":43
 * 
 * # for Windows compatibility
 * cdef double NAN = np.nan             # <<<<<<<<<<<<<<
 * 
 * # predefine useful characters
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nan); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_3 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_13variant_tools_11io_vcf_read_NAN = __pyx_t_3;

  /* "variant_tools/io_vcf_read.pyx":46
 * 
 * # predefine useful characters
 * cdef char TAB = b'\t'             # <<<<<<<<<<<<<<
 * cdef char LF = b'\n'
 * cdef char CR = b'\r'
 */
  __pyx_v_13variant_tools_11io_vcf_read_TAB = '\t';

  /* "variant_tools/io_vcf_read.pyx":47
 * # predefine useful characters
 * cdef char TAB = b'\t'
 * cdef char LF = b'\n'             # <<<<<<<<<<<<<<
 * cdef char CR = b'\r'
 * cdef char HASH = b'#'
 */
  __pyx_v_13variant_tools_11io_vcf_read_LF = '\n';

  /* "variant_tools/io_vcf_read.pyx":48
 * cdef char TAB = b'\t'
 * cdef char LF = b'\n'
 * cdef char CR = b'\r'             # <<<<<<<<<<<<<<
 * cdef char HASH = b'#'
 * cdef char COLON = b':'
 */
  __pyx_v_13variant_tools_11io_vcf_read_CR = '\r';

  /* "variant_tools/io_vcf_read.pyx":49
 * cdef char LF = b'\n'
 * cdef char CR = b'\r'
 * cdef char HASH = b'#'             # <<<<<<<<<<<<<<
 * cdef char COLON = b':'
 * cdef char SEMICOLON = b';'
 */
  __pyx_v_13variant_tools_11io_vcf_read_HASH = '#';

  /* "variant_tools/io_vcf_read.pyx":50
 * cdef char CR = b'\r'
 * cdef char HASH = b'#'
 * cdef char COLON = b':'             # <<<<<<<<<<<<<<
 * cdef char SEMICOLON = b';'
 * cdef char PERIOD = b'.'
 */
  __pyx_v_13variant_tools_11io_vcf_read_COLON = ':';

  /* "variant_tools/io_vcf_read.pyx":51
 * cdef char HASH = b'#'
 * cdef char COLON = b':'
 * cdef char SEMICOLON = b';'             # <<<<<<<<<<<<<<
 * cdef char PERIOD = b'.'
 * cdef char COMMA = b','
 */
  __pyx_v_13variant_tools_11io_vcf_read_SEMICOLON = ';';

  /* "variant_tools/io_vcf_read.pyx":52
 * cdef char COLON = b':'
 * cdef char SEMICOLON = b';'
 * cdef char PERIOD = b'.'             # <<<<<<<<<<<<<<
 * cdef char COMMA = b','
 * cdef char SLASH = b'/'
 */
  __pyx_v_13variant_tools_11io_vcf_read_PERIOD = '.';

  /* "variant_tools/io_vcf_read.pyx":53
 * cdef char SEMICOLON = b';'
 * cdef char PERIOD = b'.'
 * cdef char COMMA = b','             # <<<<<<<<<<<<<<
 * cdef char SLASH = b'/'
 * cdef char PIPE = b'|'
 */
  __pyx_v_13variant_tools_11io_vcf_read_COMMA = ',';

  /* "variant_tools/io_vcf_read.pyx":54
 * cdef char PERIOD = b'.'
 * cdef char COMMA = b','
 * cdef char SLASH = b'/'             # <<<<<<<<<<<<<<
 * cdef char PIPE = b'|'
 * cdef char EQUALS = b'='
 */
  __pyx_v_13variant_tools_11io_vcf_read_SLASH = '/';

  /* "variant_tools/io_vcf_read.pyx":55
 * cdef char COMMA = b','
 * cdef char SLASH = b'/'
 * cdef char PIPE = b'|'             # <<<<<<<<<<<<<<
 * cdef char EQUALS = b'='
 * cdef char ASTERISK = b'*'
 */
  __pyx_v_13variant_tools_11io_vcf_read_PIPE = '|';

  /* "variant_tools/io_vcf_read.pyx":56
 * cdef char SLASH = b'/'
 * cdef char PIPE = b'|'
 * cdef char EQUALS = b'='             # <<<<<<<<<<<<<<
 * cdef char ASTERISK = b'*'
 * 
 */
  __pyx_v_13variant_tools_11io_vcf_read_EQUALS = '=';

  /* "variant_tools/io_vcf_read.pyx":57
 * cdef char PIPE = b'|'
 * cdef char EQUALS = b'='
 * cdef char ASTERISK = b'*'             # <<<<<<<<<<<<<<
 * 
 * # user field specifications for fixed fields
 */
  __pyx_v_13variant_tools_11io_vcf_read_ASTERISK = '*';

  /* "variant_tools/io_vcf_read.pyx":60
 * 
 * # user field specifications for fixed fields
 * CHROM_FIELD = 'variants/CHROM'             # <<<<<<<<<<<<<<
 * POS_FIELD = 'variants/POS'
 * ID_FIELD = 'variants/ID'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CHROM_FIELD, __pyx_kp_s_variants_CHROM) < 0) __PYX_ERR(0, 60, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":61
 * # user field specifications for fixed fields
 * CHROM_FIELD = 'variants/CHROM'
 * POS_FIELD = 'variants/POS'             # <<<<<<<<<<<<<<
 * ID_FIELD = 'variants/ID'
 * REF_FIELD = 'variants/REF'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_POS_FIELD, __pyx_kp_s_variants_POS) < 0) __PYX_ERR(0, 61, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":62
 * CHROM_FIELD = 'variants/CHROM'
 * POS_FIELD = 'variants/POS'
 * ID_FIELD = 'variants/ID'             # <<<<<<<<<<<<<<
 * REF_FIELD = 'variants/REF'
 * ALT_FIELD = 'variants/ALT'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ID_FIELD, __pyx_kp_s_variants_ID) < 0) __PYX_ERR(0, 62, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":63
 * POS_FIELD = 'variants/POS'
 * ID_FIELD = 'variants/ID'
 * REF_FIELD = 'variants/REF'             # <<<<<<<<<<<<<<
 * ALT_FIELD = 'variants/ALT'
 * QUAL_FIELD = 'variants/QUAL'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_REF_FIELD, __pyx_kp_s_variants_REF) < 0) __PYX_ERR(0, 63, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":64
 * ID_FIELD = 'variants/ID'
 * REF_FIELD = 'variants/REF'
 * ALT_FIELD = 'variants/ALT'             # <<<<<<<<<<<<<<
 * QUAL_FIELD = 'variants/QUAL'
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALT_FIELD, __pyx_kp_s_variants_ALT) < 0) __PYX_ERR(0, 64, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":65
 * REF_FIELD = 'variants/REF'
 * ALT_FIELD = 'variants/ALT'
 * QUAL_FIELD = 'variants/QUAL'             # <<<<<<<<<<<<<<
 * 
 * # useful to lookup max int values
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_QUAL_FIELD, __pyx_kp_s_variants_QUAL) < 0) __PYX_ERR(0, 65, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":68
 * 
 * # useful to lookup max int values
 * II8 = np.iinfo(np.int8)             # <<<<<<<<<<<<<<
 * II16 = np.iinfo(np.int16)
 * II32 = np.iinfo(np.int32)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_II8, __pyx_t_1) < 0) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":69
 * # useful to lookup max int values
 * II8 = np.iinfo(np.int8)
 * II16 = np.iinfo(np.int16)             # <<<<<<<<<<<<<<
 * II32 = np.iinfo(np.int32)
 * II64 = np.iinfo(np.int64)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_II16, __pyx_t_1) < 0) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":70
 * II8 = np.iinfo(np.int8)
 * II16 = np.iinfo(np.int16)
 * II32 = np.iinfo(np.int32)             # <<<<<<<<<<<<<<
 * II64 = np.iinfo(np.int64)
 * IU8 = np.iinfo(np.uint8)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int32); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_II32, __pyx_t_1) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":71
 * II16 = np.iinfo(np.int16)
 * II32 = np.iinfo(np.int32)
 * II64 = np.iinfo(np.int64)             # <<<<<<<<<<<<<<
 * IU8 = np.iinfo(np.uint8)
 * IU16 = np.iinfo(np.uint16)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int64); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_II64, __pyx_t_1) < 0) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":72
 * II32 = np.iinfo(np.int32)
 * II64 = np.iinfo(np.int64)
 * IU8 = np.iinfo(np.uint8)             # <<<<<<<<<<<<<<
 * IU16 = np.iinfo(np.uint16)
 * IU32 = np.iinfo(np.uint32)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_uint8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_IU8, __pyx_t_1) < 0) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":73
 * II64 = np.iinfo(np.int64)
 * IU8 = np.iinfo(np.uint8)
 * IU16 = np.iinfo(np.uint16)             # <<<<<<<<<<<<<<
 * IU32 = np.iinfo(np.uint32)
 * IU64 = np.iinfo(np.uint64)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_uint16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_IU16, __pyx_t_1) < 0) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":74
 * IU8 = np.iinfo(np.uint8)
 * IU16 = np.iinfo(np.uint16)
 * IU32 = np.iinfo(np.uint32)             # <<<<<<<<<<<<<<
 * IU64 = np.iinfo(np.uint64)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_uint32); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_IU32, __pyx_t_1) < 0) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":75
 * IU16 = np.iinfo(np.uint16)
 * IU32 = np.iinfo(np.uint32)
 * IU64 = np.iinfo(np.uint64)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_iinfo); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_uint64); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_IU64, __pyx_t_1) < 0) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":427
 * 
 * 
 * def check_samples(loc_samples, headers):             # <<<<<<<<<<<<<<
 *     n_samples = len(headers.samples)
 *     if loc_samples is None:
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_1check_samples, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_check_samples, __pyx_t_1) < 0) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":919
 * 
 * 
 * def check_string_dtype(dtype):             # <<<<<<<<<<<<<<
 *     dtype = np.dtype(dtype)
 *     if dtype.kind not in ['S', 'O']:
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_3check_string_dtype, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_check_string_dtype, __pyx_t_1) < 0) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":1607
 *     cdef np.float32_t[:] memory
 * 
 *     def __init__(self, chunk_length, fill=NAN):             # <<<<<<<<<<<<<<
 *         super(VCFQualParser, self).__init__(key=b'QUAL', dtype='float32', number=1,
 *                                             fill=fill, chunk_length=chunk_length)
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_13variant_tools_11io_vcf_read_NAN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_k__14 = __pyx_t_1;
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":3803
 * 
 * 
 * vcf_state_labels = [             # <<<<<<<<<<<<<<
 *     'CHROM',
 *     'POS',
 */
  __pyx_t_1 = PyList_New(12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_CHROM);
  __Pyx_GIVEREF(__pyx_n_s_CHROM);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_CHROM);
  __Pyx_INCREF(__pyx_n_s_POS);
  __Pyx_GIVEREF(__pyx_n_s_POS);
  PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_POS);
  __Pyx_INCREF(__pyx_n_s_ID);
  __Pyx_GIVEREF(__pyx_n_s_ID);
  PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_ID);
  __Pyx_INCREF(__pyx_n_s_REF);
  __Pyx_GIVEREF(__pyx_n_s_REF);
  PyList_SET_ITEM(__pyx_t_1, 3, __pyx_n_s_REF);
  __Pyx_INCREF(__pyx_n_s_ALT);
  __Pyx_GIVEREF(__pyx_n_s_ALT);
  PyList_SET_ITEM(__pyx_t_1, 4, __pyx_n_s_ALT);
  __Pyx_INCREF(__pyx_n_s_QUAL);
  __Pyx_GIVEREF(__pyx_n_s_QUAL);
  PyList_SET_ITEM(__pyx_t_1, 5, __pyx_n_s_QUAL);
  __Pyx_INCREF(__pyx_n_s_FILTER);
  __Pyx_GIVEREF(__pyx_n_s_FILTER);
  PyList_SET_ITEM(__pyx_t_1, 6, __pyx_n_s_FILTER);
  __Pyx_INCREF(__pyx_n_s_INFO);
  __Pyx_GIVEREF(__pyx_n_s_INFO);
  PyList_SET_ITEM(__pyx_t_1, 7, __pyx_n_s_INFO);
  __Pyx_INCREF(__pyx_n_s_FORMAT);
  __Pyx_GIVEREF(__pyx_n_s_FORMAT);
  PyList_SET_ITEM(__pyx_t_1, 8, __pyx_n_s_FORMAT);
  __Pyx_INCREF(__pyx_n_s_CALLDATA);
  __Pyx_GIVEREF(__pyx_n_s_CALLDATA);
  PyList_SET_ITEM(__pyx_t_1, 9, __pyx_n_s_CALLDATA);
  __Pyx_INCREF(__pyx_n_s_EOL);
  __Pyx_GIVEREF(__pyx_n_s_EOL);
  PyList_SET_ITEM(__pyx_t_1, 10, __pyx_n_s_EOL);
  __Pyx_INCREF(__pyx_n_s_EOF);
  __Pyx_GIVEREF(__pyx_n_s_EOF);
  PyList_SET_ITEM(__pyx_t_1, 11, __pyx_n_s_EOF);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_vcf_state_labels, __pyx_t_1) < 0) __PYX_ERR(0, 3803, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "variant_tools/io_vcf_read.pyx":4047
 * 
 * 
 * ANN_FIELD = 'variants/ANN'             # <<<<<<<<<<<<<<
 * ANN_ALLELE_FIELD = 'variants/ANN_Allele'
 * ANN_ANNOTATION_FIELD = 'variants/ANN_Annotation'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_FIELD, __pyx_kp_s_variants_ANN_2) < 0) __PYX_ERR(0, 4047, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4048
 * 
 * ANN_FIELD = 'variants/ANN'
 * ANN_ALLELE_FIELD = 'variants/ANN_Allele'             # <<<<<<<<<<<<<<
 * ANN_ANNOTATION_FIELD = 'variants/ANN_Annotation'
 * ANN_ANNOTATION_IMPACT_FIELD = 'variants/ANN_Annotation_Impact'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_ALLELE_FIELD, __pyx_kp_s_variants_ANN_Allele) < 0) __PYX_ERR(0, 4048, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4049
 * ANN_FIELD = 'variants/ANN'
 * ANN_ALLELE_FIELD = 'variants/ANN_Allele'
 * ANN_ANNOTATION_FIELD = 'variants/ANN_Annotation'             # <<<<<<<<<<<<<<
 * ANN_ANNOTATION_IMPACT_FIELD = 'variants/ANN_Annotation_Impact'
 * ANN_GENE_NAME_FIELD = 'variants/ANN_Gene_Name'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_ANNOTATION_FIELD, __pyx_kp_s_variants_ANN_Annotation) < 0) __PYX_ERR(0, 4049, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4050
 * ANN_ALLELE_FIELD = 'variants/ANN_Allele'
 * ANN_ANNOTATION_FIELD = 'variants/ANN_Annotation'
 * ANN_ANNOTATION_IMPACT_FIELD = 'variants/ANN_Annotation_Impact'             # <<<<<<<<<<<<<<
 * ANN_GENE_NAME_FIELD = 'variants/ANN_Gene_Name'
 * ANN_GENE_ID_FIELD = 'variants/ANN_Gene_ID'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD, __pyx_kp_s_variants_ANN_Annotation_Impact) < 0) __PYX_ERR(0, 4050, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4051
 * ANN_ANNOTATION_FIELD = 'variants/ANN_Annotation'
 * ANN_ANNOTATION_IMPACT_FIELD = 'variants/ANN_Annotation_Impact'
 * ANN_GENE_NAME_FIELD = 'variants/ANN_Gene_Name'             # <<<<<<<<<<<<<<
 * ANN_GENE_ID_FIELD = 'variants/ANN_Gene_ID'
 * ANN_FEATURE_TYPE_FIELD = 'variants/ANN_Feature_Type'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_GENE_NAME_FIELD, __pyx_kp_s_variants_ANN_Gene_Name) < 0) __PYX_ERR(0, 4051, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4052
 * ANN_ANNOTATION_IMPACT_FIELD = 'variants/ANN_Annotation_Impact'
 * ANN_GENE_NAME_FIELD = 'variants/ANN_Gene_Name'
 * ANN_GENE_ID_FIELD = 'variants/ANN_Gene_ID'             # <<<<<<<<<<<<<<
 * ANN_FEATURE_TYPE_FIELD = 'variants/ANN_Feature_Type'
 * ANN_FEATURE_ID_FIELD = 'variants/ANN_Feature_ID'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_GENE_ID_FIELD, __pyx_kp_s_variants_ANN_Gene_ID) < 0) __PYX_ERR(0, 4052, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4053
 * ANN_GENE_NAME_FIELD = 'variants/ANN_Gene_Name'
 * ANN_GENE_ID_FIELD = 'variants/ANN_Gene_ID'
 * ANN_FEATURE_TYPE_FIELD = 'variants/ANN_Feature_Type'             # <<<<<<<<<<<<<<
 * ANN_FEATURE_ID_FIELD = 'variants/ANN_Feature_ID'
 * ANN_TRANSCRIPT_BIOTYPE_FIELD = 'variants/ANN_Transcript_BioType'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_FEATURE_TYPE_FIELD, __pyx_kp_s_variants_ANN_Feature_Type) < 0) __PYX_ERR(0, 4053, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4054
 * ANN_GENE_ID_FIELD = 'variants/ANN_Gene_ID'
 * ANN_FEATURE_TYPE_FIELD = 'variants/ANN_Feature_Type'
 * ANN_FEATURE_ID_FIELD = 'variants/ANN_Feature_ID'             # <<<<<<<<<<<<<<
 * ANN_TRANSCRIPT_BIOTYPE_FIELD = 'variants/ANN_Transcript_BioType'
 * ANN_RANK_FIELD = 'variants/ANN_Rank'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_FEATURE_ID_FIELD, __pyx_kp_s_variants_ANN_Feature_ID) < 0) __PYX_ERR(0, 4054, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4055
 * ANN_FEATURE_TYPE_FIELD = 'variants/ANN_Feature_Type'
 * ANN_FEATURE_ID_FIELD = 'variants/ANN_Feature_ID'
 * ANN_TRANSCRIPT_BIOTYPE_FIELD = 'variants/ANN_Transcript_BioType'             # <<<<<<<<<<<<<<
 * ANN_RANK_FIELD = 'variants/ANN_Rank'
 * ANN_HGVS_C_FIELD = 'variants/ANN_HGVS_c'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD, __pyx_kp_s_variants_ANN_Transcript_BioType) < 0) __PYX_ERR(0, 4055, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4056
 * ANN_FEATURE_ID_FIELD = 'variants/ANN_Feature_ID'
 * ANN_TRANSCRIPT_BIOTYPE_FIELD = 'variants/ANN_Transcript_BioType'
 * ANN_RANK_FIELD = 'variants/ANN_Rank'             # <<<<<<<<<<<<<<
 * ANN_HGVS_C_FIELD = 'variants/ANN_HGVS_c'
 * ANN_HGVS_P_FIELD = 'variants/ANN_HGVS_p'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_RANK_FIELD, __pyx_kp_s_variants_ANN_Rank) < 0) __PYX_ERR(0, 4056, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4057
 * ANN_TRANSCRIPT_BIOTYPE_FIELD = 'variants/ANN_Transcript_BioType'
 * ANN_RANK_FIELD = 'variants/ANN_Rank'
 * ANN_HGVS_C_FIELD = 'variants/ANN_HGVS_c'             # <<<<<<<<<<<<<<
 * ANN_HGVS_P_FIELD = 'variants/ANN_HGVS_p'
 * ANN_CDNA_FIELD = 'variants/ANN_cDNA'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_HGVS_C_FIELD, __pyx_kp_s_variants_ANN_HGVS_c) < 0) __PYX_ERR(0, 4057, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4058
 * ANN_RANK_FIELD = 'variants/ANN_Rank'
 * ANN_HGVS_C_FIELD = 'variants/ANN_HGVS_c'
 * ANN_HGVS_P_FIELD = 'variants/ANN_HGVS_p'             # <<<<<<<<<<<<<<
 * ANN_CDNA_FIELD = 'variants/ANN_cDNA'
 * ANN_CDNA_POS_FIELD = 'variants/ANN_cDNA_pos'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_HGVS_P_FIELD, __pyx_kp_s_variants_ANN_HGVS_p) < 0) __PYX_ERR(0, 4058, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4059
 * ANN_HGVS_C_FIELD = 'variants/ANN_HGVS_c'
 * ANN_HGVS_P_FIELD = 'variants/ANN_HGVS_p'
 * ANN_CDNA_FIELD = 'variants/ANN_cDNA'             # <<<<<<<<<<<<<<
 * ANN_CDNA_POS_FIELD = 'variants/ANN_cDNA_pos'
 * ANN_CDNA_LENGTH_FIELD = 'variants/ANN_cDNA_length'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_CDNA_FIELD, __pyx_kp_s_variants_ANN_cDNA) < 0) __PYX_ERR(0, 4059, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4060
 * ANN_HGVS_P_FIELD = 'variants/ANN_HGVS_p'
 * ANN_CDNA_FIELD = 'variants/ANN_cDNA'
 * ANN_CDNA_POS_FIELD = 'variants/ANN_cDNA_pos'             # <<<<<<<<<<<<<<
 * ANN_CDNA_LENGTH_FIELD = 'variants/ANN_cDNA_length'
 * ANN_CDS_FIELD = 'variants/ANN_CDS'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_CDNA_POS_FIELD, __pyx_kp_s_variants_ANN_cDNA_pos) < 0) __PYX_ERR(0, 4060, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4061
 * ANN_CDNA_FIELD = 'variants/ANN_cDNA'
 * ANN_CDNA_POS_FIELD = 'variants/ANN_cDNA_pos'
 * ANN_CDNA_LENGTH_FIELD = 'variants/ANN_cDNA_length'             # <<<<<<<<<<<<<<
 * ANN_CDS_FIELD = 'variants/ANN_CDS'
 * ANN_CDS_POS_FIELD = 'variants/ANN_CDS_pos'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_CDNA_LENGTH_FIELD, __pyx_kp_s_variants_ANN_cDNA_length) < 0) __PYX_ERR(0, 4061, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4062
 * ANN_CDNA_POS_FIELD = 'variants/ANN_cDNA_pos'
 * ANN_CDNA_LENGTH_FIELD = 'variants/ANN_cDNA_length'
 * ANN_CDS_FIELD = 'variants/ANN_CDS'             # <<<<<<<<<<<<<<
 * ANN_CDS_POS_FIELD = 'variants/ANN_CDS_pos'
 * ANN_CDS_LENGTH_FIELD = 'variants/ANN_CDS_length'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_CDS_FIELD, __pyx_kp_s_variants_ANN_CDS) < 0) __PYX_ERR(0, 4062, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4063
 * ANN_CDNA_LENGTH_FIELD = 'variants/ANN_cDNA_length'
 * ANN_CDS_FIELD = 'variants/ANN_CDS'
 * ANN_CDS_POS_FIELD = 'variants/ANN_CDS_pos'             # <<<<<<<<<<<<<<
 * ANN_CDS_LENGTH_FIELD = 'variants/ANN_CDS_length'
 * ANN_AA_FIELD = 'variants/ANN_AA'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_CDS_POS_FIELD, __pyx_kp_s_variants_ANN_CDS_pos) < 0) __PYX_ERR(0, 4063, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4064
 * ANN_CDS_FIELD = 'variants/ANN_CDS'
 * ANN_CDS_POS_FIELD = 'variants/ANN_CDS_pos'
 * ANN_CDS_LENGTH_FIELD = 'variants/ANN_CDS_length'             # <<<<<<<<<<<<<<
 * ANN_AA_FIELD = 'variants/ANN_AA'
 * ANN_AA_POS_FIELD = 'variants/ANN_AA_pos'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_CDS_LENGTH_FIELD, __pyx_kp_s_variants_ANN_CDS_length) < 0) __PYX_ERR(0, 4064, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4065
 * ANN_CDS_POS_FIELD = 'variants/ANN_CDS_pos'
 * ANN_CDS_LENGTH_FIELD = 'variants/ANN_CDS_length'
 * ANN_AA_FIELD = 'variants/ANN_AA'             # <<<<<<<<<<<<<<
 * ANN_AA_POS_FIELD = 'variants/ANN_AA_pos'
 * ANN_AA_LENGTH_FIELD = 'variants/ANN_AA_length'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_AA_FIELD, __pyx_kp_s_variants_ANN_AA) < 0) __PYX_ERR(0, 4065, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4066
 * ANN_CDS_LENGTH_FIELD = 'variants/ANN_CDS_length'
 * ANN_AA_FIELD = 'variants/ANN_AA'
 * ANN_AA_POS_FIELD = 'variants/ANN_AA_pos'             # <<<<<<<<<<<<<<
 * ANN_AA_LENGTH_FIELD = 'variants/ANN_AA_length'
 * ANN_DISTANCE_FIELD = 'variants/ANN_Distance'
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_AA_POS_FIELD, __pyx_kp_s_variants_ANN_AA_pos) < 0) __PYX_ERR(0, 4066, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4067
 * ANN_AA_FIELD = 'variants/ANN_AA'
 * ANN_AA_POS_FIELD = 'variants/ANN_AA_pos'
 * ANN_AA_LENGTH_FIELD = 'variants/ANN_AA_length'             # <<<<<<<<<<<<<<
 * ANN_DISTANCE_FIELD = 'variants/ANN_Distance'
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_AA_LENGTH_FIELD, __pyx_kp_s_variants_ANN_AA_length) < 0) __PYX_ERR(0, 4067, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4068
 * ANN_AA_POS_FIELD = 'variants/ANN_AA_pos'
 * ANN_AA_LENGTH_FIELD = 'variants/ANN_AA_length'
 * ANN_DISTANCE_FIELD = 'variants/ANN_Distance'             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_DISTANCE_FIELD, __pyx_kp_s_variants_ANN_Distance) < 0) __PYX_ERR(0, 4068, __pyx_L1_error)

  /* "variant_tools/io_vcf_read.pyx":4072
 * 
 * ANN_FIELDS = (
 *     ANN_ALLELE_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_ANNOTATION_FIELD,
 *     ANN_ANNOTATION_IMPACT_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ANN_ALLELE_FIELD); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "variant_tools/io_vcf_read.pyx":4073
 * ANN_FIELDS = (
 *     ANN_ALLELE_FIELD,
 *     ANN_ANNOTATION_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_ANNOTATION_IMPACT_FIELD,
 *     ANN_GENE_NAME_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ANN_ANNOTATION_FIELD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "variant_tools/io_vcf_read.pyx":4074
 *     ANN_ALLELE_FIELD,
 *     ANN_ANNOTATION_FIELD,
 *     ANN_ANNOTATION_IMPACT_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_GENE_NAME_FIELD,
 *     ANN_GENE_ID_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "variant_tools/io_vcf_read.pyx":4075
 *     ANN_ANNOTATION_FIELD,
 *     ANN_ANNOTATION_IMPACT_FIELD,
 *     ANN_GENE_NAME_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_GENE_ID_FIELD,
 *     ANN_FEATURE_TYPE_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_ANN_GENE_NAME_FIELD); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "variant_tools/io_vcf_read.pyx":4076
 *     ANN_ANNOTATION_IMPACT_FIELD,
 *     ANN_GENE_NAME_FIELD,
 *     ANN_GENE_ID_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_FEATURE_TYPE_FIELD,
 *     ANN_FEATURE_ID_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ANN_GENE_ID_FIELD); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "variant_tools/io_vcf_read.pyx":4077
 *     ANN_GENE_NAME_FIELD,
 *     ANN_GENE_ID_FIELD,
 *     ANN_FEATURE_TYPE_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_FEATURE_ID_FIELD,
 *     ANN_TRANSCRIPT_BIOTYPE_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ANN_FEATURE_TYPE_FIELD); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "variant_tools/io_vcf_read.pyx":4078
 *     ANN_GENE_ID_FIELD,
 *     ANN_FEATURE_TYPE_FIELD,
 *     ANN_FEATURE_ID_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_TRANSCRIPT_BIOTYPE_FIELD,
 *     ANN_RANK_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ANN_FEATURE_ID_FIELD); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);

  /* "variant_tools/io_vcf_read.pyx":4079
 *     ANN_FEATURE_TYPE_FIELD,
 *     ANN_FEATURE_ID_FIELD,
 *     ANN_TRANSCRIPT_BIOTYPE_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_RANK_FIELD,
 *     ANN_HGVS_C_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);

  /* "variant_tools/io_vcf_read.pyx":4080
 *     ANN_FEATURE_ID_FIELD,
 *     ANN_TRANSCRIPT_BIOTYPE_FIELD,
 *     ANN_RANK_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_HGVS_C_FIELD,
 *     ANN_HGVS_P_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ANN_RANK_FIELD); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);

  /* "variant_tools/io_vcf_read.pyx":4081
 *     ANN_TRANSCRIPT_BIOTYPE_FIELD,
 *     ANN_RANK_FIELD,
 *     ANN_HGVS_C_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_HGVS_P_FIELD,
 *     ANN_CDNA_POS_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_ANN_HGVS_C_FIELD); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);

  /* "variant_tools/io_vcf_read.pyx":4082
 *     ANN_RANK_FIELD,
 *     ANN_HGVS_C_FIELD,
 *     ANN_HGVS_P_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_CDNA_POS_FIELD,
 *     ANN_CDNA_LENGTH_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_ANN_HGVS_P_FIELD); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 4082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);

  /* "variant_tools/io_vcf_read.pyx":4083
 *     ANN_HGVS_C_FIELD,
 *     ANN_HGVS_P_FIELD,
 *     ANN_CDNA_POS_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_CDNA_LENGTH_FIELD,
 *     ANN_CDS_POS_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_ANN_CDNA_POS_FIELD); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 4083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);

  /* "variant_tools/io_vcf_read.pyx":4084
 *     ANN_HGVS_P_FIELD,
 *     ANN_CDNA_POS_FIELD,
 *     ANN_CDNA_LENGTH_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_CDS_POS_FIELD,
 *     ANN_CDS_LENGTH_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_ANN_CDNA_LENGTH_FIELD); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 4084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);

  /* "variant_tools/io_vcf_read.pyx":4085
 *     ANN_CDNA_POS_FIELD,
 *     ANN_CDNA_LENGTH_FIELD,
 *     ANN_CDS_POS_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_CDS_LENGTH_FIELD,
 *     ANN_AA_POS_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_ANN_CDS_POS_FIELD); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 4085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);

  /* "variant_tools/io_vcf_read.pyx":4086
 *     ANN_CDNA_LENGTH_FIELD,
 *     ANN_CDS_POS_FIELD,
 *     ANN_CDS_LENGTH_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_AA_POS_FIELD,
 *     ANN_AA_LENGTH_FIELD,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_n_s_ANN_CDS_LENGTH_FIELD); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 4086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);

  /* "variant_tools/io_vcf_read.pyx":4087
 *     ANN_CDS_POS_FIELD,
 *     ANN_CDS_LENGTH_FIELD,
 *     ANN_AA_POS_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_AA_LENGTH_FIELD,
 *     ANN_DISTANCE_FIELD
 */
  __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_ANN_AA_POS_FIELD); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 4087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);

  /* "variant_tools/io_vcf_read.pyx":4088
 *     ANN_CDS_LENGTH_FIELD,
 *     ANN_AA_POS_FIELD,
 *     ANN_AA_LENGTH_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_DISTANCE_FIELD
 * )
 */
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_AA_LENGTH_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);

  /* "variant_tools/io_vcf_read.pyx":4089
 *     ANN_AA_POS_FIELD,
 *     ANN_AA_LENGTH_FIELD,
 *     ANN_DISTANCE_FIELD             # <<<<<<<<<<<<<<
 * )
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_DISTANCE_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);

  /* "variant_tools/io_vcf_read.pyx":4072
 * 
 * ANN_FIELDS = (
 *     ANN_ALLELE_FIELD,             # <<<<<<<<<<<<<<
 *     ANN_ANNOTATION_FIELD,
 *     ANN_ANNOTATION_IMPACT_FIELD,
 */
  __pyx_t_20 = PyTuple_New(18); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_20, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_20, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_20, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_20, 3, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_20, 4, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_20, 5, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_20, 6, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_9);
  PyTuple_SET_ITEM(__pyx_t_20, 7, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_20, 8, __pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_11);
  PyTuple_SET_ITEM(__pyx_t_20, 9, __pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_12);
  PyTuple_SET_ITEM(__pyx_t_20, 10, __pyx_t_12);
  __Pyx_GIVEREF(__pyx_t_13);
  PyTuple_SET_ITEM(__pyx_t_20, 11, __pyx_t_13);
  __Pyx_GIVEREF(__pyx_t_14);
  PyTuple_SET_ITEM(__pyx_t_20, 12, __pyx_t_14);
  __Pyx_GIVEREF(__pyx_t_15);
  PyTuple_SET_ITEM(__pyx_t_20, 13, __pyx_t_15);
  __Pyx_GIVEREF(__pyx_t_16);
  PyTuple_SET_ITEM(__pyx_t_20, 14, __pyx_t_16);
  __Pyx_GIVEREF(__pyx_t_17);
  PyTuple_SET_ITEM(__pyx_t_20, 15, __pyx_t_17);
  __Pyx_GIVEREF(__pyx_t_18);
  PyTuple_SET_ITEM(__pyx_t_20, 16, __pyx_t_18);
  __Pyx_GIVEREF(__pyx_t_19);
  PyTuple_SET_ITEM(__pyx_t_20, 17, __pyx_t_19);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_9 = 0;
  __pyx_t_10 = 0;
  __pyx_t_11 = 0;
  __pyx_t_12 = 0;
  __pyx_t_13 = 0;
  __pyx_t_14 = 0;
  __pyx_t_15 = 0;
  __pyx_t_16 = 0;
  __pyx_t_17 = 0;
  __pyx_t_18 = 0;
  __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ANN_FIELDS, __pyx_t_20) < 0) __PYX_ERR(0, 4071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4093
 * 
 * 
 * def _normalize_ann_field_prefix(f):             # <<<<<<<<<<<<<<
 *     # normalize prefix
 *     if f.startswith('variants/ANN_'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_5_normalize_ann_field_prefix, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_normalize_ann_field_prefix, __pyx_t_20) < 0) __PYX_ERR(0, 4093, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4104
 * 
 * 
 * def _normalize_ann_fields(fields):             # <<<<<<<<<<<<<<
 *     normed_fields = list()
 * 
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_7_normalize_ann_fields, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_normalize_ann_fields, __pyx_t_20) < 0) __PYX_ERR(0, 4104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4136
 * 
 * 
 * default_ann_types = dict()             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_ALLELE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_ANNOTATION_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_ann_types, __pyx_t_20) < 0) __PYX_ERR(0, 4136, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4137
 * 
 * default_ann_types = dict()
 * default_ann_types[ANN_ALLELE_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_ANNOTATION_FIELD] = np.dtype('object')
 * default_ann_types[ANN_ANNOTATION_IMPACT_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_ALLELE_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4138
 * default_ann_types = dict()
 * default_ann_types[ANN_ALLELE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_ANNOTATION_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_ANNOTATION_IMPACT_FIELD] = np.dtype('object')
 * default_ann_types[ANN_GENE_NAME_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_ANNOTATION_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4138, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4139
 * default_ann_types[ANN_ALLELE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_ANNOTATION_FIELD] = np.dtype('object')
 * default_ann_types[ANN_ANNOTATION_IMPACT_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_GENE_NAME_FIELD] = np.dtype('object')
 * default_ann_types[ANN_GENE_ID_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_ANNOTATION_IMPACT_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4140
 * default_ann_types[ANN_ANNOTATION_FIELD] = np.dtype('object')
 * default_ann_types[ANN_ANNOTATION_IMPACT_FIELD] = np.dtype('object')
 * default_ann_types[ANN_GENE_NAME_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_GENE_ID_FIELD] = np.dtype('object')
 * default_ann_types[ANN_FEATURE_TYPE_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_GENE_NAME_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4141
 * default_ann_types[ANN_ANNOTATION_IMPACT_FIELD] = np.dtype('object')
 * default_ann_types[ANN_GENE_NAME_FIELD] = np.dtype('object')
 * default_ann_types[ANN_GENE_ID_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_FEATURE_TYPE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_FEATURE_ID_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_GENE_ID_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4142
 * default_ann_types[ANN_GENE_NAME_FIELD] = np.dtype('object')
 * default_ann_types[ANN_GENE_ID_FIELD] = np.dtype('object')
 * default_ann_types[ANN_FEATURE_TYPE_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_FEATURE_ID_FIELD] = np.dtype('object')
 * default_ann_types[ANN_TRANSCRIPT_BIOTYPE_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_FEATURE_TYPE_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4142, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4143
 * default_ann_types[ANN_GENE_ID_FIELD] = np.dtype('object')
 * default_ann_types[ANN_FEATURE_TYPE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_FEATURE_ID_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_TRANSCRIPT_BIOTYPE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_RANK_FIELD] = np.dtype('int8')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_FEATURE_ID_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4144
 * default_ann_types[ANN_FEATURE_TYPE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_FEATURE_ID_FIELD] = np.dtype('object')
 * default_ann_types[ANN_TRANSCRIPT_BIOTYPE_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_RANK_FIELD] = np.dtype('int8')
 * default_ann_types[ANN_HGVS_C_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_TRANSCRIPT_BIOTYPE_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4145
 * default_ann_types[ANN_FEATURE_ID_FIELD] = np.dtype('object')
 * default_ann_types[ANN_TRANSCRIPT_BIOTYPE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_RANK_FIELD] = np.dtype('int8')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_HGVS_C_FIELD] = np.dtype('object')
 * default_ann_types[ANN_HGVS_P_FIELD] = np.dtype('object')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_RANK_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4146
 * default_ann_types[ANN_TRANSCRIPT_BIOTYPE_FIELD] = np.dtype('object')
 * default_ann_types[ANN_RANK_FIELD] = np.dtype('int8')
 * default_ann_types[ANN_HGVS_C_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_HGVS_P_FIELD] = np.dtype('object')
 * default_ann_types[ANN_CDNA_POS_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_HGVS_C_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4147
 * default_ann_types[ANN_RANK_FIELD] = np.dtype('int8')
 * default_ann_types[ANN_HGVS_C_FIELD] = np.dtype('object')
 * default_ann_types[ANN_HGVS_P_FIELD] = np.dtype('object')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_CDNA_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDNA_LENGTH_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_HGVS_P_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4148
 * default_ann_types[ANN_HGVS_C_FIELD] = np.dtype('object')
 * default_ann_types[ANN_HGVS_P_FIELD] = np.dtype('object')
 * default_ann_types[ANN_CDNA_POS_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_CDNA_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDS_POS_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_CDNA_POS_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4149
 * default_ann_types[ANN_HGVS_P_FIELD] = np.dtype('object')
 * default_ann_types[ANN_CDNA_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDNA_LENGTH_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_CDS_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDS_LENGTH_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_CDNA_LENGTH_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4150
 * default_ann_types[ANN_CDNA_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDNA_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDS_POS_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_CDS_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_AA_POS_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_CDS_POS_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4151
 * default_ann_types[ANN_CDNA_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDS_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDS_LENGTH_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_AA_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_AA_LENGTH_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_CDS_LENGTH_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4152
 * default_ann_types[ANN_CDS_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_CDS_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_AA_POS_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_AA_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_DISTANCE_FIELD] = np.dtype('int32')
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_AA_POS_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4153
 * default_ann_types[ANN_CDS_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_AA_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_AA_LENGTH_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * default_ann_types[ANN_DISTANCE_FIELD] = np.dtype('int32')
 * 
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_ANN_AA_LENGTH_FIELD); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (unlikely(PyObject_SetItem(__pyx_t_19, __pyx_t_18, __pyx_t_20) < 0)) __PYX_ERR(0, 4153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4154
 * default_ann_types[ANN_AA_POS_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_AA_LENGTH_FIELD] = np.dtype('int32')
 * default_ann_types[ANN_DISTANCE_FIELD] = np.dtype('int32')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_n_s_default_ann_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_ANN_DISTANCE_FIELD); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (unlikely(PyObject_SetItem(__pyx_t_18, __pyx_t_19, __pyx_t_20) < 0)) __PYX_ERR(0, 4154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":4157
 * 
 * 
 * def _normalize_ann_types(fields, types):             # <<<<<<<<<<<<<<
 * 
 *     if types is None:
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_9_normalize_ann_types, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_normalize_ann_types, __pyx_t_20) < 0) __PYX_ERR(0, 4157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_InputStreamBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_11__pyx_unpickle_InputStreamBase, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_InputStreamBase, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_InputStreamBase__set_state(<InputStreamBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_InputStreamBase__set_state(InputStreamBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.c = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_13__pyx_unpickle_FileInputStream, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_FileInputStream, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFChunkIterator(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_15__pyx_unpickle_VCFChunkIterator, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFChunkIterator, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFChunkIterator__set_state(<VCFChunkIterator> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChunkIterator__set_state(VCFChunkIterator __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.context = __pyx_state[0]; __pyx_result.parser = __pyx_state[1]; __pyx_result.stream = __pyx_state[2]
 *     if len(__pyx_state) > 3 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_17__pyx_unpickle_VCFParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFFieldParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_19__pyx_unpickle_VCFFieldParserBase, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFFieldParserBas, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFFieldParserBase__set_state(<VCFFieldParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFFieldParserBase__set_state(VCFFieldParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_21__pyx_unpickle_VCFSkipFieldParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFSkipFieldParse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFChromPosParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_23__pyx_unpickle_VCFChromPosParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFChromPosParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFChromPosParser__set_state(<VCFChromPosParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFChromPosParser__set_state(VCFChromPosParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chrom_memory = __pyx_state[0]; __pyx_result.chrom_values = __pyx_state[1]; __pyx_result.chunk_length = __pyx_state[2]; __pyx_result.dtype = __pyx_state[3]; __pyx_result.fill = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.pos_memory = __pyx_state[8]; __pyx_result.pos_values = __pyx_state[9]; __pyx_result.region_begin = __pyx_state[10]; __pyx_result.region_chrom = __pyx_state[11]; __pyx_result.region_end = __pyx_state[12]; __pyx_result.store_chrom = __pyx_state[13]; __pyx_result.store_pos = __pyx_state[14]; __pyx_result.values = __pyx_state[15]
 *     if len(__pyx_state) > 16 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_25__pyx_unpickle_VCFIDStringParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFIDStringParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFIDObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_27__pyx_unpickle_VCFIDObjectParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFIDObjectParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFIDObjectParser__set_state(<VCFIDObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFIDObjectParser__set_state(VCFIDObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_29__pyx_unpickle_VCFRefStringParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFRefStringParse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFRefObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_31__pyx_unpickle_VCFRefObjectParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFRefObjectParse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFRefObjectParser__set_state(<VCFRefObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFRefObjectParser__set_state(VCFRefObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.store = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_33__pyx_unpickle_VCFAltStringParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFAltStringParse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFAltObjectParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_35__pyx_unpickle_VCFAltObjectParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFAltObjectParse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFAltObjectParser__set_state(<VCFAltObjectParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFAltObjectParser__set_state(VCFAltObjectParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.is_snp_memory = __pyx_state[3]; __pyx_result.is_snp_values = __pyx_state[4]; __pyx_result.itemsize = __pyx_state[5]; __pyx_result.key = __pyx_state[6]; __pyx_result.numalt_memory = __pyx_state[7]; __pyx_result.numalt_values = __pyx_state[8]; __pyx_result.number = __pyx_state[9]; __pyx_result.store_alt = __pyx_state[10]; __pyx_result.store_is_snp = __pyx_state[11]; __pyx_result.store_numalt = __pyx_state[12]; __pyx_result.store_svlen = __pyx_state[13]; __pyx_result.svlen_memory = __pyx_state[14]; __pyx_result.svlen_values = __pyx_state[15]; __pyx_result.values = __pyx_state[16]
 *     if len(__pyx_state) > 17 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_37__pyx_unpickle_VCFQualParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFQualParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_39__pyx_unpickle_VCFInfoParserBase, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoParserBase, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoParserBase__set_state(<VCFInfoParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoParserBase__set_state(VCFInfoParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_41__pyx_unpickle_VCFInfoInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoInt8Parser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_43__pyx_unpickle_VCFInfoInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoInt16Parse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt16Parser__set_state(<VCFInfoInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt16Parser__set_state(VCFInfoInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_45__pyx_unpickle_VCFInfoInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoInt32Parse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_47__pyx_unpickle_VCFInfoInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoInt64Parse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoInt64Parser__set_state(<VCFInfoInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoInt64Parser__set_state(VCFInfoInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_49__pyx_unpickle_VCFInfoUInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoUInt8Parse, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt16Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_51__pyx_unpickle_VCFInfoUInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoUInt16Pars, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt16Parser__set_state(<VCFInfoUInt16Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt16Parser__set_state(VCFInfoUInt16Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_53__pyx_unpickle_VCFInfoUInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoUInt32Pars, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoUInt64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_55__pyx_unpickle_VCFInfoUInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoUInt64Pars, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoUInt64Parser__set_state(<VCFInfoUInt64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoUInt64Parser__set_state(VCFInfoUInt64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_57__pyx_unpickle_VCFInfoFloat32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoFloat32Par, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoFloat64Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_59__pyx_unpickle_VCFInfoFloat64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoFloat64Par, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoFloat64Parser__set_state(<VCFInfoFloat64Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoFloat64Parser__set_state(VCFInfoFloat64Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_61__pyx_unpickle_VCFInfoFlagParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoFlagParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_63__pyx_unpickle_VCFInfoStringParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoStringPars, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoStringParser__set_state(<VCFInfoStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoStringParser__set_state(VCFInfoStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_65__pyx_unpickle_VCFInfoObjectParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoObjectPars, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFInfoSkipParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_67__pyx_unpickle_VCFInfoSkipParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFInfoSkipParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFInfoSkipParser__set_state(<VCFInfoSkipParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFInfoSkipParser__set_state(VCFInfoSkipParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.number = __pyx_state[5]; __pyx_result.values = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_69__pyx_unpickle_VCFSkipAllCallDataParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFSkipAllCallDat, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataParserBase(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_71__pyx_unpickle_VCFCallDataParserBase, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataParser, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataParserBase__set_state(<VCFCallDataParserBase> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataParserBase__set_state(VCFCallDataParserBase __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.n_samples_out = __pyx_state[5]; __pyx_result.number = __pyx_state[6]; __pyx_result.values = __pyx_state[7]
 *     if len(__pyx_state) > 8 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_73__pyx_unpickle_VCFCallDataSkipParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataSkipPa, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_75__pyx_unpickle_VCFGenotypeInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeInt8Pa, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt8Parser__set_state(<VCFGenotypeInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt8Parser__set_state(VCFGenotypeInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_77__pyx_unpickle_VCFGenotypeInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeInt16P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_79__pyx_unpickle_VCFGenotypeInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeInt32P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeInt32Parser__set_state(<VCFGenotypeInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeInt32Parser__set_state(VCFGenotypeInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_81__pyx_unpickle_VCFGenotypeInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeInt64P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_83__pyx_unpickle_VCFGenotypeUInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt8P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(<VCFGenotypeUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt8Parser__set_state(VCFGenotypeUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_85__pyx_unpickle_VCFGenotypeUInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt16, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_87__pyx_unpickle_VCFGenotypeUInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt32, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(<VCFGenotypeUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeUInt32Parser__set_state(VCFGenotypeUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_89__pyx_unpickle_VCFGenotypeUInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeUInt64, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_91__pyx_unpickle_VCFGenotypeACInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt8, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(<VCFGenotypeACInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt8Parser__set_state(VCFGenotypeACInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_93__pyx_unpickle_VCFGenotypeACInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt1, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_95__pyx_unpickle_VCFGenotypeACInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt3, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(<VCFGenotypeACInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACInt32Parser__set_state(VCFGenotypeACInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_97__pyx_unpickle_VCFGenotypeACInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACInt6, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_99__pyx_unpickle_VCFGenotypeACUInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(<VCFGenotypeACUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt8Parser__set_state(VCFGenotypeACUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_101__pyx_unpickle_VCFGenotypeACUInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_2, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFGenotypeACUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_103__pyx_unpickle_VCFGenotypeACUInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_3, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(<VCFGenotypeACUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFGenotypeACUInt32Parser__set_state(VCFGenotypeACUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_105__pyx_unpickle_VCFGenotypeACUInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFGenotypeACUInt_4, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_107__pyx_unpickle_VCFCallDataInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataInt8Pa, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt8Parser__set_state(<VCFCallDataInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt8Parser__set_state(VCFCallDataInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_109__pyx_unpickle_VCFCallDataInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataInt16P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_111__pyx_unpickle_VCFCallDataInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataInt32P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataInt32Parser__set_state(<VCFCallDataInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataInt32Parser__set_state(VCFCallDataInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_113__pyx_unpickle_VCFCallDataInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataInt64P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt8Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_115__pyx_unpickle_VCFCallDataUInt8Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataUInt8P, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt8Parser__set_state(<VCFCallDataUInt8Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt8Parser__set_state(VCFCallDataUInt8Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_117__pyx_unpickle_VCFCallDataUInt16Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataUInt16, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataUInt32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_119__pyx_unpickle_VCFCallDataUInt32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataUInt32, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataUInt32Parser__set_state(<VCFCallDataUInt32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataUInt32Parser__set_state(VCFCallDataUInt32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_121__pyx_unpickle_VCFCallDataUInt64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataUInt64, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataFloat32Parser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_123__pyx_unpickle_VCFCallDataFloat32Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataFloat3, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataFloat32Parser__set_state(<VCFCallDataFloat32Parser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataFloat32Parser__set_state(VCFCallDataFloat32Parser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_125__pyx_unpickle_VCFCallDataFloat64Parser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataFloat6, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_VCFCallDataStringParser(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_127__pyx_unpickle_VCFCallDataStringParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataString, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_VCFCallDataStringParser__set_state(<VCFCallDataStringParser> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_VCFCallDataStringParser__set_state(VCFCallDataStringParser __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.chunk_length = __pyx_state[0]; __pyx_result.dtype = __pyx_state[1]; __pyx_result.fill = __pyx_state[2]; __pyx_result.itemsize = __pyx_state[3]; __pyx_result.key = __pyx_state[4]; __pyx_result.memory = __pyx_state[5]; __pyx_result.n_samples_out = __pyx_state[6]; __pyx_result.number = __pyx_state[7]; __pyx_result.values = __pyx_state[8]
 *     if len(__pyx_state) > 9 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_129__pyx_unpickle_VCFCallDataObjectParser, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_VCFCallDataObject, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_ANNTransformer(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_13variant_tools_11io_vcf_read_131__pyx_unpickle_ANNTransformer, NULL, __pyx_n_s_variant_tools_io_vcf_read); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_ANNTransformer, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "variant_tools/io_vcf_read.pyx":1
 * # cython: linetrace=False             # <<<<<<<<<<<<<<
 * # cython: profile=False
 * # cython: binding=False
 */
  __pyx_t_20 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_20) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "View.MemoryView":209
 *         info.obj = self
 * 
 *     __pyx_getbuffer = capsule(<void *> &__pyx_array_getbuffer, "getbuffer(obj, view, flags)")             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(array self):
 */
  __pyx_t_20 = __pyx_capsule_create(((void *)(&__pyx_array_getbuffer)), ((char *)"getbuffer(obj, view, flags)")); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem((PyObject *)__pyx_array_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_20) < 0) __PYX_ERR(1, 209, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  PyType_Modified(__pyx_array_type);

  /* "View.MemoryView":286
 *         return self.name
 * 
 * cdef generic = Enum("<strided and direct or indirect>")             # <<<<<<<<<<<<<<
 * cdef strided = Enum("<strided and direct>") # default
 * cdef indirect = Enum("<strided and indirect>")
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__190, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_XGOTREF(generic);
  __Pyx_DECREF_SET(generic, __pyx_t_20);
  __Pyx_GIVEREF(__pyx_t_20);
  __pyx_t_20 = 0;

  /* "View.MemoryView":287
 * 
 * cdef generic = Enum("<strided and direct or indirect>")
 * cdef strided = Enum("<strided and direct>") # default             # <<<<<<<<<<<<<<
 * cdef indirect = Enum("<strided and indirect>")
 * 
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__191, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_XGOTREF(strided);
  __Pyx_DECREF_SET(strided, __pyx_t_20);
  __Pyx_GIVEREF(__pyx_t_20);
  __pyx_t_20 = 0;

  /* "View.MemoryView":288
 * cdef generic = Enum("<strided and direct or indirect>")
 * cdef strided = Enum("<strided and direct>") # default
 * cdef indirect = Enum("<strided and indirect>")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__192, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_XGOTREF(indirect);
  __Pyx_DECREF_SET(indirect, __pyx_t_20);
  __Pyx_GIVEREF(__pyx_t_20);
  __pyx_t_20 = 0;

  /* "View.MemoryView":291
 * 
 * 
 * cdef contiguous = Enum("<contiguous and direct>")             # <<<<<<<<<<<<<<
 * cdef indirect_contiguous = Enum("<contiguous and indirect>")
 * 
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__193, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_XGOTREF(contiguous);
  __Pyx_DECREF_SET(contiguous, __pyx_t_20);
  __Pyx_GIVEREF(__pyx_t_20);
  __pyx_t_20 = 0;

  /* "View.MemoryView":292
 * 
 * cdef contiguous = Enum("<contiguous and direct>")
 * cdef indirect_contiguous = Enum("<contiguous and indirect>")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_20 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__194, NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_XGOTREF(indirect_contiguous);
  __Pyx_DECREF_SET(indirect_contiguous, __pyx_t_20);
  __Pyx_GIVEREF(__pyx_t_20);
  __pyx_t_20 = 0;

  /* "View.MemoryView":316
 * 
 * DEF THREAD_LOCKS_PREALLOCATED = 8
 * cdef int __pyx_memoryview_thread_locks_used = 0             # <<<<<<<<<<<<<<
 * cdef PyThread_type_lock[THREAD_LOCKS_PREALLOCATED] __pyx_memoryview_thread_locks = [
 *     PyThread_allocate_lock(),
 */
  __pyx_memoryview_thread_locks_used = 0;

  /* "View.MemoryView":317
 * DEF THREAD_LOCKS_PREALLOCATED = 8
 * cdef int __pyx_memoryview_thread_locks_used = 0
 * cdef PyThread_type_lock[THREAD_LOCKS_PREALLOCATED] __pyx_memoryview_thread_locks = [             # <<<<<<<<<<<<<<
 *     PyThread_allocate_lock(),
 *     PyThread_allocate_lock(),
 */
  __pyx_t_21[0] = PyThread_allocate_lock();
  __pyx_t_21[1] = PyThread_allocate_lock();
  __pyx_t_21[2] = PyThread_allocate_lock();
  __pyx_t_21[3] = PyThread_allocate_lock();
  __pyx_t_21[4] = PyThread_allocate_lock();
  __pyx_t_21[5] = PyThread_allocate_lock();
  __pyx_t_21[6] = PyThread_allocate_lock();
  __pyx_t_21[7] = PyThread_allocate_lock();
  memcpy(&(__pyx_memoryview_thread_locks[0]), __pyx_t_21, sizeof(__pyx_memoryview_thread_locks[0]) * (8));

  /* "View.MemoryView":545
 *         info.obj = self
 * 
 *     __pyx_getbuffer = capsule(<void *> &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_20 = __pyx_capsule_create(((void *)(&__pyx_memoryview_getbuffer)), ((char *)"getbuffer(obj, view, flags)")); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem((PyObject *)__pyx_memoryview_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_20) < 0) __PYX_ERR(1, 545, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  PyType_Modified(__pyx_memoryview_type);

  /* "View.MemoryView":991
 *         return self.from_object
 * 
 *     __pyx_getbuffer = capsule(<void *> &__pyx_memoryview_getbuffer, "getbuffer(obj, view, flags)")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_20 = __pyx_capsule_create(((void *)(&__pyx_memoryview_getbuffer)), ((char *)"getbuffer(obj, view, flags)")); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem((PyObject *)__pyx_memoryviewslice_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_20) < 0) __PYX_ERR(1, 991, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  PyType_Modified(__pyx_memoryviewslice_type);

  /* "(tree fragment)":1
 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_20 = PyCFunction_NewEx(&__pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum, NULL, __pyx_n_s_View_MemoryView); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Enum, __pyx_t_20) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_Enum__set_state(<Enum> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_Enum__set_state(Enum __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.name = __pyx_state[0]
 *     if len(__pyx_state) > 1 and hasattr(__pyx_result, '__dict__'):
 */

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_XDECREF(__pyx_t_18);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_XDECREF(__pyx_t_20);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init variant_tools.io_vcf_read", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_CLEAR(__pyx_m);
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init variant_tools.io_vcf_read");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyErrExceptionMatches */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    PyObject *exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
    if (unlikely(PyTuple_Check(err)))
        return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
}
#endif

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3
    if (likely(PyUnicode_Check(n)))
#else
    if (likely(PyString_Check(n)))
#endif
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* GetAttr3 */
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r = __Pyx_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
}

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    int flags = PyCFunction_GET_FLAGS(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
        return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL);
    } else {
        return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs);
    }
}
#endif

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif
#endif

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
    if (likely(PyCFunction_Check(func))) {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* PyObjectCallNoArg */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
#else
    if (likely(PyCFunction_Check(func)))
#endif
    {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
#ifdef _MSC_VER
    else state = (PyGILState_STATE)-1;
#endif
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* PyObjectCall2Args */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args, *result = NULL;
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyFunction_FastCall(function, args, 2);
    }
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyCFunction_FastCall(function, args, 2);
    }
    #endif
    args = PyTuple_New(2);
    if (unlikely(!args)) goto done;
    Py_INCREF(arg1);
    PyTuple_SET_ITEM(args, 0, arg1);
    Py_INCREF(arg2);
    PyTuple_SET_ITEM(args, 1, arg2);
    Py_INCREF(function);
    result = __Pyx_PyObject_Call(function, args, NULL);
    Py_DECREF(args);
    Py_DECREF(function);
done:
    return result;
}

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
#if CYTHON_FAST_THREAD_STATE
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject* exc_type = tstate->curexc_type;
    if (unlikely(exc_type)) {
        if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
            PyObject *exc_value, *exc_tb;
            exc_value = tstate->curexc_value;
            exc_tb = tstate->curexc_traceback;
            tstate->curexc_type = 0;
            tstate->curexc_value = 0;
            tstate->curexc_traceback = 0;
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#else
    if (unlikely(PyErr_Occurred())) {
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
            PyErr_Clear();
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#endif
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    } else {
        return __Pyx_IterFinish();
    }
    return 0;
}

/* BytesEquals */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
#if PY_MAJOR_VERSION < 3
    PyObject* owned_ref = NULL;
#endif
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
#if PY_MAJOR_VERSION < 3
    if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
        owned_ref = PyUnicode_FromObject(s2);
        if (unlikely(!owned_ref))
            return -1;
        s2 = owned_ref;
        s2_is_unicode = 1;
    } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
        owned_ref = PyUnicode_FromObject(s1);
        if (unlikely(!owned_ref))
            return -1;
        s1 = owned_ref;
        s1_is_unicode = 1;
    } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
        return __Pyx_PyBytes_Equals(s1, s2, equals);
    }
#endif
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length;
        int kind;
        void *data1, *data2;
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
        #if CYTHON_PEP393_ENABLED
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
        #else
            hash1 = ((PyUnicodeObject*)s1)->hash;
            hash2 = ((PyUnicodeObject*)s2)->hash;
        #endif
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            #if PY_MAJOR_VERSION < 3
            Py_XDECREF(owned_ref);
            #endif
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        #if PY_MAJOR_VERSION < 3
        Py_XDECREF(owned_ref);
        #endif
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_EQ);
return_ne:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_NE);
#endif
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* ArgTypeTest */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

/* MemviewSliceInit */
static int
__Pyx_init_memviewslice(struct __pyx_memoryview_obj *memview,
                        int ndim,
                        __Pyx_memviewslice *memviewslice,
                        int memview_is_new_reference)
{
    __Pyx_RefNannyDeclarations
    int i, retval=-1;
    Py_buffer *buf = &memview->view;
    __Pyx_RefNannySetupContext("init_memviewslice", 0);
    if (!buf) {
        PyErr_SetString(PyExc_ValueError,
            "buf is NULL.");
        goto fail;
    } else if (memviewslice->memview || memviewslice->data) {
        PyErr_SetString(PyExc_ValueError,
            "memviewslice is already initialized!");
        goto fail;
    }
    if (buf->strides) {
        for (i = 0; i < ndim; i++) {
            memviewslice->strides[i] = buf->strides[i];
        }
    } else {
        Py_ssize_t stride = buf->itemsize;
        for (i = ndim - 1; i >= 0; i--) {
            memviewslice->strides[i] = stride;
            stride *= buf->shape[i];
        }
    }
    for (i = 0; i < ndim; i++) {
        memviewslice->shape[i]   = buf->shape[i];
        if (buf->suboffsets) {
            memviewslice->suboffsets[i] = buf->suboffsets[i];
        } else {
            memviewslice->suboffsets[i] = -1;
        }
    }
    memviewslice->memview = memview;
    memviewslice->data = (char *)buf->buf;
    if (__pyx_add_acquisition_count(memview) == 0 && !memview_is_new_reference) {
        Py_INCREF(memview);
    }
    retval = 0;
    goto no_fail;
fail:
    memviewslice->memview = 0;
    memviewslice->data = 0;
    retval = -1;
no_fail:
    __Pyx_RefNannyFinishContext();
    return retval;
}
#ifndef Py_NO_RETURN
#define Py_NO_RETURN
#endif
static void __pyx_fatalerror(const char *fmt, ...) Py_NO_RETURN {
    va_list vargs;
    char msg[200];
#ifdef HAVE_STDARG_PROTOTYPES
    va_start(vargs, fmt);
#else
    va_start(vargs);
#endif
    vsnprintf(msg, 200, fmt, vargs);
    va_end(vargs);
    Py_FatalError(msg);
}
static CYTHON_INLINE int
__pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
                                   PyThread_type_lock lock)
{
    int result;
    PyThread_acquire_lock(lock, 1);
    result = (*acquisition_count)++;
    PyThread_release_lock(lock);
    return result;
}
static CYTHON_INLINE int
__pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
                                   PyThread_type_lock lock)
{
    int result;
    PyThread_acquire_lock(lock, 1);
    result = (*acquisition_count)--;
    PyThread_release_lock(lock);
    return result;
}
static CYTHON_INLINE void
__Pyx_INC_MEMVIEW(__Pyx_memviewslice *memslice, int have_gil, int lineno)
{
    int first_time;
    struct __pyx_memoryview_obj *memview = memslice->memview;
    if (!memview || (PyObject *) memview == Py_None)
        return;
    if (__pyx_get_slice_count(memview) < 0)
        __pyx_fatalerror("Acquisition count is %d (line %d)",
                         __pyx_get_slice_count(memview), lineno);
    first_time = __pyx_add_acquisition_count(memview) == 0;
    if (first_time) {
        if (have_gil) {
            Py_INCREF((PyObject *) memview);
        } else {
            PyGILState_STATE _gilstate = PyGILState_Ensure();
            Py_INCREF((PyObject *) memview);
            PyGILState_Release(_gilstate);
        }
    }
}
static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *memslice,
                                             int have_gil, int lineno) {
    int last_time;
    struct __pyx_memoryview_obj *memview = memslice->memview;
    if (!memview ) {
        return;
    } else if ((PyObject *) memview == Py_None) {
        memslice->memview = NULL;
        return;
    }
    if (__pyx_get_slice_count(memview) <= 0)
        __pyx_fatalerror("Acquisition count is %d (line %d)",
                         __pyx_get_slice_count(memview), lineno);
    last_time = __pyx_sub_acquisition_count(memview) == 1;
    memslice->data = NULL;
    if (last_time) {
        if (have_gil) {
            Py_CLEAR(memslice->memview);
        } else {
            PyGILState_STATE _gilstate = PyGILState_Ensure();
            Py_CLEAR(memslice->memview);
            PyGILState_Release(_gilstate);
        }
    } else {
        memslice->memview = NULL;
    }
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
    PyObject *runerr;
    Py_ssize_t key_value;
    PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
    if (unlikely(!(m && m->sq_item))) {
        PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
        return NULL;
    }
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
    PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
    if (likely(m && m->mp_subscript)) {
        return m->mp_subscript(obj, key);
    }
    return __Pyx_PyObject_GetIndex(obj, key);
}
#endif

/* SliceObject */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp;
#if PY_MAJOR_VERSION < 3
    PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
    if (likely(ms && ms->sq_slice)) {
        if (!has_cstart) {
            if (_py_start && (*_py_start != Py_None)) {
                cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
                if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstart = 0;
        }
        if (!has_cstop) {
            if (_py_stop && (*_py_stop != Py_None)) {
                cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
                if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstop = PY_SSIZE_T_MAX;
        }
        if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
            Py_ssize_t l = ms->sq_length(obj);
            if (likely(l >= 0)) {
                if (cstop < 0) {
                    cstop += l;
                    if (cstop < 0) cstop = 0;
                }
                if (cstart < 0) {
                    cstart += l;
                    if (cstart < 0) cstart = 0;
                }
            } else {
                if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                    goto bad;
                PyErr_Clear();
            }
        }
        return ms->sq_slice(obj, cstart, cstop);
    }
#endif
    mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_subscript))
#endif
    {
        PyObject* result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyInt_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyInt_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_subscript(obj, py_slice);
#else
        result = PyObject_GetItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    PyErr_Format(PyExc_TypeError,
        "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name);
bad:
    return NULL;
}

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
                 Py_TYPE(obj)->tp_name, type->tp_name);
    return 0;
}

/* SetItemInt */
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) {
    int r;
    if (!j) return -1;
    r = PyObject_SetItem(o, j, v);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list,
                                               CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o));
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) {
            PyObject* old = PyList_GET_ITEM(o, n);
            Py_INCREF(v);
            PyList_SET_ITEM(o, n, v);
            Py_DECREF(old);
            return 1;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_ass_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return -1;
                    PyErr_Clear();
                }
            }
            return m->sq_ass_item(o, i, v);
        }
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (is_list || (PySequence_Check(o) && !PyDict_Check(o)))
#else
    if (is_list || PySequence_Check(o))
#endif
    {
        return PySequence_SetItem(o, i, v);
    }
#endif
    return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v);
}

/* PyIntBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) {
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
            x = (long)((unsigned long)a + b);
            if (likely((x^a) >= 0 || (x^b) >= 0))
                return PyInt_FromLong(x);
            return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op1);
        if (likely(__Pyx_sst_abs(size) <= 1)) {
            a = likely(size) ? digits[0] : 0;
            if (size == -1) a = -a;
        } else {
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_add(op1, op2);
            }
        }
                x = a + b;
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla + llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
            double result;
            PyFPE_START_PROTECT("add", return NULL)
            result = ((double)a) + (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#endif

/* PyIntCompare */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) {
    if (op1 == op2) {
        Py_RETURN_TRUE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a == b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = Py_SIZE(op1);
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        if (intval == 0) {
            if (size == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (size >= 0)
                Py_RETURN_FALSE;
            intval = -intval;
            size = -size;
        } else {
            if (size <= 0)
                Py_RETURN_FALSE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
        if ((double)a == (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* UnpackUnboundCMethod */
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    target->method = method;
#if CYTHON_COMPILING_IN_CPYTHON
    #if PY_MAJOR_VERSION >= 3
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    #endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    }
#endif
    return 0;
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030600B1
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    if (likely(cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            #if PY_VERSION_HEX >= 0x030700A0
            return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, args, 2);
            #else
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, 2, NULL);
            #endif
        }
        #if PY_VERSION_HEX >= 0x030700A0
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, 2, NULL);
        #endif
    }
    return __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(3);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 1, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 2, arg2);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(3, self, arg1, arg2);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* dict_setdefault */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value,
                                                       CYTHON_UNUSED int is_safe_type) {
    PyObject* value;
#if PY_VERSION_HEX >= 0x030400A0
    if ((1)) {
        value = PyDict_SetDefault(d, key, default_value);
        if (unlikely(!value)) return NULL;
        Py_INCREF(value);
#else
    if (is_safe_type == 1 || (is_safe_type == -1 &&
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
            (PyUnicode_CheckExact(key) || PyString_CheckExact(key) || PyLong_CheckExact(key)))) {
        value = PyDict_GetItemWithError(d, key);
        if (unlikely(!value)) {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            if (unlikely(PyDict_SetItem(d, key, default_value) == -1))
                return NULL;
            value = default_value;
        }
        Py_INCREF(value);
#else
            (PyString_CheckExact(key) || PyUnicode_CheckExact(key) || PyInt_CheckExact(key) || PyLong_CheckExact(key)))) {
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            if (unlikely(PyDict_SetItem(d, key, default_value) == -1))
                return NULL;
            value = default_value;
        }
        Py_INCREF(value);
#endif
#endif
    } else {
        value = __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyDict_Type_setdefault, d, key, default_value);
    }
    return value;
}

/* CallUnboundCMethod1 */
    #if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    if (likely(cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return (*(cfunc->func))(self, arg);
        } else if (PY_VERSION_HEX >= 0x030600B1 && flag == METH_FASTCALL) {
            if (PY_VERSION_HEX >= 0x030700A0) {
                return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1);
            } else {
                return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
            }
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
        }
    }
    return __Pyx__CallUnboundCMethod1(cfunc, self, arg);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 1, arg);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(2, self, arg);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* dict_getitem_default */
    static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
    PyObject* value;
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (unlikely(PyErr_Occurred()))
            return NULL;
        value = default_value;
    }
    Py_INCREF(value);
    if ((1));
#else
    if (PyString_CheckExact(key) || PyUnicode_CheckExact(key) || PyInt_CheckExact(key)) {
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            value = default_value;
        }
        Py_INCREF(value);
    }
#endif
    else {
        if (default_value == Py_None)
            value = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyDict_Type_get, d, key);
        else
            value = __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyDict_Type_get, d, key, default_value);
    }
    return value;
}

/* PyObjectGetMethod */
    static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if PY_MAJOR_VERSION >= 3
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type)))
        #endif
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (descr != NULL) {
        *method = descr;
        return 0;
    }
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(name));
#endif
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}

/* PyObjectCallMethod0 */
    static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
}

/* RaiseNoneIterError */
    static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError */
    static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else if (PyTuple_GET_SIZE(t) < index) {
      __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t));
    } else {
      __Pyx_RaiseTooManyValuesError(index);
    }
}

/* UnpackTuple2 */
    static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_COMPILING_IN_PYPY
    value1 = PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_COMPILING_IN_PYPY
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = Py_TYPE(iter)->tp_iternext;
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
    static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_COMPILING_IN_PYPY
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#elif PY_MAJOR_VERSION >= 3
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_COMPILING_IN_PYPY
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_COMPILING_IN_PYPY
    if (source_is_dict) {
        PyObject *key, *value;
        if (unlikely(orig_length != PyDict_Size(iter_obj))) {
            PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
            return -1;
        }
        if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
            return 0;
        }
        if (pitem) {
            PyObject* tuple = PyTuple_New(2);
            if (unlikely(!tuple)) {
                return -1;
            }
            Py_INCREF(key);
            Py_INCREF(value);
            PyTuple_SET_ITEM(tuple, 0, key);
            PyTuple_SET_ITEM(tuple, 1, value);
            *pitem = tuple;
        } else {
            if (pkey) {
                Py_INCREF(key);
                *pkey = key;
            }
            if (pvalue) {
                Py_INCREF(value);
                *pvalue = value;
            }
        }
        return 1;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyList_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* MergeKeywords */
    static int __Pyx_MergeKeywords(PyObject *kwdict, PyObject *source_mapping) {
    PyObject *iter, *key = NULL, *value = NULL;
    int source_is_dict, result;
    Py_ssize_t orig_length, ppos = 0;
    iter = __Pyx_dict_iterator(source_mapping, 0, __pyx_n_s_items, &orig_length, &source_is_dict);
    if (unlikely(!iter)) {
        PyObject *args;
        if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
        PyErr_Clear();
        args = PyTuple_Pack(1, source_mapping);
        if (likely(args)) {
            PyObject *fallback = PyObject_Call((PyObject*)&PyDict_Type, args, NULL);
            Py_DECREF(args);
            if (likely(fallback)) {
                iter = __Pyx_dict_iterator(fallback, 1, __pyx_n_s_items, &orig_length, &source_is_dict);
                Py_DECREF(fallback);
            }
        }
        if (unlikely(!iter)) goto bad;
    }
    while (1) {
        result = __Pyx_dict_iter_next(iter, orig_length, &ppos, &key, &value, NULL, source_is_dict);
        if (unlikely(result < 0)) goto bad;
        if (!result) break;
        if (unlikely(PyDict_Contains(kwdict, key))) {
            __Pyx_RaiseDoubleKeywordsError("function", key);
            result = -1;
        } else {
            result = PyDict_SetItem(kwdict, key, value);
        }
        Py_DECREF(key);
        Py_DECREF(value);
        if (unlikely(result < 0)) goto bad;
    }
    Py_XDECREF(iter);
    return 0;
bad:
    Py_XDECREF(iter);
    return -1;
}

/* CallUnboundCMethod0 */
    static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_ASSUME_SAFE_MACROS
    args = PyTuple_New(1);
    if (unlikely(!args)) goto bad;
    Py_INCREF(self);
    PyTuple_SET_ITEM(args, 0, self);
#else
    args = PyTuple_Pack(1, self);
    if (unlikely(!args)) goto bad;
#endif
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    Py_DECREF(args);
bad:
    return result;
}

/* py_dict_keys */
    static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d) {
    if (PY_MAJOR_VERSION >= 3)
        return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_keys, d);
    else
        return PyDict_Keys(d);
}

/* DictGetItem */
    #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            if (unlikely(PyTuple_Check(key))) {
                PyObject* args = PyTuple_Pack(1, key);
                if (likely(args)) {
                    PyErr_SetObject(PyExc_KeyError, args);
                    Py_DECREF(args);
                }
            } else {
                PyErr_SetObject(PyExc_KeyError, key);
            }
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#endif

/* Import */
    static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if (strchr(__Pyx_MODULE_NAME, '.')) {
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* ImportFrom */
    static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* HasAttr */
    static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!__Pyx_PyBaseString_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_GetAttr(o, n);
    if (unlikely(!r)) {
        PyErr_Clear();
        return 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}

/* GetTopmostException */
    #if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
    #if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    #endif
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
#endif

/* GetException */
    #if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type, *local_value, *local_tb;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    #if PY_MAJOR_VERSION >= 3
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
    #endif
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
}

/* None */
    static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b) {
    Py_ssize_t q = a / b;
    Py_ssize_t r = a - q*b;
    q -= ((r != 0) & ((r ^ b) < 0));
    return q;
}

/* decode_c_string */
    static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    Py_ssize_t length;
    if (unlikely((start < 0) | (stop < 0))) {
        size_t slen = strlen(cstring);
        if (unlikely(slen > (size_t) PY_SSIZE_T_MAX)) {
            PyErr_SetString(PyExc_OverflowError,
                            "c-string too long to convert to Python");
            return NULL;
        }
        length = (Py_ssize_t) slen;
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    length = stop - start;
    if (unlikely(length <= 0))
        return PyUnicode_FromUnicode(NULL, 0);
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* SwapException */
    #if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
    #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* FastTypeChecks */
    #if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = a->tp_base;
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
    if (!res) {
        res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
    return res;
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* None */
    static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* None */
    static CYTHON_INLINE long __Pyx_div_long(long a, long b) {
    long q = a / b;
    long r = a - q*b;
    q -= ((r != 0) & ((r ^ b) < 0));
    return q;
}

/* CallNextTpTraverse */
    static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_traverse != current_tp_traverse)
        type = type->tp_base;
    while (type && type->tp_traverse == current_tp_traverse)
        type = type->tp_base;
    if (type && type->tp_traverse)
        return type->tp_traverse(obj, v, a);
    return 0;
}

/* CallNextTpClear */
    static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_clear != current_tp_clear)
        type = type->tp_base;
    while (type && type->tp_clear == current_tp_clear)
        type = type->tp_base;
    if (type && type->tp_clear)
        type->tp_clear(obj);
}

/* PyObject_GenericGetAttrNoDict */
    #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, attr_name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(attr_name));
#endif
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
    #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* SetVTable */
    static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* SetupReduce */
    static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name_2);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto GOOD;
#else
    if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto GOOD;
#endif
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_cython); if (unlikely(!reduce_cython)) goto BAD;
            ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto BAD;
            ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto BAD;
            setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate_cython); if (unlikely(!setstate_cython)) goto BAD;
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto BAD;
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto GOOD;
BAD:
    if (!PyErr_Occurred())
        PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
    ret = -1;
GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* TypeImport */
    #ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
    size_t size, enum __Pyx_ImportType_CheckSize check_size)
{
    PyObject *result = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if ((size_t)basicsize < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* CLineInTraceback */
    #ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
    static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
    #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

#if PY_MAJOR_VERSION < 3
static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) {
    if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags);
        if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags);
        if (__Pyx_TypeCheck(obj, __pyx_array_type)) return __pyx_array_getbuffer(obj, view, flags);
        if (__Pyx_TypeCheck(obj, __pyx_memoryview_type)) return __pyx_memoryview_getbuffer(obj, view, flags);
    PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
    return -1;
}
static void __Pyx_ReleaseBuffer(Py_buffer *view) {
    PyObject *obj = view->obj;
    if (!obj) return;
    if (PyObject_CheckBuffer(obj)) {
        PyBuffer_Release(view);
        return;
    }
    if ((0)) {}
        else if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view);
    view->obj = NULL;
    Py_DECREF(obj);
}
#endif


    /* MemviewSliceIsContig */
    static int
__pyx_memviewslice_is_contig(const __Pyx_memviewslice mvs, char order, int ndim)
{
    int i, index, step, start;
    Py_ssize_t itemsize = mvs.memview->view.itemsize;
    if (order == 'F') {
        step = 1;
        start = 0;
    } else {
        step = -1;
        start = ndim - 1;
    }
    for (i = 0; i < ndim; i++) {
        index = start + step * i;
        if (mvs.suboffsets[index] >= 0 || mvs.strides[index] != itemsize)
            return 0;
        itemsize *= mvs.shape[index];
    }
    return 1;
}

/* OverlappingSlices */
    static void
__pyx_get_array_memory_extents(__Pyx_memviewslice *slice,
                               void **out_start, void **out_end,
                               int ndim, size_t itemsize)
{
    char *start, *end;
    int i;
    start = end = slice->data;
    for (i = 0; i < ndim; i++) {
        Py_ssize_t stride = slice->strides[i];
        Py_ssize_t extent = slice->shape[i];
        if (extent == 0) {
            *out_start = *out_end = start;
            return;
        } else {
            if (stride > 0)
                end += stride * (extent - 1);
            else
                start += stride * (extent - 1);
        }
    }
    *out_start = start;
    *out_end = end + itemsize;
}
static int
__pyx_slices_overlap(__Pyx_memviewslice *slice1,
                     __Pyx_memviewslice *slice2,
                     int ndim, size_t itemsize)
{
    void *start1, *end1, *start2, *end2;
    __pyx_get_array_memory_extents(slice1, &start1, &end1, ndim, itemsize);
    __pyx_get_array_memory_extents(slice2, &start2, &end2, ndim, itemsize);
    return (start1 < end2) && (start2 < end1);
}

/* Capsule */
    static CYTHON_INLINE PyObject *
__pyx_capsule_create(void *p, CYTHON_UNUSED const char *sig)
{
    PyObject *cobj;
#if PY_VERSION_HEX >= 0x02070000
    cobj = PyCapsule_New(p, sig, NULL);
#else
    cobj = PyCObject_FromVoidPtr(p, NULL);
#endif
    return cobj;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_char(char value) {
    const char neg_one = (char) ((char) 0 - (char) 1), const_zero = (char) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(char) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(char) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(char) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(char) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(char) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(char),
                                     little, !is_unsigned);
    }
}

/* CIntFromPyVerify */
    #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint8(npy_uint8 value) {
    const npy_uint8 neg_one = (npy_uint8) ((npy_uint8) 0 - (npy_uint8) 1), const_zero = (npy_uint8) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_uint8) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_uint8) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint8) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_uint8) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint8) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_uint8),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
    static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint8_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_uint8(*(__pyx_t_5numpy_uint8_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint8_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_uint8_t value = __Pyx_PyInt_As_npy_uint8(obj);
    if ((value == ((npy_uint8)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_uint8_t *) itemp = value;
    return 1;
}

/* IsLittleEndian */
    static CYTHON_INLINE int __Pyx_Is_Little_Endian(void)
{
  union {
    uint32_t u32;
    uint8_t u8[4];
  } S;
  S.u32 = 0x01020304;
  return S.u8[0] == 4;
}

/* BufferFormatCheck */
    static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
                              __Pyx_BufFmt_StackElem* stack,
                              __Pyx_TypeInfo* type) {
  stack[0].field = &ctx->root;
  stack[0].parent_offset = 0;
  ctx->root.type = type;
  ctx->root.name = "buffer dtype";
  ctx->root.offset = 0;
  ctx->head = stack;
  ctx->head->field = &ctx->root;
  ctx->fmt_offset = 0;
  ctx->head->parent_offset = 0;
  ctx->new_packmode = '@';
  ctx->enc_packmode = '@';
  ctx->new_count = 1;
  ctx->enc_count = 0;
  ctx->enc_type = 0;
  ctx->is_complex = 0;
  ctx->is_valid_array = 0;
  ctx->struct_alignment = 0;
  while (type->typegroup == 'S') {
    ++ctx->head;
    ctx->head->field = type->fields;
    ctx->head->parent_offset = 0;
    type = type->fields->type;
  }
}
static int __Pyx_BufFmt_ParseNumber(const char** ts) {
    int count;
    const char* t = *ts;
    if (*t < '0' || *t > '9') {
      return -1;
    } else {
        count = *t++ - '0';
        while (*t >= '0' && *t < '9') {
            count *= 10;
            count += *t++ - '0';
        }
    }
    *ts = t;
    return count;
}
static int __Pyx_BufFmt_ExpectNumber(const char **ts) {
    int number = __Pyx_BufFmt_ParseNumber(ts);
    if (number == -1)
        PyErr_Format(PyExc_ValueError,\
                     "Does not understand character buffer dtype format string ('%c')", **ts);
    return number;
}
static void __Pyx_BufFmt_RaiseUnexpectedChar(char ch) {
  PyErr_Format(PyExc_ValueError,
               "Unexpected format string character: '%c'", ch);
}
static const char* __Pyx_BufFmt_DescribeTypeChar(char ch, int is_complex) {
  switch (ch) {
    case 'c': return "'char'";
    case 'b': return "'signed char'";
    case 'B': return "'unsigned char'";
    case 'h': return "'short'";
    case 'H': return "'unsigned short'";
    case 'i': return "'int'";
    case 'I': return "'unsigned int'";
    case 'l': return "'long'";
    case 'L': return "'unsigned long'";
    case 'q': return "'long long'";
    case 'Q': return "'unsigned long long'";
    case 'f': return (is_complex ? "'complex float'" : "'float'");
    case 'd': return (is_complex ? "'complex double'" : "'double'");
    case 'g': return (is_complex ? "'complex long double'" : "'long double'");
    case 'T': return "a struct";
    case 'O': return "Python object";
    case 'P': return "a pointer";
    case 's': case 'p': return "a string";
    case 0: return "end";
    default: return "unparseable format string";
  }
}
static size_t __Pyx_BufFmt_TypeCharToStandardSize(char ch, int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return 2;
    case 'i': case 'I': case 'l': case 'L': return 4;
    case 'q': case 'Q': return 8;
    case 'f': return (is_complex ? 8 : 4);
    case 'd': return (is_complex ? 16 : 8);
    case 'g': {
      PyErr_SetString(PyExc_ValueError, "Python does not define a standard format string size for long double ('g')..");
      return 0;
    }
    case 'O': case 'P': return sizeof(void*);
    default:
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
}
static size_t __Pyx_BufFmt_TypeCharToNativeSize(char ch, int is_complex) {
  switch (ch) {
    case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return sizeof(short);
    case 'i': case 'I': return sizeof(int);
    case 'l': case 'L': return sizeof(long);
    #ifdef HAVE_LONG_LONG
    case 'q': case 'Q': return sizeof(PY_LONG_LONG);
    #endif
    case 'f': return sizeof(float) * (is_complex ? 2 : 1);
    case 'd': return sizeof(double) * (is_complex ? 2 : 1);
    case 'g': return sizeof(long double) * (is_complex ? 2 : 1);
    case 'O': case 'P': return sizeof(void*);
    default: {
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
  }
}
typedef struct { char c; short x; } __Pyx_st_short;
typedef struct { char c; int x; } __Pyx_st_int;
typedef struct { char c; long x; } __Pyx_st_long;
typedef struct { char c; float x; } __Pyx_st_float;
typedef struct { char c; double x; } __Pyx_st_double;
typedef struct { char c; long double x; } __Pyx_st_longdouble;
typedef struct { char c; void *x; } __Pyx_st_void_p;
#ifdef HAVE_LONG_LONG
typedef struct { char c; PY_LONG_LONG x; } __Pyx_st_longlong;
#endif
static size_t __Pyx_BufFmt_TypeCharToAlignment(char ch, CYTHON_UNUSED int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return sizeof(__Pyx_st_short) - sizeof(short);
    case 'i': case 'I': return sizeof(__Pyx_st_int) - sizeof(int);
    case 'l': case 'L': return sizeof(__Pyx_st_long) - sizeof(long);
#ifdef HAVE_LONG_LONG
    case 'q': case 'Q': return sizeof(__Pyx_st_longlong) - sizeof(PY_LONG_LONG);
#endif
    case 'f': return sizeof(__Pyx_st_float) - sizeof(float);
    case 'd': return sizeof(__Pyx_st_double) - sizeof(double);
    case 'g': return sizeof(__Pyx_st_longdouble) - sizeof(long double);
    case 'P': case 'O': return sizeof(__Pyx_st_void_p) - sizeof(void*);
    default:
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
}
/* These are for computing the padding at the end of the struct to align
   on the first member of the struct. This will probably the same as above,
   but we don't have any guarantees.
 */
typedef struct { short x; char c; } __Pyx_pad_short;
typedef struct { int x; char c; } __Pyx_pad_int;
typedef struct { long x; char c; } __Pyx_pad_long;
typedef struct { float x; char c; } __Pyx_pad_float;
typedef struct { double x; char c; } __Pyx_pad_double;
typedef struct { long double x; char c; } __Pyx_pad_longdouble;
typedef struct { void *x; char c; } __Pyx_pad_void_p;
#ifdef HAVE_LONG_LONG
typedef struct { PY_LONG_LONG x; char c; } __Pyx_pad_longlong;
#endif
static size_t __Pyx_BufFmt_TypeCharToPadding(char ch, CYTHON_UNUSED int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return sizeof(__Pyx_pad_short) - sizeof(short);
    case 'i': case 'I': return sizeof(__Pyx_pad_int) - sizeof(int);
    case 'l': case 'L': return sizeof(__Pyx_pad_long) - sizeof(long);
#ifdef HAVE_LONG_LONG
    case 'q': case 'Q': return sizeof(__Pyx_pad_longlong) - sizeof(PY_LONG_LONG);
#endif
    case 'f': return sizeof(__Pyx_pad_float) - sizeof(float);
    case 'd': return sizeof(__Pyx_pad_double) - sizeof(double);
    case 'g': return sizeof(__Pyx_pad_longdouble) - sizeof(long double);
    case 'P': case 'O': return sizeof(__Pyx_pad_void_p) - sizeof(void*);
    default:
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
}
static char __Pyx_BufFmt_TypeCharToGroup(char ch, int is_complex) {
  switch (ch) {
    case 'c':
        return 'H';
    case 'b': case 'h': case 'i':
    case 'l': case 'q': case 's': case 'p':
        return 'I';
    case 'B': case 'H': case 'I': case 'L': case 'Q':
        return 'U';
    case 'f': case 'd': case 'g':
        return (is_complex ? 'C' : 'R');
    case 'O':
        return 'O';
    case 'P':
        return 'P';
    default: {
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
  }
}
static void __Pyx_BufFmt_RaiseExpected(__Pyx_BufFmt_Context* ctx) {
  if (ctx->head == NULL || ctx->head->field == &ctx->root) {
    const char* expected;
    const char* quote;
    if (ctx->head == NULL) {
      expected = "end";
      quote = "";
    } else {
      expected = ctx->head->field->type->name;
      quote = "'";
    }
    PyErr_Format(PyExc_ValueError,
                 "Buffer dtype mismatch, expected %s%s%s but got %s",
                 quote, expected, quote,
                 __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex));
  } else {
    __Pyx_StructField* field = ctx->head->field;
    __Pyx_StructField* parent = (ctx->head - 1)->field;
    PyErr_Format(PyExc_ValueError,
                 "Buffer dtype mismatch, expected '%s' but got %s in '%s.%s'",
                 field->type->name, __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex),
                 parent->type->name, field->name);
  }
}
static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
  char group;
  size_t size, offset, arraysize = 1;
  if (ctx->enc_type == 0) return 0;
  if (ctx->head->field->type->arraysize[0]) {
    int i, ndim = 0;
    if (ctx->enc_type == 's' || ctx->enc_type == 'p') {
        ctx->is_valid_array = ctx->head->field->type->ndim == 1;
        ndim = 1;
        if (ctx->enc_count != ctx->head->field->type->arraysize[0]) {
            PyErr_Format(PyExc_ValueError,
                         "Expected a dimension of size %zu, got %zu",
                         ctx->head->field->type->arraysize[0], ctx->enc_count);
            return -1;
        }
    }
    if (!ctx->is_valid_array) {
      PyErr_Format(PyExc_ValueError, "Expected %d dimensions, got %d",
                   ctx->head->field->type->ndim, ndim);
      return -1;
    }
    for (i = 0; i < ctx->head->field->type->ndim; i++) {
      arraysize *= ctx->head->field->type->arraysize[i];
    }
    ctx->is_valid_array = 0;
    ctx->enc_count = 1;
  }
  group = __Pyx_BufFmt_TypeCharToGroup(ctx->enc_type, ctx->is_complex);
  do {
    __Pyx_StructField* field = ctx->head->field;
    __Pyx_TypeInfo* type = field->type;
    if (ctx->enc_packmode == '@' || ctx->enc_packmode == '^') {
      size = __Pyx_BufFmt_TypeCharToNativeSize(ctx->enc_type, ctx->is_complex);
    } else {
      size = __Pyx_BufFmt_TypeCharToStandardSize(ctx->enc_type, ctx->is_complex);
    }
    if (ctx->enc_packmode == '@') {
      size_t align_at = __Pyx_BufFmt_TypeCharToAlignment(ctx->enc_type, ctx->is_complex);
      size_t align_mod_offset;
      if (align_at == 0) return -1;
      align_mod_offset = ctx->fmt_offset % align_at;
      if (align_mod_offset > 0) ctx->fmt_offset += align_at - align_mod_offset;
      if (ctx->struct_alignment == 0)
          ctx->struct_alignment = __Pyx_BufFmt_TypeCharToPadding(ctx->enc_type,
                                                                 ctx->is_complex);
    }
    if (type->size != size || type->typegroup != group) {
      if (type->typegroup == 'C' && type->fields != NULL) {
        size_t parent_offset = ctx->head->parent_offset + field->offset;
        ++ctx->head;
        ctx->head->field = type->fields;
        ctx->head->parent_offset = parent_offset;
        continue;
      }
      if ((type->typegroup == 'H' || group == 'H') && type->size == size) {
      } else {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return -1;
      }
    }
    offset = ctx->head->parent_offset + field->offset;
    if (ctx->fmt_offset != offset) {
      PyErr_Format(PyExc_ValueError,
                   "Buffer dtype mismatch; next field is at offset %" CYTHON_FORMAT_SSIZE_T "d but %" CYTHON_FORMAT_SSIZE_T "d expected",
                   (Py_ssize_t)ctx->fmt_offset, (Py_ssize_t)offset);
      return -1;
    }
    ctx->fmt_offset += size;
    if (arraysize)
      ctx->fmt_offset += (arraysize - 1) * size;
    --ctx->enc_count;
    while (1) {
      if (field == &ctx->root) {
        ctx->head = NULL;
        if (ctx->enc_count != 0) {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return -1;
        }
        break;
      }
      ctx->head->field = ++field;
      if (field->type == NULL) {
        --ctx->head;
        field = ctx->head->field;
        continue;
      } else if (field->type->typegroup == 'S') {
        size_t parent_offset = ctx->head->parent_offset + field->offset;
        if (field->type->fields->type == NULL) continue;
        field = field->type->fields;
        ++ctx->head;
        ctx->head->field = field;
        ctx->head->parent_offset = parent_offset;
        break;
      } else {
        break;
      }
    }
  } while (ctx->enc_count);
  ctx->enc_type = 0;
  ctx->is_complex = 0;
  return 0;
}
static PyObject *
__pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx, const char** tsp)
{
    const char *ts = *tsp;
    int i = 0, number;
    int ndim = ctx->head->field->type->ndim;
;
    ++ts;
    if (ctx->new_count != 1) {
        PyErr_SetString(PyExc_ValueError,
                        "Cannot handle repeated arrays in format string");
        return NULL;
    }
    if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
    while (*ts && *ts != ')') {
        switch (*ts) {
            case ' ': case '\f': case '\r': case '\n': case '\t': case '\v':  continue;
            default:  break;
        }
        number = __Pyx_BufFmt_ExpectNumber(&ts);
        if (number == -1) return NULL;
        if (i < ndim && (size_t) number != ctx->head->field->type->arraysize[i])
            return PyErr_Format(PyExc_ValueError,
                        "Expected a dimension of size %zu, got %d",
                        ctx->head->field->type->arraysize[i], number);
        if (*ts != ',' && *ts != ')')
            return PyErr_Format(PyExc_ValueError,
                                "Expected a comma in format string, got '%c'", *ts);
        if (*ts == ',') ts++;
        i++;
    }
    if (i != ndim)
        return PyErr_Format(PyExc_ValueError, "Expected %d dimension(s), got %d",
                            ctx->head->field->type->ndim, i);
    if (!*ts) {
        PyErr_SetString(PyExc_ValueError,
                        "Unexpected end of format string, expected ')'");
        return NULL;
    }
    ctx->is_valid_array = 1;
    ctx->new_count = 1;
    *tsp = ++ts;
    return Py_None;
}
static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts) {
  int got_Z = 0;
  while (1) {
    switch(*ts) {
      case 0:
        if (ctx->enc_type != 0 && ctx->head == NULL) {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return NULL;
        }
        if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
        if (ctx->head != NULL) {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return NULL;
        }
        return ts;
      case ' ':
      case '\r':
      case '\n':
        ++ts;
        break;
      case '<':
        if (!__Pyx_Is_Little_Endian()) {
          PyErr_SetString(PyExc_ValueError, "Little-endian buffer not supported on big-endian compiler");
          return NULL;
        }
        ctx->new_packmode = '=';
        ++ts;
        break;
      case '>':
      case '!':
        if (__Pyx_Is_Little_Endian()) {
          PyErr_SetString(PyExc_ValueError, "Big-endian buffer not supported on little-endian compiler");
          return NULL;
        }
        ctx->new_packmode = '=';
        ++ts;
        break;
      case '=':
      case '@':
      case '^':
        ctx->new_packmode = *ts++;
        break;
      case 'T':
        {
          const char* ts_after_sub;
          size_t i, struct_count = ctx->new_count;
          size_t struct_alignment = ctx->struct_alignment;
          ctx->new_count = 1;
          ++ts;
          if (*ts != '{') {
            PyErr_SetString(PyExc_ValueError, "Buffer acquisition: Expected '{' after 'T'");
            return NULL;
          }
          if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
          ctx->enc_type = 0;
          ctx->enc_count = 0;
          ctx->struct_alignment = 0;
          ++ts;
          ts_after_sub = ts;
          for (i = 0; i != struct_count; ++i) {
            ts_after_sub = __Pyx_BufFmt_CheckString(ctx, ts);
            if (!ts_after_sub) return NULL;
          }
          ts = ts_after_sub;
          if (struct_alignment) ctx->struct_alignment = struct_alignment;
        }
        break;
      case '}':
        {
          size_t alignment = ctx->struct_alignment;
          ++ts;
          if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
          ctx->enc_type = 0;
          if (alignment && ctx->fmt_offset % alignment) {
            ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment);
          }
        }
        return ts;
      case 'x':
        if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
        ctx->fmt_offset += ctx->new_count;
        ctx->new_count = 1;
        ctx->enc_count = 0;
        ctx->enc_type = 0;
        ctx->enc_packmode = ctx->new_packmode;
        ++ts;
        break;
      case 'Z':
        got_Z = 1;
        ++ts;
        if (*ts != 'f' && *ts != 'd' && *ts != 'g') {
          __Pyx_BufFmt_RaiseUnexpectedChar('Z');
          return NULL;
        }
        CYTHON_FALLTHROUGH;
      case 'c': case 'b': case 'B': case 'h': case 'H': case 'i': case 'I':
      case 'l': case 'L': case 'q': case 'Q':
      case 'f': case 'd': case 'g':
      case 'O': case 'p':
        if (ctx->enc_type == *ts && got_Z == ctx->is_complex &&
            ctx->enc_packmode == ctx->new_packmode) {
          ctx->enc_count += ctx->new_count;
          ctx->new_count = 1;
          got_Z = 0;
          ++ts;
          break;
        }
        CYTHON_FALLTHROUGH;
      case 's':
        if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
        ctx->enc_count = ctx->new_count;
        ctx->enc_packmode = ctx->new_packmode;
        ctx->enc_type = *ts;
        ctx->is_complex = got_Z;
        ++ts;
        ctx->new_count = 1;
        got_Z = 0;
        break;
      case ':':
        ++ts;
        while(*ts != ':') ++ts;
        ++ts;
        break;
      case '(':
        if (!__pyx_buffmt_parse_array(ctx, &ts)) return NULL;
        break;
      default:
        {
          int number = __Pyx_BufFmt_ExpectNumber(&ts);
          if (number == -1) return NULL;
          ctx->new_count = (size_t)number;
        }
    }
  }
}

/* TypeInfoCompare */
      static int
__pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b)
{
    int i;
    if (!a || !b)
        return 0;
    if (a == b)
        return 1;
    if (a->size != b->size || a->typegroup != b->typegroup ||
            a->is_unsigned != b->is_unsigned || a->ndim != b->ndim) {
        if (a->typegroup == 'H' || b->typegroup == 'H') {
            return a->size == b->size;
        } else {
            return 0;
        }
    }
    if (a->ndim) {
        for (i = 0; i < a->ndim; i++)
            if (a->arraysize[i] != b->arraysize[i])
                return 0;
    }
    if (a->typegroup == 'S') {
        if (a->flags != b->flags)
            return 0;
        if (a->fields || b->fields) {
            if (!(a->fields && b->fields))
                return 0;
            for (i = 0; a->fields[i].type && b->fields[i].type; i++) {
                __Pyx_StructField *field_a = a->fields + i;
                __Pyx_StructField *field_b = b->fields + i;
                if (field_a->offset != field_b->offset ||
                    !__pyx_typeinfo_cmp(field_a->type, field_b->type))
                    return 0;
            }
            return !a->fields[i].type && !b->fields[i].type;
        }
    }
    return 1;
}

/* MemviewSliceValidateAndInit */
      static int
__pyx_check_strides(Py_buffer *buf, int dim, int ndim, int spec)
{
    if (buf->shape[dim] <= 1)
        return 1;
    if (buf->strides) {
        if (spec & __Pyx_MEMVIEW_CONTIG) {
            if (spec & (__Pyx_MEMVIEW_PTR|__Pyx_MEMVIEW_FULL)) {
                if (buf->strides[dim] != sizeof(void *)) {
                    PyErr_Format(PyExc_ValueError,
                                 "Buffer is not indirectly contiguous "
                                 "in dimension %d.", dim);
                    goto fail;
                }
            } else if (buf->strides[dim] != buf->itemsize) {
                PyErr_SetString(PyExc_ValueError,
                                "Buffer and memoryview are not contiguous "
                                "in the same dimension.");
                goto fail;
            }
        }
        if (spec & __Pyx_MEMVIEW_FOLLOW) {
            Py_ssize_t stride = buf->strides[dim];
            if (stride < 0)
                stride = -stride;
            if (stride < buf->itemsize) {
                PyErr_SetString(PyExc_ValueError,
                                "Buffer and memoryview are not contiguous "
                                "in the same dimension.");
                goto fail;
            }
        }
    } else {
        if (spec & __Pyx_MEMVIEW_CONTIG && dim != ndim - 1) {
            PyErr_Format(PyExc_ValueError,
                         "C-contiguous buffer is not contiguous in "
                         "dimension %d", dim);
            goto fail;
        } else if (spec & (__Pyx_MEMVIEW_PTR)) {
            PyErr_Format(PyExc_ValueError,
                         "C-contiguous buffer is not indirect in "
                         "dimension %d", dim);
            goto fail;
        } else if (buf->suboffsets) {
            PyErr_SetString(PyExc_ValueError,
                            "Buffer exposes suboffsets but no strides");
            goto fail;
        }
    }
    return 1;
fail:
    return 0;
}
static int
__pyx_check_suboffsets(Py_buffer *buf, int dim, CYTHON_UNUSED int ndim, int spec)
{
    if (spec & __Pyx_MEMVIEW_DIRECT) {
        if (buf->suboffsets && buf->suboffsets[dim] >= 0) {
            PyErr_Format(PyExc_ValueError,
                         "Buffer not compatible with direct access "
                         "in dimension %d.", dim);
            goto fail;
        }
    }
    if (spec & __Pyx_MEMVIEW_PTR) {
        if (!buf->suboffsets || (buf->suboffsets && buf->suboffsets[dim] < 0)) {
            PyErr_Format(PyExc_ValueError,
                         "Buffer is not indirectly accessible "
                         "in dimension %d.", dim);
            goto fail;
        }
    }
    return 1;
fail:
    return 0;
}
static int
__pyx_verify_contig(Py_buffer *buf, int ndim, int c_or_f_flag)
{
    int i;
    if (c_or_f_flag & __Pyx_IS_F_CONTIG) {
        Py_ssize_t stride = 1;
        for (i = 0; i < ndim; i++) {
            if (stride * buf->itemsize != buf->strides[i] &&
                    buf->shape[i] > 1)
            {
                PyErr_SetString(PyExc_ValueError,
                    "Buffer not fortran contiguous.");
                goto fail;
            }
            stride = stride * buf->shape[i];
        }
    } else if (c_or_f_flag & __Pyx_IS_C_CONTIG) {
        Py_ssize_t stride = 1;
        for (i = ndim - 1; i >- 1; i--) {
            if (stride * buf->itemsize != buf->strides[i] &&
                    buf->shape[i] > 1) {
                PyErr_SetString(PyExc_ValueError,
                    "Buffer not C contiguous.");
                goto fail;
            }
            stride = stride * buf->shape[i];
        }
    }
    return 1;
fail:
    return 0;
}
static int __Pyx_ValidateAndInit_memviewslice(
                int *axes_specs,
                int c_or_f_flag,
                int buf_flags,
                int ndim,
                __Pyx_TypeInfo *dtype,
                __Pyx_BufFmt_StackElem stack[],
                __Pyx_memviewslice *memviewslice,
                PyObject *original_obj)
{
    struct __pyx_memoryview_obj *memview, *new_memview;
    __Pyx_RefNannyDeclarations
    Py_buffer *buf;
    int i, spec = 0, retval = -1;
    __Pyx_BufFmt_Context ctx;
    int from_memoryview = __pyx_memoryview_check(original_obj);
    __Pyx_RefNannySetupContext("ValidateAndInit_memviewslice", 0);
    if (from_memoryview && __pyx_typeinfo_cmp(dtype, ((struct __pyx_memoryview_obj *)
                                                            original_obj)->typeinfo)) {
        memview = (struct __pyx_memoryview_obj *) original_obj;
        new_memview = NULL;
    } else {
        memview = (struct __pyx_memoryview_obj *) __pyx_memoryview_new(
                                            original_obj, buf_flags, 0, dtype);
        new_memview = memview;
        if (unlikely(!memview))
            goto fail;
    }
    buf = &memview->view;
    if (buf->ndim != ndim) {
        PyErr_Format(PyExc_ValueError,
                "Buffer has wrong number of dimensions (expected %d, got %d)",
                ndim, buf->ndim);
        goto fail;
    }
    if (new_memview) {
        __Pyx_BufFmt_Init(&ctx, stack, dtype);
        if (!__Pyx_BufFmt_CheckString(&ctx, buf->format)) goto fail;
    }
    if ((unsigned) buf->itemsize != dtype->size) {
        PyErr_Format(PyExc_ValueError,
                     "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T "u byte%s) "
                     "does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T "u byte%s)",
                     buf->itemsize,
                     (buf->itemsize > 1) ? "s" : "",
                     dtype->name,
                     dtype->size,
                     (dtype->size > 1) ? "s" : "");
        goto fail;
    }
    for (i = 0; i < ndim; i++) {
        spec = axes_specs[i];
        if (!__pyx_check_strides(buf, i, ndim, spec))
            goto fail;
        if (!__pyx_check_suboffsets(buf, i, ndim, spec))
            goto fail;
    }
    if (buf->strides && !__pyx_verify_contig(buf, ndim, c_or_f_flag))
        goto fail;
    if (unlikely(__Pyx_init_memviewslice(memview, ndim, memviewslice,
                                         new_memview != NULL) == -1)) {
        goto fail;
    }
    retval = 0;
    goto no_fail;
fail:
    Py_XDECREF(new_memview);
    retval = -1;
no_fail:
    __Pyx_RefNannyFinishContext();
    return retval;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_uint8_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 1,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint8_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int32(npy_int32 value) {
    const npy_int32 neg_one = (npy_int32) ((npy_int32) 0 - (npy_int32) 1), const_zero = (npy_int32) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_int32) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_int32) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int32) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_int32) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int32) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_int32),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int32_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_int32(*(__pyx_t_5numpy_int32_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int32_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_int32_t value = __Pyx_PyInt_As_npy_int32(obj);
    if ((value == ((npy_int32)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_int32_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_int32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 1,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_float32_t(const char *itemp) {
    return (PyObject *) PyFloat_FromDouble(*(__pyx_t_5numpy_float32_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_float32_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_float32_t value = __pyx_PyFloat_AsFloat(obj);
    if ((value == ((npy_float32)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_float32_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_5numpy_float32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 1,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int8(npy_int8 value) {
    const npy_int8 neg_one = (npy_int8) ((npy_int8) 0 - (npy_int8) 1), const_zero = (npy_int8) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_int8) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_int8) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int8) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_int8) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int8) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_int8),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int8_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_int8(*(__pyx_t_5numpy_int8_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int8_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_int8_t value = __Pyx_PyInt_As_npy_int8(obj);
    if ((value == ((npy_int8)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_int8_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int8_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int8_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int16(npy_int16 value) {
    const npy_int16 neg_one = (npy_int16) ((npy_int16) 0 - (npy_int16) 1), const_zero = (npy_int16) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_int16) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_int16) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int16) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_int16) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int16) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_int16),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int16_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_int16(*(__pyx_t_5numpy_int16_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int16_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_int16_t value = __Pyx_PyInt_As_npy_int16(obj);
    if ((value == ((npy_int16)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_int16_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int16_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int16_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_int64(npy_int64 value) {
    const npy_int64 neg_one = (npy_int64) ((npy_int64) 0 - (npy_int64) 1), const_zero = (npy_int64) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_int64) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_int64) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int64) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_int64) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_int64) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_int64),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_int64_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_int64(*(__pyx_t_5numpy_int64_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_int64_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_int64_t value = __Pyx_PyInt_As_npy_int64(obj);
    if ((value == ((npy_int64)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_int64_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_int64_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint8_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint8_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint16(npy_uint16 value) {
    const npy_uint16 neg_one = (npy_uint16) ((npy_uint16) 0 - (npy_uint16) 1), const_zero = (npy_uint16) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_uint16) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_uint16) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint16) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_uint16) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint16) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_uint16),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint16_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_uint16(*(__pyx_t_5numpy_uint16_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint16_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_uint16_t value = __Pyx_PyInt_As_npy_uint16(obj);
    if ((value == ((npy_uint16)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_uint16_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint16_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint16_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint32(npy_uint32 value) {
    const npy_uint32 neg_one = (npy_uint32) ((npy_uint32) 0 - (npy_uint32) 1), const_zero = (npy_uint32) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_uint32) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_uint32) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint32) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_uint32) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint32) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_uint32),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint32_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_uint32(*(__pyx_t_5numpy_uint32_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint32_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_uint32_t value = __Pyx_PyInt_As_npy_uint32(obj);
    if ((value == ((npy_uint32)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_uint32_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_npy_uint64(npy_uint64 value) {
    const npy_uint64 neg_one = (npy_uint64) ((npy_uint64) 0 - (npy_uint64) 1), const_zero = (npy_uint64) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(npy_uint64) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(npy_uint64) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint64) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(npy_uint64) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(npy_uint64) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(npy_uint64),
                                     little, !is_unsigned);
    }
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_uint64_t(const char *itemp) {
    return (PyObject *) __Pyx_PyInt_From_npy_uint64(*(__pyx_t_5numpy_uint64_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_uint64_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_uint64_t value = __Pyx_PyInt_As_npy_uint64(obj);
    if ((value == ((npy_uint64)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_uint64_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_uint64_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint64_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* MemviewDtypeToObject */
      static CYTHON_INLINE PyObject *__pyx_memview_get_nn___pyx_t_5numpy_float64_t(const char *itemp) {
    return (PyObject *) PyFloat_FromDouble(*(__pyx_t_5numpy_float64_t *) itemp);
}
static CYTHON_INLINE int __pyx_memview_set_nn___pyx_t_5numpy_float64_t(const char *itemp, PyObject *obj) {
    __pyx_t_5numpy_float64_t value = __pyx_PyFloat_AsDouble(obj);
    if ((value == ((npy_float64)-1)) && PyErr_Occurred())
        return 0;
    *(__pyx_t_5numpy_float64_t *) itemp = value;
    return 1;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_nn___pyx_t_5numpy_float64_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 2,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int8_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int8_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int16_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int16_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_int64_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint8_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint8_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint16_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint16_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_uint64_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_uint64_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float32_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* ObjectToMemviewSlice */
      static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_nn___pyx_t_5numpy_float64_t(PyObject *obj, int writable_flag) {
    __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
    __Pyx_BufFmt_StackElem stack[1];
    int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
    int retcode;
    if (obj == Py_None) {
        result.memview = (struct __pyx_memoryview_obj *) Py_None;
        return result;
    }
    retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
                                                 PyBUF_RECORDS_RO | writable_flag, 3,
                                                 &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, stack,
                                                 &result, obj);
    if (unlikely(retcode == -1))
        goto __pyx_fail;
    return result;
__pyx_fail:
    result.memview = NULL;
    result.data = NULL;
    return result;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_13variant_tools_11io_vcf_read_ANNFidx(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx value) {
    const enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx neg_one = (enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) ((enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) 0 - (enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) 1), const_zero = (enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(enum __pyx_t_13variant_tools_11io_vcf_read_ANNFidx),
                                     little, !is_unsigned);
    }
}

/* Declarations */
      #if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return ::std::complex< float >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return x + y*(__pyx_t_float_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      __pyx_t_float_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
      #if CYTHON_CCOMPLEX
#else
    static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        if (b.imag == 0) {
            return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabsf(b.real) >= fabsf(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                float r = b.imag / b.real;
                float s = 1.0 / (b.real + b.imag * r);
                return __pyx_t_float_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            float r = b.real / b.imag;
            float s = 1.0 / (b.imag + b.real * r);
            return __pyx_t_float_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        if (b.imag == 0) {
            return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            float denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_float_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrtf(z.real*z.real + z.imag*z.imag);
          #else
            return hypotf(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
            __pyx_t_float_complex z;
            float r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    float denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(a, a);
                    case 3:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(z, a);
                    case 4:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if (b.imag == 0) {
                    z.real = powf(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2f(0, -1);
                }
            } else {
                r = __Pyx_c_abs_float(a);
                theta = atan2f(a.imag, a.real);
            }
            lnr = logf(r);
            z_r = expf(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cosf(z_theta);
            z.imag = z_r * sinf(z_theta);
            return z;
        }
    #endif
#endif

/* Declarations */
      #if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return ::std::complex< double >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return x + y*(__pyx_t_double_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      __pyx_t_double_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
      #if CYTHON_CCOMPLEX
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabs(b.real) >= fabs(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                double r = b.imag / b.real;
                double s = 1.0 / (b.real + b.imag * r);
                return __pyx_t_double_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            double r = b.real / b.imag;
            double s = 1.0 / (b.imag + b.real * r);
            return __pyx_t_double_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            double denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_double_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrt(z.real*z.real + z.imag*z.imag);
          #else
            return hypot(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
            __pyx_t_double_complex z;
            double r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    double denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(a, a);
                    case 3:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, a);
                    case 4:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if (b.imag == 0) {
                    z.real = pow(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2(0, -1);
                }
            } else {
                r = __Pyx_c_abs_double(a);
                theta = atan2(a.imag, a.real);
            }
            lnr = log(r);
            z_r = exp(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cos(z_theta);
            z.imag = z_r * sin(z_theta);
            return z;
        }
    #endif
#endif

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) {
    const enum NPY_TYPES neg_one = (enum NPY_TYPES) ((enum NPY_TYPES) 0 - (enum NPY_TYPES) 1), const_zero = (enum NPY_TYPES) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum NPY_TYPES) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum NPY_TYPES) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(enum NPY_TYPES) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(enum NPY_TYPES),
                                     little, !is_unsigned);
    }
}

/* MemviewSliceCopyTemplate */
      static __Pyx_memviewslice
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
                                 const char *mode, int ndim,
                                 size_t sizeof_dtype, int contig_flag,
                                 int dtype_is_object)
{
    __Pyx_RefNannyDeclarations
    int i;
    __Pyx_memviewslice new_mvs = { 0, 0, { 0 }, { 0 }, { 0 } };
    struct __pyx_memoryview_obj *from_memview = from_mvs->memview;
    Py_buffer *buf = &from_memview->view;
    PyObject *shape_tuple = NULL;
    PyObject *temp_int = NULL;
    struct __pyx_array_obj *array_obj = NULL;
    struct __pyx_memoryview_obj *memview_obj = NULL;
    __Pyx_RefNannySetupContext("__pyx_memoryview_copy_new_contig", 0);
    for (i = 0; i < ndim; i++) {
        if (from_mvs->suboffsets[i] >= 0) {
            PyErr_Format(PyExc_ValueError, "Cannot copy memoryview slice with "
                                           "indirect dimensions (axis %d)", i);
            goto fail;
        }
    }
    shape_tuple = PyTuple_New(ndim);
    if (unlikely(!shape_tuple)) {
        goto fail;
    }
    __Pyx_GOTREF(shape_tuple);
    for(i = 0; i < ndim; i++) {
        temp_int = PyInt_FromSsize_t(from_mvs->shape[i]);
        if(unlikely(!temp_int)) {
            goto fail;
        } else {
            PyTuple_SET_ITEM(shape_tuple, i, temp_int);
            temp_int = NULL;
        }
    }
    array_obj = __pyx_array_new(shape_tuple, sizeof_dtype, buf->format, (char *) mode, NULL);
    if (unlikely(!array_obj)) {
        goto fail;
    }
    __Pyx_GOTREF(array_obj);
    memview_obj = (struct __pyx_memoryview_obj *) __pyx_memoryview_new(
                                    (PyObject *) array_obj, contig_flag,
                                    dtype_is_object,
                                    from_mvs->memview->typeinfo);
    if (unlikely(!memview_obj))
        goto fail;
    if (unlikely(__Pyx_init_memviewslice(memview_obj, ndim, &new_mvs, 1) < 0))
        goto fail;
    if (unlikely(__pyx_memoryview_copy_contents(*from_mvs, new_mvs, ndim, ndim,
                                                dtype_is_object) < 0))
        goto fail;
    goto no_fail;
fail:
    __Pyx_XDECREF(new_mvs.memview);
    new_mvs.memview = NULL;
    new_mvs.data = NULL;
no_fail:
    __Pyx_XDECREF(shape_tuple);
    __Pyx_XDECREF(temp_int);
    __Pyx_XDECREF(array_obj);
    __Pyx_RefNannyFinishContext();
    return new_mvs;
}

/* CIntFromPy */
      static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *x) {
    const char neg_one = (char) ((char) 0 - (char) 1), const_zero = (char) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(char) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(char, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (char) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (char) 0;
                case  1: __PYX_VERIFY_RETURN_INT(char, digit, digits[0])
                case 2:
                    if (8 * sizeof(char) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) >= 2 * PyLong_SHIFT) {
                            return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(char) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) >= 3 * PyLong_SHIFT) {
                            return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(char) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) >= 4 * PyLong_SHIFT) {
                            return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (char) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(char) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(char) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (char) 0;
                case -1: __PYX_VERIFY_RETURN_INT(char, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(char,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(char) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) - 1 > 2 * PyLong_SHIFT) {
                            return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(char) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) - 1 > 2 * PyLong_SHIFT) {
                            return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(char) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) - 1 > 3 * PyLong_SHIFT) {
                            return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(char) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) - 1 > 3 * PyLong_SHIFT) {
                            return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(char) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) - 1 > 4 * PyLong_SHIFT) {
                            return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(char) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(char) - 1 > 4 * PyLong_SHIFT) {
                            return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(char) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(char) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            char val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (char) -1;
        }
    } else {
        char val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (char) -1;
        val = __Pyx_PyInt_As_char(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to char");
    return (char) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to char");
    return (char) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_uint8 __Pyx_PyInt_As_npy_uint8(PyObject *x) {
    const npy_uint8 neg_one = (npy_uint8) ((npy_uint8) 0 - (npy_uint8) 1), const_zero = (npy_uint8) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_uint8) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_uint8, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_uint8) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint8) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint8, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_uint8) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) >= 2 * PyLong_SHIFT) {
                            return (npy_uint8) (((((npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint8) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) >= 3 * PyLong_SHIFT) {
                            return (npy_uint8) (((((((npy_uint8)digits[2]) << PyLong_SHIFT) | (npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint8) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) >= 4 * PyLong_SHIFT) {
                            return (npy_uint8) (((((((((npy_uint8)digits[3]) << PyLong_SHIFT) | (npy_uint8)digits[2]) << PyLong_SHIFT) | (npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_uint8) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_uint8) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint8, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint8) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint8, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint8) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_uint8, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint8,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_uint8) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint8) (((npy_uint8)-1)*(((((npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_uint8) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint8) ((((((npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_uint8) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint8) (((npy_uint8)-1)*(((((((npy_uint8)digits[2]) << PyLong_SHIFT) | (npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint8) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint8) ((((((((npy_uint8)digits[2]) << PyLong_SHIFT) | (npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_uint8) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint8) (((npy_uint8)-1)*(((((((((npy_uint8)digits[3]) << PyLong_SHIFT) | (npy_uint8)digits[2]) << PyLong_SHIFT) | (npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint8) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint8, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint8) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint8) ((((((((((npy_uint8)digits[3]) << PyLong_SHIFT) | (npy_uint8)digits[2]) << PyLong_SHIFT) | (npy_uint8)digits[1]) << PyLong_SHIFT) | (npy_uint8)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_uint8) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint8, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint8) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint8, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_uint8 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_uint8) -1;
        }
    } else {
        npy_uint8 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_uint8) -1;
        val = __Pyx_PyInt_As_npy_uint8(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_uint8");
    return (npy_uint8) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_uint8");
    return (npy_uint8) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_int32 __Pyx_PyInt_As_npy_int32(PyObject *x) {
    const npy_int32 neg_one = (npy_int32) ((npy_int32) 0 - (npy_int32) 1), const_zero = (npy_int32) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_int32) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_int32, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_int32) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int32) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_int32, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_int32) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) >= 2 * PyLong_SHIFT) {
                            return (npy_int32) (((((npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int32) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) >= 3 * PyLong_SHIFT) {
                            return (npy_int32) (((((((npy_int32)digits[2]) << PyLong_SHIFT) | (npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int32) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) >= 4 * PyLong_SHIFT) {
                            return (npy_int32) (((((((((npy_int32)digits[3]) << PyLong_SHIFT) | (npy_int32)digits[2]) << PyLong_SHIFT) | (npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_int32) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_int32) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int32, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int32) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int32, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int32) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_int32, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_int32,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_int32) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int32) (((npy_int32)-1)*(((((npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_int32) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int32) ((((((npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_int32) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int32) (((npy_int32)-1)*(((((((npy_int32)digits[2]) << PyLong_SHIFT) | (npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int32) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int32) ((((((((npy_int32)digits[2]) << PyLong_SHIFT) | (npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_int32) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int32) (((npy_int32)-1)*(((((((((npy_int32)digits[3]) << PyLong_SHIFT) | (npy_int32)digits[2]) << PyLong_SHIFT) | (npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int32) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int32) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int32) ((((((((((npy_int32)digits[3]) << PyLong_SHIFT) | (npy_int32)digits[2]) << PyLong_SHIFT) | (npy_int32)digits[1]) << PyLong_SHIFT) | (npy_int32)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_int32) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int32, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int32) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int32, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_int32 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_int32) -1;
        }
    } else {
        npy_int32 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_int32) -1;
        val = __Pyx_PyInt_As_npy_int32(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_int32");
    return (npy_int32) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_int32");
    return (npy_int32) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_int8 __Pyx_PyInt_As_npy_int8(PyObject *x) {
    const npy_int8 neg_one = (npy_int8) ((npy_int8) 0 - (npy_int8) 1), const_zero = (npy_int8) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_int8) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_int8, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_int8) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int8) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_int8, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_int8) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) >= 2 * PyLong_SHIFT) {
                            return (npy_int8) (((((npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int8) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) >= 3 * PyLong_SHIFT) {
                            return (npy_int8) (((((((npy_int8)digits[2]) << PyLong_SHIFT) | (npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int8) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) >= 4 * PyLong_SHIFT) {
                            return (npy_int8) (((((((((npy_int8)digits[3]) << PyLong_SHIFT) | (npy_int8)digits[2]) << PyLong_SHIFT) | (npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_int8) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_int8) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int8, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int8) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int8, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int8) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_int8, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_int8,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_int8) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int8) (((npy_int8)-1)*(((((npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_int8) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int8) ((((((npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_int8) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int8) (((npy_int8)-1)*(((((((npy_int8)digits[2]) << PyLong_SHIFT) | (npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int8) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int8) ((((((((npy_int8)digits[2]) << PyLong_SHIFT) | (npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_int8) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int8) (((npy_int8)-1)*(((((((((npy_int8)digits[3]) << PyLong_SHIFT) | (npy_int8)digits[2]) << PyLong_SHIFT) | (npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int8) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int8, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int8) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int8) ((((((((((npy_int8)digits[3]) << PyLong_SHIFT) | (npy_int8)digits[2]) << PyLong_SHIFT) | (npy_int8)digits[1]) << PyLong_SHIFT) | (npy_int8)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_int8) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int8, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int8) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int8, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_int8 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_int8) -1;
        }
    } else {
        npy_int8 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_int8) -1;
        val = __Pyx_PyInt_As_npy_int8(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_int8");
    return (npy_int8) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_int8");
    return (npy_int8) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_int16 __Pyx_PyInt_As_npy_int16(PyObject *x) {
    const npy_int16 neg_one = (npy_int16) ((npy_int16) 0 - (npy_int16) 1), const_zero = (npy_int16) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_int16) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_int16, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_int16) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int16) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_int16, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_int16) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) >= 2 * PyLong_SHIFT) {
                            return (npy_int16) (((((npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int16) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) >= 3 * PyLong_SHIFT) {
                            return (npy_int16) (((((((npy_int16)digits[2]) << PyLong_SHIFT) | (npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int16) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) >= 4 * PyLong_SHIFT) {
                            return (npy_int16) (((((((((npy_int16)digits[3]) << PyLong_SHIFT) | (npy_int16)digits[2]) << PyLong_SHIFT) | (npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_int16) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_int16) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int16, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int16) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int16, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int16) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_int16, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_int16,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_int16) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int16) (((npy_int16)-1)*(((((npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_int16) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int16) ((((((npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_int16) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int16) (((npy_int16)-1)*(((((((npy_int16)digits[2]) << PyLong_SHIFT) | (npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int16) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int16) ((((((((npy_int16)digits[2]) << PyLong_SHIFT) | (npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_int16) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int16) (((npy_int16)-1)*(((((((((npy_int16)digits[3]) << PyLong_SHIFT) | (npy_int16)digits[2]) << PyLong_SHIFT) | (npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int16) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int16) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int16) ((((((((((npy_int16)digits[3]) << PyLong_SHIFT) | (npy_int16)digits[2]) << PyLong_SHIFT) | (npy_int16)digits[1]) << PyLong_SHIFT) | (npy_int16)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_int16) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int16, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int16) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int16, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_int16 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_int16) -1;
        }
    } else {
        npy_int16 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_int16) -1;
        val = __Pyx_PyInt_As_npy_int16(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_int16");
    return (npy_int16) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_int16");
    return (npy_int16) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_int64 __Pyx_PyInt_As_npy_int64(PyObject *x) {
    const npy_int64 neg_one = (npy_int64) ((npy_int64) 0 - (npy_int64) 1), const_zero = (npy_int64) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_int64) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_int64, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_int64) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int64) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_int64, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_int64) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) >= 2 * PyLong_SHIFT) {
                            return (npy_int64) (((((npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int64) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) >= 3 * PyLong_SHIFT) {
                            return (npy_int64) (((((((npy_int64)digits[2]) << PyLong_SHIFT) | (npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int64) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) >= 4 * PyLong_SHIFT) {
                            return (npy_int64) (((((((((npy_int64)digits[3]) << PyLong_SHIFT) | (npy_int64)digits[2]) << PyLong_SHIFT) | (npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_int64) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_int64) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int64, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int64) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int64, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_int64) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_int64, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_int64,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_int64) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int64) (((npy_int64)-1)*(((((npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_int64) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_int64) ((((((npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_int64) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int64) (((npy_int64)-1)*(((((((npy_int64)digits[2]) << PyLong_SHIFT) | (npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_int64) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_int64) ((((((((npy_int64)digits[2]) << PyLong_SHIFT) | (npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_int64) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int64) (((npy_int64)-1)*(((((((((npy_int64)digits[3]) << PyLong_SHIFT) | (npy_int64)digits[2]) << PyLong_SHIFT) | (npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_int64) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_int64, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_int64) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_int64) ((((((((((npy_int64)digits[3]) << PyLong_SHIFT) | (npy_int64)digits[2]) << PyLong_SHIFT) | (npy_int64)digits[1]) << PyLong_SHIFT) | (npy_int64)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_int64) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int64, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_int64) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_int64, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_int64 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_int64) -1;
        }
    } else {
        npy_int64 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_int64) -1;
        val = __Pyx_PyInt_As_npy_int64(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_int64");
    return (npy_int64) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_int64");
    return (npy_int64) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_uint16 __Pyx_PyInt_As_npy_uint16(PyObject *x) {
    const npy_uint16 neg_one = (npy_uint16) ((npy_uint16) 0 - (npy_uint16) 1), const_zero = (npy_uint16) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_uint16) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_uint16, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_uint16) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint16) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint16, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_uint16) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) >= 2 * PyLong_SHIFT) {
                            return (npy_uint16) (((((npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint16) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) >= 3 * PyLong_SHIFT) {
                            return (npy_uint16) (((((((npy_uint16)digits[2]) << PyLong_SHIFT) | (npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint16) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) >= 4 * PyLong_SHIFT) {
                            return (npy_uint16) (((((((((npy_uint16)digits[3]) << PyLong_SHIFT) | (npy_uint16)digits[2]) << PyLong_SHIFT) | (npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_uint16) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_uint16) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint16, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint16) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint16, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint16) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_uint16, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint16,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_uint16) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint16) (((npy_uint16)-1)*(((((npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_uint16) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint16) ((((((npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_uint16) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint16) (((npy_uint16)-1)*(((((((npy_uint16)digits[2]) << PyLong_SHIFT) | (npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint16) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint16) ((((((((npy_uint16)digits[2]) << PyLong_SHIFT) | (npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_uint16) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint16) (((npy_uint16)-1)*(((((((((npy_uint16)digits[3]) << PyLong_SHIFT) | (npy_uint16)digits[2]) << PyLong_SHIFT) | (npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint16) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint16, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint16) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint16) ((((((((((npy_uint16)digits[3]) << PyLong_SHIFT) | (npy_uint16)digits[2]) << PyLong_SHIFT) | (npy_uint16)digits[1]) << PyLong_SHIFT) | (npy_uint16)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_uint16) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint16, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint16) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint16, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_uint16 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_uint16) -1;
        }
    } else {
        npy_uint16 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_uint16) -1;
        val = __Pyx_PyInt_As_npy_uint16(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_uint16");
    return (npy_uint16) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_uint16");
    return (npy_uint16) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_uint32 __Pyx_PyInt_As_npy_uint32(PyObject *x) {
    const npy_uint32 neg_one = (npy_uint32) ((npy_uint32) 0 - (npy_uint32) 1), const_zero = (npy_uint32) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_uint32) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_uint32, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_uint32) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint32) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint32, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_uint32) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) >= 2 * PyLong_SHIFT) {
                            return (npy_uint32) (((((npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint32) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) >= 3 * PyLong_SHIFT) {
                            return (npy_uint32) (((((((npy_uint32)digits[2]) << PyLong_SHIFT) | (npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint32) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) >= 4 * PyLong_SHIFT) {
                            return (npy_uint32) (((((((((npy_uint32)digits[3]) << PyLong_SHIFT) | (npy_uint32)digits[2]) << PyLong_SHIFT) | (npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_uint32) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_uint32) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint32, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint32) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint32, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint32) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_uint32, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint32,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_uint32) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint32) (((npy_uint32)-1)*(((((npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_uint32) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint32) ((((((npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_uint32) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint32) (((npy_uint32)-1)*(((((((npy_uint32)digits[2]) << PyLong_SHIFT) | (npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint32) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint32) ((((((((npy_uint32)digits[2]) << PyLong_SHIFT) | (npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_uint32) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint32) (((npy_uint32)-1)*(((((((((npy_uint32)digits[3]) << PyLong_SHIFT) | (npy_uint32)digits[2]) << PyLong_SHIFT) | (npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint32) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint32, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint32) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint32) ((((((((((npy_uint32)digits[3]) << PyLong_SHIFT) | (npy_uint32)digits[2]) << PyLong_SHIFT) | (npy_uint32)digits[1]) << PyLong_SHIFT) | (npy_uint32)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_uint32) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint32, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint32) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint32, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_uint32 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_uint32) -1;
        }
    } else {
        npy_uint32 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_uint32) -1;
        val = __Pyx_PyInt_As_npy_uint32(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_uint32");
    return (npy_uint32) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_uint32");
    return (npy_uint32) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE npy_uint64 __Pyx_PyInt_As_npy_uint64(PyObject *x) {
    const npy_uint64 neg_one = (npy_uint64) ((npy_uint64) 0 - (npy_uint64) 1), const_zero = (npy_uint64) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(npy_uint64) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(npy_uint64, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (npy_uint64) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint64) 0;
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint64, digit, digits[0])
                case 2:
                    if (8 * sizeof(npy_uint64) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) >= 2 * PyLong_SHIFT) {
                            return (npy_uint64) (((((npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint64) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) >= 3 * PyLong_SHIFT) {
                            return (npy_uint64) (((((((npy_uint64)digits[2]) << PyLong_SHIFT) | (npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint64) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) >= 4 * PyLong_SHIFT) {
                            return (npy_uint64) (((((((((npy_uint64)digits[3]) << PyLong_SHIFT) | (npy_uint64)digits[2]) << PyLong_SHIFT) | (npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (npy_uint64) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(npy_uint64) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint64, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint64) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint64, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (npy_uint64) 0;
                case -1: __PYX_VERIFY_RETURN_INT(npy_uint64, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(npy_uint64,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(npy_uint64) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint64) (((npy_uint64)-1)*(((((npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(npy_uint64) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) - 1 > 2 * PyLong_SHIFT) {
                            return (npy_uint64) ((((((npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(npy_uint64) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint64) (((npy_uint64)-1)*(((((((npy_uint64)digits[2]) << PyLong_SHIFT) | (npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(npy_uint64) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) - 1 > 3 * PyLong_SHIFT) {
                            return (npy_uint64) ((((((((npy_uint64)digits[2]) << PyLong_SHIFT) | (npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(npy_uint64) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint64) (((npy_uint64)-1)*(((((((((npy_uint64)digits[3]) << PyLong_SHIFT) | (npy_uint64)digits[2]) << PyLong_SHIFT) | (npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(npy_uint64) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(npy_uint64, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(npy_uint64) - 1 > 4 * PyLong_SHIFT) {
                            return (npy_uint64) ((((((((((npy_uint64)digits[3]) << PyLong_SHIFT) | (npy_uint64)digits[2]) << PyLong_SHIFT) | (npy_uint64)digits[1]) << PyLong_SHIFT) | (npy_uint64)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(npy_uint64) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint64, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(npy_uint64) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(npy_uint64, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            npy_uint64 val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (npy_uint64) -1;
        }
    } else {
        npy_uint64 val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (npy_uint64) -1;
        val = __Pyx_PyInt_As_npy_uint64(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to npy_uint64");
    return (npy_uint64) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to npy_uint64");
    return (npy_uint64) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CheckBinaryVersion */
      static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* InitStrings */
      static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type %.200s).  "
                "The ability to return an instance of a strict subclass of int "
                "is deprecated, and may be removed in a future version of Python.",
                Py_TYPE(result)->tp_name)) {
            Py_DECREF(result);
            return NULL;
        }
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type %.200s)",
                 type_name, type_name, Py_TYPE(result)->tp_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
