#include "run-time.h"

/* Typedefs for referenced classes */

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D Pgf_cache_;
  D debug_name_;
  D generic_function_methods_;
  D discriminator_;
  D incremental_gf_module_;
  D incremental_gf_domain_info_;
  D incremental_gf_method_libraries_;
  D incremental_gf_properties_;
} _KLincremental_generic_functionGVKe;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
} _KLfunction_classGVKi;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
} _KLclassGVKd;

#define  define__KLmm_wrapperGVKi(nrepeated) \
  typedef struct { \
    D wrapper; \
    D mm_wrapper_implementation_class_; \
    D mm_wrapper_subtype_mask_; \
    DWORD mm_wrapper_fixed_part_; \
    DWORD mm_wrapper_variable_part_; \
    D mm_wrapper_number_patterns_; \
    DWORD mm_wrapper_pattern_element_[nrepeated+1]; \
  } _KLmm_wrapperGVKi_##nrepeated;
define__KLmm_wrapperGVKi(1);
define__KLmm_wrapperGVKi(0);

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D mep_;
} _KLsimple_methodGVKe;

typedef struct {
  D wrapper;
  D signature_properties_;
  D signature_required_;
  D signature_values_;
} _KLsignatureAvaluesGVKi;

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    D vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(9);
define__KLsimple_object_vectorGVKd(10);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(0);
define__KLsimple_object_vectorGVKd(16);

typedef struct {
  D wrapper;
} _KLintegerGVKd;

#define  define__KLstandalone_domainGVKe(nrepeated) \
  typedef struct { \
    D wrapper; \
    D domain_library_; \
    D domain_next_; \
    D domain_number_required_; \
    D domain_type_[nrepeated+1]; \
  } _KLstandalone_domainGVKe_##nrepeated;
define__KLstandalone_domainGVKe(1);

typedef struct {
  D wrapper;
  D namespace_name_;
  D library_major_version_;
  D library_minor_version_;
  D library_build_count_;
  D used_libraries_;
  D all_used_libraries_;
  D runtime_module_;
  D library_defined_generics_;
  D library_number_static_dispatches_;
  D library_number_dynamic_dispatches_;
} _KLlibraryGVKe;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D singleton_object_;
} _KLsingletonGVKd;

typedef struct {
  D wrapper;
  D class_properties_;
  D iclass_class_;
  D class_mm_wrapper_;
  D repeated_slot_descriptor_;
  D instance_slot_descriptors_;
  D iclass_dispatch_key_;
  D class_constructor_;
  D direct_superclasses_;
  D class_rcpl_vector_;
  D class_rcpl_position_;
  D class_rcpl_other_positions_;
  D class_known_joint_;
  D iclass_dependent_generics_;
  D iclass_subclass_dependent_generics_;
  D direct_subclasses_;
  D direct_methods_;
  D direct_slot_descriptors_;
  D slot_descriptors_;
  D direct_inherited_slot_descriptors_;
  D direct_initialization_argument_descriptors_;
  D class_slot_descriptors_;
  D defaulted_initialization_arguments_slot_;
  D class_slot_storage_;
} _KLimplementation_classGVKe;

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D mep_;
  D iep_;
  D keyword_specifiers_;
} _KLkeyword_methodGVKe;

typedef struct {
  D wrapper;
  D head_;
  D tail_;
} _KLempty_listGVKd;

typedef struct {
  D wrapper;
} _KLobject_with_elementsGVKe;

typedef struct {
  D wrapper;
} _KLmutable_object_with_elementsGVKe;

typedef struct {
  D wrapper;
} _KLc_valueGVKc;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
  D alignment_of_;
  D size_of_;
  D referenced_type_;
  D concrete_pointer_type_;
  D abstract_pointer_type_;
} _KLdesignator_classGVKc;

typedef struct {
  D wrapper;
} _KLc_non_structGVKi;

typedef struct {
  D wrapper;
  D raw_pointer_address_;
} _KLc_pointerGVKc;

typedef struct {
  D wrapper;
  D raw_pointer_address_;
} _KLc_voidTGVKc;

typedef struct {
  D wrapper;
  D raw_pointer_address_;
} _KLc_statically_typed_pointerGVKc;

typedef struct {
  D wrapper;
  D raw_pointer_address_;
} _KLc_pointer_to_pointerGVKc;

typedef struct {
  D wrapper;
  D slot_descriptor_properties_;
  D init_data_slot_;
  D slot_owner_;
  D init_keyword_;
  D slot_getter_;
  D slot_setter_;
  D slot_type_;
} _KLinstance_slot_descriptorGVKe;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
  D alignment_of_;
  D size_of_;
  D referenced_type_;
  D concrete_pointer_type_;
  D abstract_pointer_type_;
} _KLc_automatic_pointer_designator_classGVKi;

typedef struct {
  D wrapper;
  D namespace_name_;
  D home_library_;
} _KLmoduleGVKe;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(9);
define__KLbyte_stringGVKd(17);

typedef struct {
  D wrapper;
} _KLc_structGVKc;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
  D alignment_of_;
  D size_of_;
  D referenced_type_;
  D concrete_pointer_type_;
  D abstract_pointer_type_;
} _KLc_struct_designator_classGVKi;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D union_type1_;
  D union_type2_;
} _KLunionGVKe;

typedef struct {
  D wrapper;
  DWORD PPdouble_integer_low_;
  DWORD PPdouble_integer_high_;
} _KLdouble_integerGVKe;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
  D value_class_comparitor_;
} _KLvalue_classGVKi;


/* Typedefs for defined classes */

typedef struct {
  D wrapper;
} _KLpollfdGYunix_socketsVnetwork;

typedef struct {
  D wrapper;
  D raw_pointer_address_;
} _KLpollfdTGYunix_socketsVnetwork;

typedef struct {
  D wrapper;
  D raw_pointer_address_;
} _KLpollfdTG_pointerYunix_socketsVnetwork;


/* Referenced object declarations */

D KPadd_classVKeI (D);
D KPadd_nonsiblinged_domainVKnI (D, D);
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LintegerG_typesVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLclassGVKd KLstandalone_domainGVKe;
extern _KLmm_wrapperGVKi_0 KLstandalone_domainGVKeW;
extern _KLlibraryGVKe Knetwork_libraryYdylan_userVnetwork;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
D Ksingleton_pointer_idQ_instanceQVKiI (D, D);
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLclassGVKd KLobject_with_elementsGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_with_elementsGVKeW;
extern _KLclassGVKd KLmutable_object_with_elementsGVKe;
extern _KLmm_wrapperGVKi_0 KLmutable_object_with_elementsGVKeW;
extern _KLdesignator_classGVKc KLc_valueGVKc;
extern _KLclassGVKd KLdesignator_classGVKc;
extern _KLmm_wrapperGVKi_0 KLdesignator_classGVKcW;
extern _KLmm_wrapperGVKi_0 KLc_valueGVKcW;
extern _KLdesignator_classGVKc KLc_non_structGVKi;
extern _KLmm_wrapperGVKi_0 KLc_non_structGVKiW;
extern _KLdesignator_classGVKc KLc_pointerGVKc;
extern _KLmm_wrapperGVKi_1 KLc_pointerGVKcW;
extern _KLdesignator_classGVKc KLc_voidTGVKc;
extern _KLmm_wrapperGVKi_1 KLc_voidTGVKcW;
extern _KLdesignator_classGVKc KLc_statically_typed_pointerGVKc;
extern _KLmm_wrapperGVKi_1 KLc_statically_typed_pointerGVKcW;
extern _KLdesignator_classGVKc KLc_pointer_to_pointerGVKc;
extern _KLmm_wrapperGVKi_1 KLc_pointer_to_pointerGVKcW;
extern _KLinstance_slot_descriptorGVKe Kraw_pointer_addressVKcHLc_pointerG;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLclassGVKd KLc_automatic_pointer_designator_classGVKi;
extern _KLmm_wrapperGVKi_0 KLc_automatic_pointer_designator_classGVKiW;
D Kclass_instanceQ_rcpl_single_largeVKiI (D, D);
extern _KLmoduleGVKe Kunix_sockets_moduleYdylan_userVnetwork;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLdesignator_classGVKc KLc_structGVKc;
extern _KLmm_wrapperGVKi_0 KLc_structGVKcW;
extern _KLclassGVKd KLc_struct_designator_classGVKi;
extern _KLmm_wrapperGVKi_0 KLc_struct_designator_classGVKiW;
D Kclass_instanceQ_initialVKiI (D, D);
extern _KLunionGVKe KLffi_integerGYc_ffi_interfaceVc_ffi;
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
extern _KLvalue_classGVKi KLdouble_integerGVKe;
extern _KLclassGVKd KLvalue_classGVKi;
extern _KLmm_wrapperGVKi_0 KLvalue_classGVKiW;
extern _KLmm_wrapperGVKi_1 KLdouble_integerGVKeW;

/* Defined object declarations */

extern _KLc_struct_designator_classGVKi KLpollfdGYunix_socketsVnetwork;
extern _KLmm_wrapperGVKi_0 KLpollfdGYunix_socketsVnetworkW;
extern _KLc_automatic_pointer_designator_classGVKi KLpollfdTGYunix_socketsVnetwork;
extern _KLmm_wrapperGVKi_1 KLpollfdTGYunix_socketsVnetworkW;
extern _KLstandalone_domainGVKe_1 KmakeVKdRD_networkRD_2;
extern _KLc_automatic_pointer_designator_classGVKi KLpollfdTG_pointerYunix_socketsVnetwork;
extern _KLmm_wrapperGVKi_1 KLpollfdTG_pointerYunix_socketsVnetworkW;
extern _KLstandalone_domainGVKe_1 KmakeVKdRD_networkRD_1;
extern _KLsimple_methodGVKe Kpollfd_fd_setterYunix_socketsVnetworkMM0;
D Kpollfd_fd_setterYunix_socketsVnetworkMM0I (D, D);
D Kpollfd_events_setterYunix_socketsVnetworkMM0I (D, D);
D Kpollfd_revents_setterYunix_socketsVnetworkMM0I (D, D);
static _KLsignatureAvaluesGVKi K17;
static _KLsimple_object_vectorGVKd_2 K18;
static _KLsingletonGVKd K19;
static _KLimplementation_classGVKe K20;
static _KLsimple_object_vectorGVKd_1 K21;
static _KLsimple_object_vectorGVKd_1 K22;
static _KLsimple_object_vectorGVKd_10 K23;
static _KLbyte_stringGVKd_17 K24;
static _KLsingletonGVKd K25;
static _KLimplementation_classGVKe K26;
static _KLsimple_object_vectorGVKd_1 K27;
static _KLsimple_object_vectorGVKd_9 K28;
static _KLbyte_stringGVKd_9 K29;
static _KLimplementation_classGVKe K30;
static _KLsimple_object_vectorGVKd_1 K31;
static _KLsimple_object_vectorGVKd_6 K32;
static _KLbyte_stringGVKd_8 K33;
extern _KLsimple_methodGVKe Kpollfd_reventsYunix_socketsVnetworkMM0;
D Kpollfd_reventsYunix_socketsVnetworkMM0I (D);
static _KLdouble_integerGVKe K36;
static _KLsignatureAvaluesGVKi K37;
static _KLsimple_object_vectorGVKd_1 K38;
static _KLsimple_object_vectorGVKd_1 K39;
extern _KLsimple_methodGVKe Kpollfd_revents_setterYunix_socketsVnetworkMM0;
extern _KLsimple_methodGVKe Kpollfd_eventsYunix_socketsVnetworkMM0;
D Kpollfd_eventsYunix_socketsVnetworkMM0I (D);
static _KLdouble_integerGVKe K43;
extern _KLsimple_methodGVKe Kpollfd_events_setterYunix_socketsVnetworkMM0;
extern _KLsimple_methodGVKe Kpollfd_fdYunix_socketsVnetworkMM0;
D Kpollfd_fdYunix_socketsVnetworkMM0I (D);

/* Indirection variables */


/* Variables */

D pollfd_fd_setterYunix_socketsVnetwork = &Kpollfd_fd_setterYunix_socketsVnetworkMM0;
D pollfd_fdYunix_socketsVnetwork = &Kpollfd_fdYunix_socketsVnetworkMM0;
D pollfd_events_setterYunix_socketsVnetwork = &Kpollfd_events_setterYunix_socketsVnetworkMM0;
D pollfd_eventsYunix_socketsVnetwork = &Kpollfd_eventsYunix_socketsVnetworkMM0;
D pollfd_revents_setterYunix_socketsVnetwork = &Kpollfd_revents_setterYunix_socketsVnetworkMM0;
D pollfd_reventsYunix_socketsVnetwork = &Kpollfd_reventsYunix_socketsVnetworkMM0;
D LpollfdGYunix_socketsVnetwork = &KLpollfdGYunix_socketsVnetwork;
D LpollfdTGYunix_socketsVnetwork = &KLpollfdTGYunix_socketsVnetwork;
D LpollfdTG_pointerYunix_socketsVnetwork = &KLpollfdTG_pointerYunix_socketsVnetwork;
D DpollinYunix_socketsVnetwork = (D) 5;
D DpollpriYunix_socketsVnetwork = (D) 9;
D DpolloutYunix_socketsVnetwork = (D) 17;
D DpollerrYunix_socketsVnetwork = (D) 33;
D DpollhupYunix_socketsVnetwork = (D) 65;
D DpollnvalYunix_socketsVnetwork = (D) 129;

/* Objects */

_KLc_struct_designator_classGVKi KLpollfdGYunix_socketsVnetwork = {
  &KLc_struct_designator_classGVKiW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K33,
  &K30,
  (D) 1,
  &Kunix_sockets_moduleYdylan_userVnetwork,
  (D) 17,
  (D) 33,
  &KPfalseVKi,
  &KPfalseVKi,
  &KLpollfdTGYunix_socketsVnetwork
};

_KLmm_wrapperGVKi_0 KLpollfdGYunix_socketsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K30,
  (D) 1,
  1,
  33554439,
  (D) 1
};

_KLc_automatic_pointer_designator_classGVKi KLpollfdTGYunix_socketsVnetwork = {
  &KLc_automatic_pointer_designator_classGVKiW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_largeVKiI,
  &K29,
  &K26,
  (D) 1,
  &Kunix_sockets_moduleYdylan_userVnetwork,
  (D) 17,
  (D) 17,
  &KLpollfdGYunix_socketsVnetwork,
  &KPfalseVKi,
  &KLpollfdTG_pointerYunix_socketsVnetwork
};

_KLmm_wrapperGVKi_1 KLpollfdTGYunix_socketsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K26,
  (D) 1,
  6,
  33554439,
  (D) 5,
  0
};

_KLstandalone_domainGVKe_1 KmakeVKdRD_networkRD_2 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Knetwork_libraryYdylan_userVnetwork,
  &KPfalseVKi,
  (D) 5,
  &K25
};

_KLc_automatic_pointer_designator_classGVKi KLpollfdTG_pointerYunix_socketsVnetwork = {
  &KLc_automatic_pointer_designator_classGVKiW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_largeVKiI,
  &K24,
  &K20,
  (D) 1,
  &Kunix_sockets_moduleYdylan_userVnetwork,
  (D) 17,
  (D) 17,
  &KLpollfdTGYunix_socketsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi
};

_KLmm_wrapperGVKi_1 KLpollfdTG_pointerYunix_socketsVnetworkW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K20,
  (D) 1,
  6,
  33554439,
  (D) 5,
  0
};

_KLstandalone_domainGVKe_1 KmakeVKdRD_networkRD_1 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Knetwork_libraryYdylan_userVnetwork,
  &KPfalseVKi,
  (D) 5,
  &K19
};

_KLsimple_methodGVKe Kpollfd_fd_setterYunix_socketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K17,
  &Kpollfd_fd_setterYunix_socketsVnetworkMM0I
};

static _KLsignatureAvaluesGVKi K17 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555465,
  &K18,
  &KDsignature_LintegerG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K18 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 9,
  &KLintegerGVKd,
  &KLpollfdTGYunix_socketsVnetwork
};

static _KLsingletonGVKd K19 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLpollfdTG_pointerYunix_socketsVnetwork
};

static _KLimplementation_classGVKe K20 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 392691717,
  &KLpollfdTG_pointerYunix_socketsVnetwork,
  &KLpollfdTG_pointerYunix_socketsVnetworkW,
  &KPfalseVKi,
  &K21,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K22,
  &K23,
  (D) 37,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K21,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_1 K21 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &Kraw_pointer_addressVKcHLc_pointerG
};

static _KLsimple_object_vectorGVKd_1 K22 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLc_pointer_to_pointerGVKc
};

static _KLsimple_object_vectorGVKd_10 K23 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 41,
  &KLobjectGVKd,
  &KLobject_with_elementsGVKe,
  &KLmutable_object_with_elementsGVKe,
  &KLc_valueGVKc,
  &KLc_non_structGVKi,
  &KLc_pointerGVKc,
  &KLc_voidTGVKc,
  &KLc_statically_typed_pointerGVKc,
  &KLc_pointer_to_pointerGVKc,
  &KLpollfdTG_pointerYunix_socketsVnetwork
};

static _KLbyte_stringGVKd_17 K24 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 69,
  "<pollfd*>-pointer"
};

static _KLsingletonGVKd K25 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLpollfdTGYunix_socketsVnetwork
};

static _KLimplementation_classGVKe K26 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 392691717,
  &KLpollfdTGYunix_socketsVnetwork,
  &KLpollfdTGYunix_socketsVnetworkW,
  &KPfalseVKi,
  &K21,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K27,
  &K28,
  (D) 33,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K21,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_1 K27 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLc_statically_typed_pointerGVKc
};

static _KLsimple_object_vectorGVKd_9 K28 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 37,
  &KLobjectGVKd,
  &KLobject_with_elementsGVKe,
  &KLmutable_object_with_elementsGVKe,
  &KLc_valueGVKc,
  &KLc_non_structGVKi,
  &KLc_pointerGVKc,
  &KLc_voidTGVKc,
  &KLc_statically_typed_pointerGVKc,
  &KLpollfdTGYunix_socketsVnetwork
};

static _KLbyte_stringGVKd_9 K29 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 37,
  "<pollfd*>"
};

static _KLimplementation_classGVKe K30 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (D) 410255361,
  &KLpollfdGYunix_socketsVnetwork,
  &KLpollfdGYunix_socketsVnetworkW,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) -3,
  &Kdefault_class_constructorVKi,
  &K31,
  &K32,
  (D) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_1 K31 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLc_structGVKc
};

static _KLsimple_object_vectorGVKd_6 K32 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 25,
  &KLobjectGVKd,
  &KLc_valueGVKc,
  &KLc_structGVKc,
  &KLpollfdGYunix_socketsVnetwork,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLbyte_stringGVKd_8 K33 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 33,
  "<pollfd>"
};

_KLsimple_methodGVKe Kpollfd_reventsYunix_socketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K37,
  &Kpollfd_reventsYunix_socketsVnetworkMM0I
};

static _KLdouble_integerGVKe K36 = {
  &KLdouble_integerGVKeW /* wrapper */,
  0xFFFF0000L,
  0xFFFFFFF0L
};

static _KLsignatureAvaluesGVKi K37 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K38,
  &K39
};

static _KLsimple_object_vectorGVKd_1 K38 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLpollfdTGYunix_socketsVnetwork
};

static _KLsimple_object_vectorGVKd_1 K39 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLffi_integerGYc_ffi_interfaceVc_ffi
};

_KLsimple_methodGVKe Kpollfd_revents_setterYunix_socketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K17,
  &Kpollfd_revents_setterYunix_socketsVnetworkMM0I
};

_KLsimple_methodGVKe Kpollfd_eventsYunix_socketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K37,
  &Kpollfd_eventsYunix_socketsVnetworkMM0I
};

static _KLdouble_integerGVKe K43 = {
  &KLdouble_integerGVKeW /* wrapper */,
  0xFFFF0000L,
  0xFFFFFFF0L
};

_KLsimple_methodGVKe Kpollfd_events_setterYunix_socketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K17,
  &Kpollfd_events_setterYunix_socketsVnetworkMM0I
};

_KLsimple_methodGVKe Kpollfd_fdYunix_socketsVnetworkMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K37,
  &Kpollfd_fdYunix_socketsVnetworkMM0I
};

/* Code */

D Kpollfd_fd_setterYunix_socketsVnetworkMM0I (D new_value_, D struct_) {
  void* T3;
  D T4_0;
  DWORD T5;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:96
  T5 = primitive_unwrap_abstract_integer(new_value_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T3 = primitive_unwrap_c_pointer(struct_);
  primitive_c_signed_int_at_setter(T5,T3,0,0);
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T4_0 = new_value_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  MV_SET_COUNT(1);
  return(T4_0);
}

D Kpollfd_events_setterYunix_socketsVnetworkMM0I (D new_value_, D struct_) {
  void* T3;
  D T4_0;
  DWORD T5;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T5 = primitive_unwrap_abstract_integer(new_value_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T3 = primitive_unwrap_c_pointer(struct_);
  primitive_c_signed_short_at_setter(T5,T3,0,4);
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T4_0 = new_value_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  MV_SET_COUNT(1);
  return(T4_0);
}

D Kpollfd_revents_setterYunix_socketsVnetworkMM0I (D new_value_, D struct_) {
  void* T3;
  D T4_0;
  DWORD T5;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T5 = primitive_unwrap_abstract_integer(new_value_);
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T3 = primitive_unwrap_c_pointer(struct_);
  primitive_c_signed_short_at_setter(T5,T3,0,6);
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T4_0 = new_value_;
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  MV_SET_COUNT(1);
  return(T4_0);
}

D Kpollfd_reventsYunix_socketsVnetworkMM0I (D struct_) {
  void* T2;
  short T3;
  DWORD T4;
  DWORD T5;
  DWORD T6;
  D T7;
  DWORD T8;
  DWORD T9;
  DWORD T10;
  DWORD raw_result_;
  D T12_0;
  D T13;
  D T14_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T2 = primitive_unwrap_c_pointer(struct_);
  T3 = primitive_c_signed_short_at(T2,0,6);
  T4 = primitive_machine_word_shift_left_signal_overflow(T3,2);
  T5 = primitive_machine_word_logior(T4,1);
  T6 = primitive_machine_word_logand(T5,131073);
  T7 = primitive_machine_word_equalQ(T6,1);
  if (T7 != &KPfalseVKi) {
    T8 = primitive_machine_word_logand(T3,65535);
    raw_result_ = T8;
  } else {
    T9 = primitive_unwrap_abstract_integer(&K36);
    T10 = primitive_machine_word_logior(T3,T9);
    raw_result_ = T10;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T13 = primitive_wrap_abstract_integer(raw_result_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T14_0 = T13;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T12_0 = T14_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T14_0);
    primitive_type_check(T12_0, &KLffi_integerGYc_ffi_interfaceVc_ffi);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  MV_SET_COUNT(1);
  return(T12_0);
}

D Kpollfd_eventsYunix_socketsVnetworkMM0I (D struct_) {
  void* T2;
  short T3;
  DWORD T4;
  DWORD T5;
  DWORD T6;
  D T7;
  DWORD T8;
  DWORD T9;
  DWORD T10;
  DWORD raw_result_;
  D T12_0;
  D T13;
  D T14_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T2 = primitive_unwrap_c_pointer(struct_);
  T3 = primitive_c_signed_short_at(T2,0,4);
  T4 = primitive_machine_word_shift_left_signal_overflow(T3,2);
  T5 = primitive_machine_word_logior(T4,1);
  T6 = primitive_machine_word_logand(T5,131073);
  T7 = primitive_machine_word_equalQ(T6,1);
  if (T7 != &KPfalseVKi) {
    T8 = primitive_machine_word_logand(T3,65535);
    raw_result_ = T8;
  } else {
    T9 = primitive_unwrap_abstract_integer(&K43);
    T10 = primitive_machine_word_logior(T3,T9);
    raw_result_ = T10;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T13 = primitive_wrap_abstract_integer(raw_result_);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T14_0 = T13;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:100
  T12_0 = T14_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T14_0);
    primitive_type_check(T12_0, &KLffi_integerGYc_ffi_interfaceVc_ffi);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  MV_SET_COUNT(1);
  return(T12_0);
}

D Kpollfd_fdYunix_socketsVnetworkMM0I (D struct_) {
  void* T2;
  int T3;
  D T4_0;
  D T5;
  D T6_0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T2 = primitive_unwrap_c_pointer(struct_);
  T3 = primitive_c_signed_int_at(T2,0,0);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:96
  T5 = primitive_wrap_abstract_integer(T3);
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:96
  T6_0 = T5;
  // /Users/bruce/Development/dylan/opendylan/sources/lib/c-ffi/c-types.dylan:96
  T4_0 = T6_0;
  {
    MV_CHECK_TYPE_PROLOGUE(T6_0);
    primitive_type_check(T4_0, &KLffi_integerGYc_ffi_interfaceVc_ffi);
    MV_CHECK_TYPE_EPILOGUE();
  }
  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  MV_SET_COUNT(1);
  return(T4_0);
}


/* SYSTEM INIT CODE */

void _Init_network__X_8Epoll_for_system () {
  extern D KPresolve_symbolVKiI(D);
{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T0 = KPadd_classVKeI(&KLpollfdGYunix_socketsVnetwork);
  goto I0;
}
I0:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T0 = KPadd_classVKeI(&KLpollfdTGYunix_socketsVnetwork);
  goto I3;
}
I3:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T0 = KPadd_classVKeI(&KLpollfdTG_pointerYunix_socketsVnetwork);
  goto I8;
}
I8:

  return;
}

/* USER INIT CODE */

void _Init_network__X_8Epoll_for_user () {
{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T0 = KPadd_nonsiblinged_domainVKnI(&KmakeVKd, &KmakeVKdRD_networkRD_2);
  goto I7;
}
I7:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/network/unix-sockets/poll.dylan:3
  T0 = KPadd_nonsiblinged_domainVKnI(&KmakeVKd, &KmakeVKdRD_networkRD_1);
  goto I12;
}
I12:

  return;
}


/* eof */
