#include "opendylan/run-time.h"

/* Generated by Open Dylan 2014.1 for x86_64-linux */

/* Typedefs for referenced classes */

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

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

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

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

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

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value function_signature_;
  dylan_value Pgf_cache_;
  dylan_value debug_name_;
  dylan_value generic_function_methods_;
  dylan_value discriminator_;
} _KLsealed_generic_functionGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
} _KLobject_signatureGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value properties_;
  dylan_value engine_node_callback_;
  dylan_value engine_node_entry_point_;
} _KLabsent_engine_nodeGVKg;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(28);
define__KLbyte_stringGVKd(10);
define__KLbyte_stringGVKd(83);
define__KLbyte_stringGVKd(76);
define__KLbyte_stringGVKd(31);
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(15);
define__KLbyte_stringGVKd(12);
define__KLbyte_stringGVKd(19);
define__KLbyte_stringGVKd(16);
define__KLbyte_stringGVKd(21);
define__KLbyte_stringGVKd(17);
define__KLbyte_stringGVKd(24);
define__KLbyte_stringGVKd(22);
define__KLbyte_stringGVKd(4);
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(36);
define__KLbyte_stringGVKd(3);
define__KLbyte_stringGVKd(29);
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(9);
define__KLbyte_stringGVKd(7);
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(14);

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

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

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(5);
define__KLsimple_object_vectorGVKd(14);
define__KLsimple_object_vectorGVKd(7);
define__KLsimple_object_vectorGVKd(3);
define__KLsimple_object_vectorGVKd(10);
define__KLsimple_object_vectorGVKd(16);
define__KLsimple_object_vectorGVKd(256);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(1);
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(8);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(0);

typedef struct {
  dylan_value wrapper;
} _KLrealGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value symbol_name_;
} _KLsymbolGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value handler_type_;
  dylan_value handler_function_;
  dylan_value handler_test_;
  dylan_value handler_init_arguments_;
} _KLhandlerGVKi;

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value slot_descriptor_properties_;
  dylan_value init_data_slot_;
  dylan_value slot_owner_;
  dylan_value init_keyword_;
  dylan_value init_arg_type_;
} _KLinit_arg_descriptorGVKe;

typedef struct {
  dylan_value wrapper;
} _KLconditionGVKd;

typedef struct {
  dylan_value wrapper;
} _KLserious_conditionGVKd;

typedef struct {
  dylan_value wrapper;
} _KLerrorGVKd;

typedef struct {
  dylan_value wrapper;
} _KLintegerGVKd;

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

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_keys_;
  dylan_value signature_key_types_;
  dylan_value signature_values_;
} _KLkeyword_signatureAvaluesGVKi;

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

typedef struct {
  dylan_value wrapper;
  dylan_value head_;
  dylan_value tail_;
} _KLpairGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value method_slot_descriptor_;
} _KLgetter_methodGVKi;

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

typedef struct {
  dylan_value wrapper;
} _KLrestartGVKd;

#define  define__KLsimple_closure_methodGVKi(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value xep_; \
    dylan_value function_signature_; \
    dylan_value mep_; \
    dylan_value environment_size_; \
    dylan_value environment_element_[nrepeated+1]; \
  } _KLsimple_closure_methodGVKi_##nrepeated;
define__KLsimple_closure_methodGVKi(0);

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
} _KLsignatureGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value Puniversal_date_;
  dylan_value Puniversal_time_;
  dylan_value date_year_;
  dylan_value date_month_;
  dylan_value date_day_;
  dylan_value date_hours_;
  dylan_value date_minutes_;
  dylan_value date_seconds_;
  dylan_value date_microseconds_;
  dylan_value date_time_zone_offset_;
} _KLdateGYdateVsystem;

typedef struct {
  dylan_value wrapper;
} _KLnumberGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value xep_;
  dylan_value method_slot_descriptor_;
} _KLsetter_methodGVKi;

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_rest_value_;
} _KLsignatureArest_valueGVKi;

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

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

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

typedef struct {
  dylan_value wrapper;
  dylan_value signature_properties_;
  dylan_value signature_required_;
  dylan_value signature_keys_;
  dylan_value signature_key_types_;
} _KLkeyword_signatureGVKe;


/* Typedefs for defined classes */

typedef struct {
  dylan_value wrapper;
  dylan_value Pduration_months_;
  dylan_value Pduration_days_;
  dylan_value Pduration_seconds_;
  dylan_value Pduration_microseconds_;
} _KLdurationGYdateVsystem;

typedef struct {
  dylan_value wrapper;
  dylan_value dae_year_;
  dylan_value dae_month_;
  dylan_value dae_day_;
} _KLdate_arithmetic_errorGYdateVsystem;

typedef struct {
  dylan_value wrapper;
  dylan_value dae_year_;
  dylan_value dae_month_;
  dylan_value dae_day_;
} _KLdate_arithmetic_error_restartGYdateVsystem;

typedef struct {
  dylan_value wrapper;
  dylan_value dae_year_;
  dylan_value dae_month_;
  dylan_value dae_day_;
} _KLdate_arithmetic_use_last_valid_dayGYdateVsystem;

typedef struct {
  dylan_value wrapper;
  dylan_value dae_year_;
  dylan_value dae_month_;
  dylan_value dae_day_;
} _KLdate_arithmetic_invalid_dayGYdateVsystem;

typedef struct {
  dylan_value wrapper;
  dylan_value Pduration_months_;
  dylan_value Pduration_days_;
  dylan_value Pduration_seconds_;
  dylan_value Pduration_microseconds_;
} _KLdayStime_durationGYdateVsystem;

typedef struct {
  dylan_value wrapper;
  dylan_value Pduration_months_;
  dylan_value Pduration_days_;
  dylan_value Pduration_seconds_;
  dylan_value Pduration_microseconds_;
} _KLyearSmonth_durationGYdateVsystem;


/* Referenced object declarations */

dylan_value KPadd_classVKeI (dylan_value);
dylan_value KPadd_nonsiblinged_domainVKnI (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KEVKd;
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 _KLincremental_generic_functionGVKe KLVKd;
extern _KLincremental_generic_functionGVKe KAVKd;
extern _KLincremental_generic_functionGVKe K_VKd;
extern _KLincremental_generic_functionGVKe KTVKd;
extern _KLincremental_generic_functionGVKe KSVKd;
dylan_value KPadd_a_methodVKnI (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLlibraryGVKe Ksystem_libraryYdylan_userVsystem;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLsealed_generic_functionGVKe KroundSVKd;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_1VKi;
extern _KLclassGVKd KLobject_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLobject_signatureGVKeW;
extern _KLabsent_engine_nodeGVKg RSINGULAR_Labsent_engine_nodeG;
extern _KLclassGVKd KLabsent_engine_nodeGVKg;
extern _KLmm_wrapperGVKi_0 KLabsent_engine_nodeGVKgW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLrealGVKd;
extern _KLmm_wrapperGVKi_0 KLrealGVKdW;
extern _KLsealed_generic_functionGVKe KroundVKd;
dylan_value Kclone_dateYsystem_internalsVsystemI (dylan_value);
dylan_value Kdays_in_monthYsystem_internalsVsystemI (dylan_value, dylan_value);
extern _KLsymbolGVKd KJtype_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLsymbolGVKd KJfunction_;
extern _KLsymbolGVKd KJtest_;
extern _KLsymbolGVKd KJinit_arguments_;
dylan_value KLhandlerGZ32ZconstructorVKiMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLhandlerGVKi;
extern _KLmm_wrapperGVKi_0 KLhandlerGVKiW;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
dylan_value KsignalVKdMM0I (dylan_value, dylan_value);
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLclassGVKd KLimplementation_classGVKe;
extern _KLmm_wrapperGVKi_0 KLimplementation_classGVKeW;
extern _KLclassGVKd KLinit_arg_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinit_arg_descriptorGVKeW;
extern _KLclassGVKd KLconditionGVKd;
extern _KLmm_wrapperGVKi_0 KLconditionGVKdW;
extern _KLclassGVKd KLserious_conditionGVKd;
extern _KLmm_wrapperGVKi_0 KLserious_conditionGVKdW;
extern _KLclassGVKd KLerrorGVKd;
extern _KLmm_wrapperGVKi_0 KLerrorGVKdW;
dylan_value KerrorVKdMM1I (dylan_value, dylan_value);
extern _KLclassGVKd KLintegerGVKd;
extern _KLmm_wrapperGVKi_0 KLintegerGVKdW;
extern _KLincremental_generic_functionGVKe KinitializeVKd;
extern _KLfunction_classGVKi KLkeyword_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_methodGVKeW;
extern _KLclassGVKd KLkeyword_signatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_2 KDsignature_LclassG_typesVKi;
extern _KLsimple_object_vectorGVKd_256 KDsignature_LobjectG_typesVKi;
extern _KLclassGVKd KLinstance_slot_descriptorGVKe;
extern _KLmm_wrapperGVKi_0 KLinstance_slot_descriptorGVKeW;
extern _KLclassGVKd KLpairGVKd;
extern _KLclassGVKd KLgetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLgetter_methodGVKiW;
dylan_value Kclass_instanceQ_initialVKiI (dylan_value, dylan_value);
extern _KLmoduleGVKe Kdate_moduleYdylan_userVsystem;
extern _KLclassGVKd KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLrestartGVKd;
extern _KLmm_wrapperGVKi_0 KLrestartGVKdW;
extern _KLfunction_classGVKi KLsimple_closure_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsimple_closure_methodGVKiW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLdateGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdateGYdateVsystemW;
dylan_value Kdate_universal_dateYsystem_internalsVsystemMM0I (dylan_value);
dylan_value Kdate_universal_timeYsystem_internalsVsystemMM0I (dylan_value);
extern _KLclassGVKd KLnumberGVKd;
extern _KLmm_wrapperGVKi_0 KLnumberGVKdW;
extern _KLobject_signatureGVKe KDsignature_LobjectG_object_rest_value_2VKi;
extern _KLclassGVKd KLsetter_methodGVKi;
extern _KLmm_wrapperGVKi_0 KLsetter_methodGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern _KLclassGVKd KLsignatureArest_valueGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureArest_valueGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LintegerG_typesVKi;
extern _KLkeyword_methodGVKe Kdefault_class_constructorVKi;
dylan_value Kclass_instanceQ_rcpl_single_largeVKiI (dylan_value, dylan_value);
dylan_value Kgeneral_rcpl_class_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLunionGVKe;
extern _KLmm_wrapperGVKi_0 KLunionGVKeW;
dylan_value Kunion_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLsingletonGVKd;
extern _KLmm_wrapperGVKi_0 KLsingletonGVKdW;
dylan_value Ksingleton_pointer_idQ_instanceQVKiI (dylan_value, dylan_value);
extern _KLclassGVKd KLstandalone_domainGVKe;
extern _KLmm_wrapperGVKi_0 KLstandalone_domainGVKeW;
dylan_value Kclass_instanceQ_rcpl_single_smallVKiI (dylan_value, dylan_value);
extern _KLincremental_generic_functionGVKe Kreturn_descriptionVKd;
extern _KLincremental_generic_functionGVKe Kcondition_to_stringYcommon_extensionsVcommon_dylan;
extern _KLincremental_generic_functionGVKe Kreturn_allowedQVKd;
extern _KLclassGVKd KLkeyword_signatureGVKe;
extern _KLmm_wrapperGVKi_0 KLkeyword_signatureGVKeW;
dylan_value KelementVKdMM3I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsealed_generic_functionGVKe Kunsupplied_objectVKi;
dylan_value Kformat_to_stringYformatVioMM0I (dylan_value, dylan_value);
extern _KLsimple_object_vectorGVKd_2 KDsignature_LstringG_typesVKi;
extern dylan_value Tcurrent_handlersTVKi;
extern dylan_value Dmonth_namesYsystem_internalsVsystem;

/* Defined object declarations */

extern _KLclassGVKd KLdurationGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdurationGYdateVsystemW;
extern _KLstandalone_domainGVKe_2 KEVKdRD_systemRD_10;
extern _KLstandalone_domainGVKe_2 KLVKdRD_systemRD_2;
extern _KLstandalone_domainGVKe_2 KAVKdRD_systemRD_6;
extern _KLstandalone_domainGVKe_2 KAVKdRD_systemRD_5;
extern _KLstandalone_domainGVKe_2 KAVKdRD_systemRD_4;
extern _KLstandalone_domainGVKe_2 K_VKdRD_systemRD_6;
extern _KLstandalone_domainGVKe_2 K_VKdRD_systemRD_5;
extern _KLstandalone_domainGVKe_2 K_VKdRD_systemRD_4;
extern _KLstandalone_domainGVKe_2 KTVKdRD_systemRD_3;
extern _KLstandalone_domainGVKe_2 KTVKdRD_systemRD_2;
extern _KLstandalone_domainGVKe_2 KSVKdRD_systemRD_1;
extern _KLkeyword_methodGVKe KmakeVKdMsystemM1;
dylan_value KmakeVKdMsystemM1I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLclassGVKd KLdate_arithmetic_errorGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdate_arithmetic_errorGYdateVsystemW;
extern _KLclassGVKd KLdate_arithmetic_error_restartGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdate_arithmetic_error_restartGYdateVsystemW;
extern _KLsimple_methodGVKe KEVKdMsystemM1;
dylan_value KEVKdMsystemM1I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KAVKdMsystemM0;
dylan_value KAVKdMsystemM0I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KAVKdMsystemM1;
dylan_value KAVKdMsystemM1I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe K_VKdMsystemM0;
dylan_value K_VKdMsystemM0I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe K_VKdMsystemM1;
dylan_value K_VKdMsystemM1I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KTVKdMsystemM0;
dylan_value KTVKdMsystemM0I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KTVKdMsystemM1;
dylan_value KTVKdMsystemM1I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KSVKdMsystemM0;
dylan_value KSVKdMsystemM0I (dylan_value, dylan_value);
extern _KLsealed_generic_functionGVKe Kclone_durationYsystem_internalsVsystem;
static _KLbyte_stringGVKd_14 K59;
static _KLsignatureAvaluesGVKi K60;
static _KLsimple_object_vectorGVKd_2 K61;
static _KLsimple_object_vectorGVKd_1 K62;
static _KLsignatureAvaluesGVKi K63;
static _KLsimple_object_vectorGVKd_2 K64;
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF114;
static dylan_value KUhandler_functionUF114I (dylan_value, dylan_value);
static _KLsymbolGVKd KJyear_;
static _KLsymbolGVKd KJmonth_;
extern _KLclassGVKd KLdate_arithmetic_use_last_valid_dayGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdate_arithmetic_use_last_valid_dayGYdateVsystemW;
static _KLsymbolGVKd KJday_;
extern _KLclassGVKd KLdate_arithmetic_invalid_dayGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdate_arithmetic_invalid_dayGYdateVsystemW;
static _KLimplementation_classGVKe K74;
static _KLsimple_object_vectorGVKd_3 K75;
extern _KLkeyword_methodGVKe KLdate_arithmetic_invalid_dayGZ32ZconstructorYsystem_internalsVsystemMM0;
dylan_value KLdate_arithmetic_invalid_dayGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K78;
static _KLsimple_object_vectorGVKd_6 K79;
static _KLsimple_object_vectorGVKd_1 K80;
static _KLinit_arg_descriptorGVKe KdayHLdate_arithmetic_invalid_dayGYdateVsystem;
static _KLbyte_stringGVKd_23 K82;
static _KLkeyword_signatureAvaluesGVKi K83;
static _KLsimple_object_vectorGVKd_6 K84;
static _KLsimple_object_vectorGVKd_3 K85;
static _KLsimple_object_vectorGVKd_1 K86;
extern _KLinstance_slot_descriptorGVKe Kdae_yearYsystem_internalsVsystemHLdate_arithmetic_errorG;
extern _KLinstance_slot_descriptorGVKe Kdae_monthYsystem_internalsVsystemHLdate_arithmetic_errorG;
extern _KLinstance_slot_descriptorGVKe Kdae_dayYsystem_internalsVsystemHLdate_arithmetic_errorG;
extern _KLsealed_generic_functionGVKe Kdae_dayYsystem_internalsVsystem;
extern _KLgetter_methodGVKi Kdae_dayYsystem_internalsVsystemMM0;
static _KLpairGVKd K92;
static _KLbyte_stringGVKd_7 K93;
extern _KLsealed_generic_functionGVKe Kdae_monthYsystem_internalsVsystem;
extern _KLgetter_methodGVKi Kdae_monthYsystem_internalsVsystemMM0;
static _KLpairGVKd K96;
static _KLbyte_stringGVKd_9 K97;
extern _KLsealed_generic_functionGVKe Kdae_yearYsystem_internalsVsystem;
extern _KLgetter_methodGVKi Kdae_yearYsystem_internalsVsystemMM0;
static _KLpairGVKd K100;
static _KLbyte_stringGVKd_8 K101;
static _KLbyte_stringGVKd_29 K102;
static _KLbyte_stringGVKd_3 K103;
static _KLimplementation_classGVKe K104;
extern _KLkeyword_methodGVKe KLdate_arithmetic_use_last_valid_dayGZ32ZconstructorYsystem_internalsVsystemMM0;
dylan_value KLdate_arithmetic_use_last_valid_dayGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_1 K107;
static _KLsimple_object_vectorGVKd_8 K108;
static _KLkeyword_signatureAvaluesGVKi K109;
static _KLsimple_object_vectorGVKd_1 K110;
static _KLbyte_stringGVKd_36 K111;
static _KLbyte_stringGVKd_5 K112;
static _KLbyte_stringGVKd_4 K113;
static _KLsignatureGVKe K115;
static _KLsimple_object_vectorGVKd_2 K116;
static _KLsignatureAvaluesGVKi K117;
static _KLsimple_object_vectorGVKd_2 K118;
static _KLsimple_object_vectorGVKd_1 K119;
static _KLsymbolGVKd KJdays_;
static _KLsymbolGVKd KJseconds_;
static _KLsymbolGVKd KJmicroseconds_;
extern _KLclassGVKd KLdayStime_durationGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLdayStime_durationGYdateVsystemW;
static _KLimplementation_classGVKe K125;
static _KLsimple_object_vectorGVKd_4 K126;
extern _KLkeyword_methodGVKe KLdayStime_durationGZ32ZconstructorYsystem_internalsVsystemMM0;
dylan_value KLdayStime_durationGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_6 K129;
static _KLkeyword_signatureAvaluesGVKi K130;
static _KLsimple_object_vectorGVKd_1 K131;
extern _KLinstance_slot_descriptorGVKe KPduration_monthsYsystem_internalsVsystemHLdurationG;
extern _KLinstance_slot_descriptorGVKe KPduration_daysYsystem_internalsVsystemHLdurationG;
extern _KLinstance_slot_descriptorGVKe KPduration_secondsYsystem_internalsVsystemHLdurationG;
extern _KLinstance_slot_descriptorGVKe KPduration_microsecondsYsystem_internalsVsystemHLdurationG;
extern _KLsealed_generic_functionGVKe KPduration_microsecondsYsystem_internalsVsystem;
extern _KLsealed_generic_functionGVKe KPduration_microseconds_setterYsystem_internalsVsystem;
extern _KLsetter_methodGVKi KPduration_microseconds_setterYsystem_internalsVsystemMM0;
static _KLpairGVKd K139;
static _KLbyte_stringGVKd_29 K140;
extern _KLgetter_methodGVKi KPduration_microsecondsYsystem_internalsVsystemMM0;
static _KLpairGVKd K142;
static _KLbyte_stringGVKd_22 K143;
extern _KLsealed_generic_functionGVKe KPduration_secondsYsystem_internalsVsystem;
extern _KLsealed_generic_functionGVKe KPduration_seconds_setterYsystem_internalsVsystem;
extern _KLsetter_methodGVKi KPduration_seconds_setterYsystem_internalsVsystemMM0;
static _KLpairGVKd K147;
static _KLbyte_stringGVKd_24 K148;
extern _KLgetter_methodGVKi KPduration_secondsYsystem_internalsVsystemMM0;
static _KLpairGVKd K150;
static _KLbyte_stringGVKd_17 K151;
extern _KLsealed_generic_functionGVKe KPduration_daysYsystem_internalsVsystem;
extern _KLsealed_generic_functionGVKe KPduration_days_setterYsystem_internalsVsystem;
extern _KLsetter_methodGVKi KPduration_days_setterYsystem_internalsVsystemMM0;
static _KLpairGVKd K155;
static _KLbyte_stringGVKd_21 K156;
extern _KLgetter_methodGVKi KPduration_daysYsystem_internalsVsystemMM0;
static _KLpairGVKd K158;
static _KLbyte_stringGVKd_14 K159;
extern _KLsealed_generic_functionGVKe KPduration_monthsYsystem_internalsVsystem;
extern _KLsealed_generic_functionGVKe KPduration_months_setterYsystem_internalsVsystem;
extern _KLsetter_methodGVKi KPduration_months_setterYsystem_internalsVsystemMM0;
static _KLpairGVKd K163;
static _KLbyte_stringGVKd_23 K164;
extern _KLgetter_methodGVKi KPduration_monthsYsystem_internalsVsystemMM0;
static _KLpairGVKd K166;
static _KLbyte_stringGVKd_16 K167;
static _KLbyte_stringGVKd_19 K168;
static _KLbyte_stringGVKd_12 K169;
static _KLbyte_stringGVKd_7 K170;
static _KLbyte_stringGVKd_4 K171;
static _KLsignatureAvaluesGVKi K172;
static _KLsimple_object_vectorGVKd_2 K173;
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF176;
static dylan_value KUhandler_functionUF176I (dylan_value, dylan_value);
static _KLsignatureAvaluesGVKi K177;
static _KLsimple_object_vectorGVKd_2 K178;
static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF181;
static dylan_value KUhandler_functionUF181I (dylan_value, dylan_value);
static _KLsignatureAvaluesGVKi K182;
static _KLsimple_object_vectorGVKd_2 K183;
extern _KLsealed_generic_functionGVKe Kdecode_durationYdateVsystem;
extern _KLsimple_methodGVKe Kdecode_durationYdateVsystemMM0;
dylan_value Kdecode_durationYdateVsystemMM0I (dylan_value);
extern _KLsimple_methodGVKe Kdecode_durationYdateVsystemMM1;
dylan_value Kdecode_durationYdateVsystemMM1I (dylan_value);
static _KLpairGVKd K189;
static _KLpairGVKd K190;
static _KLsignatureArest_valueGVKi K191;
static _KLbyte_stringGVKd_15 K192;
static _KLsignatureAvaluesGVKi K193;
static _KLsignatureAvaluesGVKi K194;
static _KLsimple_object_vectorGVKd_1 K195;
extern _KLclassGVKd KLyearSmonth_durationGYdateVsystem;
extern _KLmm_wrapperGVKi_0 KLyearSmonth_durationGYdateVsystemW;
static _KLimplementation_classGVKe K198;
extern _KLkeyword_methodGVKe KLyearSmonth_durationGZ32ZconstructorYsystem_internalsVsystemMM0;
dylan_value KLyearSmonth_durationGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value, dylan_value);
static _KLsimple_object_vectorGVKd_6 K201;
static _KLkeyword_signatureAvaluesGVKi K202;
static _KLbyte_stringGVKd_21 K203;
extern _KLsimple_methodGVKe Kencode_dayStime_durationYdateVsystem;
dylan_value Kencode_dayStime_durationYdateVsystemI (dylan_value days_, dylan_value hours_, dylan_value minutes_, dylan_value seconds_, dylan_value microseconds_);
static _KLsymbolGVKd KJhours_;
static _KLsymbolGVKd KJminutes_;
static _KLbyte_stringGVKd_7 K208;
static _KLbyte_stringGVKd_5 K209;
static _KLsignatureAvaluesGVKi K210;
extern _KLsimple_methodGVKe Kencode_yearSmonth_durationYdateVsystem;
dylan_value Kencode_yearSmonth_durationYdateVsystemI (dylan_value years_, dylan_value months_);
static _KLsymbolGVKd KJyears_;
static _KLsymbolGVKd KJmonths_;
static _KLbyte_stringGVKd_6 K215;
static _KLbyte_stringGVKd_5 K216;
static _KLsignatureAvaluesGVKi K217;
static _KLimplementation_classGVKe K218;
static _KLsimple_object_vectorGVKd_2 K219;
static _KLsimple_object_vectorGVKd_7 K220;
static _KLbyte_stringGVKd_31 K221;
static _KLimplementation_classGVKe K222;
static _KLsimple_object_vectorGVKd_1 K223;
static _KLsimple_object_vectorGVKd_6 K224;
static _KLsimple_object_vectorGVKd_1 K225;
static _KLsimple_object_vectorGVKd_1 K226;
static _KLbyte_stringGVKd_23 K227;
static _KLunionGVKe K228;
static _KLbyte_stringGVKd_76 K229;
static _KLbyte_stringGVKd_83 K230;
static _KLsingletonGVKd K231;
static _KLkeyword_signatureAvaluesGVKi K232;
static _KLsimple_object_vectorGVKd_14 K233;
static _KLsimple_object_vectorGVKd_1 K234;
static _KLsimple_object_vectorGVKd_7 K235;
static _KLsimple_object_vectorGVKd_7 K236;
static _KLsingletonGVKd K237;
static _KLimplementation_classGVKe K238;
static _KLsimple_object_vectorGVKd_1 K239;
static _KLsimple_object_vectorGVKd_6 K240;
static _KLbyte_stringGVKd_10 K241;
extern _KLsimple_methodGVKe K_VKdMsystemM3;
dylan_value K_VKdMsystemM3I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe K_VKdMsystemM2;
dylan_value K_VKdMsystemM2I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KAVKdMsystemM3;
dylan_value KAVKdMsystemM3I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KAVKdMsystemM2;
dylan_value KAVKdMsystemM2I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KLVKdMsystemM2;
dylan_value KLVKdMsystemM2I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe KLVKdMsystemM1;
dylan_value KLVKdMsystemM1I (dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kreturn_descriptionVKdMsystemM0;
dylan_value Kreturn_descriptionVKdMsystemM0I (dylan_value);
extern _KLsimple_methodGVKe Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM1;
dylan_value Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM1I (dylan_value);
extern _KLsimple_methodGVKe Kreturn_allowedQVKdMsystemM0;
dylan_value Kreturn_allowedQVKdMsystemM0I (dylan_value);
extern _KLsimple_methodGVKe Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM0;
dylan_value Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM0I (dylan_value);
extern _KLkeyword_methodGVKe KinitializeVKdMsystemM2;
dylan_value KinitializeVKdMsystemM2I (dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLkeyword_methodGVKe KinitializeVKdMsystemM1;
dylan_value KinitializeVKdMsystemM1I (dylan_value, dylan_value, dylan_value, dylan_value);
extern _KLsimple_methodGVKe Kclone_durationYsystem_internalsVsystemMM0;
dylan_value Kclone_durationYsystem_internalsVsystemMM0I (dylan_value duration_);
extern _KLsimple_methodGVKe Kclone_durationYsystem_internalsVsystemMM1;
dylan_value Kclone_durationYsystem_internalsVsystemMM1I (dylan_value duration_);
static _KLpairGVKd K282;
static _KLpairGVKd K283;
static _KLsignatureAvaluesGVKi K284;
static _KLsignatureAvaluesGVKi K285;
static _KLkeyword_signatureGVKe K286;
static _KLsimple_object_vectorGVKd_4 K287;
static _KLsimple_object_vectorGVKd_2 K288;
static _KLkeyword_signatureGVKe K289;
static _KLsimple_object_vectorGVKd_10 K290;
static _KLsimple_object_vectorGVKd_5 K291;
static _KLbyte_stringGVKd_28 K292;
static _KLsignatureAvaluesGVKi K293;
static _KLsignatureAvaluesGVKi K294;
static _KLbyte_stringGVKd_13 K295;
static _KLsignatureAvaluesGVKi K296;
static _KLsignatureAvaluesGVKi K297;
static _KLsignatureAvaluesGVKi K298;
static _KLsimple_object_vectorGVKd_2 K299;
static _KLsignatureAvaluesGVKi K300;
static _KLsimple_object_vectorGVKd_2 K301;
static _KLsignatureAvaluesGVKi K302;
static _KLsignatureAvaluesGVKi K303;
static _KLpairGVKd K304;
static _KLpairGVKd K305;
static _KLpairGVKd K306;
static _KLpairGVKd K307;
static _KLpairGVKd K308;

/* Indirection variables */

static dylan_value IKJyear_ = &KJyear_;
static dylan_value IKJmonth_ = &KJmonth_;
static dylan_value IKJday_ = &KJday_;
static dylan_value IKJdays_ = &KJdays_;
static dylan_value IKJseconds_ = &KJseconds_;
static dylan_value IKJmicroseconds_ = &KJmicroseconds_;
static dylan_value IKJhours_ = &KJhours_;
static dylan_value IKJminutes_ = &KJminutes_;
static dylan_value IKJyears_ = &KJyears_;
static dylan_value IKJmonths_ = &KJmonths_;

/* Variables */

dylan_value LdurationGYdateVsystem = &KLdurationGYdateVsystem;
dylan_value LyearSmonth_durationGYdateVsystem = &KLyearSmonth_durationGYdateVsystem;
dylan_value LdayStime_durationGYdateVsystem = &KLdayStime_durationGYdateVsystem;
dylan_value Ldate_arithmetic_errorGYdateVsystem = &KLdate_arithmetic_errorGYdateVsystem;
dylan_value Ldate_arithmetic_error_restartGYdateVsystem = &KLdate_arithmetic_error_restartGYdateVsystem;
dylan_value Ldate_arithmetic_invalid_dayGYdateVsystem = &KLdate_arithmetic_invalid_dayGYdateVsystem;
dylan_value Ldate_arithmetic_use_last_valid_dayGYdateVsystem = &KLdate_arithmetic_use_last_valid_dayGYdateVsystem;
dylan_value encode_yearSmonth_durationYdateVsystem = &Kencode_yearSmonth_durationYdateVsystem;
dylan_value encode_dayStime_durationYdateVsystem = &Kencode_dayStime_durationYdateVsystem;
dylan_value decode_durationYdateVsystem = &Kdecode_durationYdateVsystem;

/* Objects */

_KLclassGVKd KLdurationGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_smallVKiI,
  &K241,
  &K238,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLdurationGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K238,
  (dylan_value) 1,
  17,
  33554439,
  (dylan_value) 1
};

_KLstandalone_domainGVKe_2 KEVKdRD_systemRD_10 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 KLVKdRD_systemRD_2 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 KAVKdRD_systemRD_6 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 KAVKdRD_systemRD_5 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdateGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 KAVKdRD_systemRD_4 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdateGYdateVsystem
};

_KLstandalone_domainGVKe_2 K_VKdRD_systemRD_6 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 K_VKdRD_systemRD_5 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdateGYdateVsystem,
  &KLdateGYdateVsystem
};

_KLstandalone_domainGVKe_2 K_VKdRD_systemRD_4 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdateGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 KTVKdRD_systemRD_3 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLrealGVKd
};

_KLstandalone_domainGVKe_2 KTVKdRD_systemRD_2 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLrealGVKd,
  &KLdurationGYdateVsystem
};

_KLstandalone_domainGVKe_2 KSVKdRD_systemRD_1 = {
  &KLstandalone_domainGVKeW /* wrapper */,
  &Ksystem_libraryYdylan_userVsystem,
  &KPfalseVKi,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLrealGVKd
};

_KLkeyword_methodGVKe KmakeVKdMsystemM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_9,
  &K232,
  &key_mep_9,
  &KmakeVKdMsystemM1I,
  &K233
};

_KLclassGVKd KLdate_arithmetic_errorGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kgeneral_rcpl_class_instanceQVKiI,
  &K227,
  &K222,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLdate_arithmetic_errorGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K222,
  (dylan_value) 2049,
  13,
  33554439,
  (dylan_value) 1
};

_KLclassGVKd KLdate_arithmetic_error_restartGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_rcpl_single_largeVKiI,
  &K221,
  &K218,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLdate_arithmetic_error_restartGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K218,
  (dylan_value) 2049,
  13,
  33554439,
  (dylan_value) 1
};

_KLsimple_methodGVKe KEVKdMsystemM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K182,
  &KEVKdMsystemM1I
};

_KLsimple_methodGVKe KAVKdMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K117,
  &KAVKdMsystemM0I
};

_KLsimple_methodGVKe KAVKdMsystemM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K177,
  &KAVKdMsystemM1I
};

_KLsimple_methodGVKe K_VKdMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K172,
  &K_VKdMsystemM0I
};

_KLsimple_methodGVKe K_VKdMsystemM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K117,
  &K_VKdMsystemM1I
};

_KLsimple_methodGVKe KTVKdMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K60,
  &KTVKdMsystemM0I
};

_KLsimple_methodGVKe KTVKdMsystemM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K63,
  &KTVKdMsystemM1I
};

_KLsimple_methodGVKe KSVKdMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K60,
  &KSVKdMsystemM0I
};

_KLsealed_generic_functionGVKe Kclone_durationYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  (dylan_value) 1,
  &K59,
  &K282,
  &RSINGULAR_Labsent_engine_nodeG
};

static _KLbyte_stringGVKd_14 K59 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 57,
  "clone-duration"
};

static _KLsignatureAvaluesGVKi K60 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K61,
  &K62
};

static _KLsimple_object_vectorGVKd_2 K61 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLrealGVKd
};

static _KLsimple_object_vectorGVKd_1 K62 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdurationGYdateVsystem
};

static _KLsignatureAvaluesGVKi K63 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K64,
  &K62
};

static _KLsimple_object_vectorGVKd_2 K64 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLrealGVKd,
  &KLdurationGYdateVsystem
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF114 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K115,
  &KUhandler_functionUF114I,
  (dylan_value) 1
};

static _KLsymbolGVKd KJyear_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K113
};

static _KLsymbolGVKd KJmonth_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K112
};

_KLclassGVKd KLdate_arithmetic_use_last_valid_dayGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K111,
  &K104,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLdate_arithmetic_use_last_valid_dayGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K104,
  (dylan_value) 2049,
  13,
  33554439,
  (dylan_value) 1
};

static _KLsymbolGVKd KJday_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K103
};

_KLclassGVKd KLdate_arithmetic_invalid_dayGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K102,
  &K74,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLdate_arithmetic_invalid_dayGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K74,
  (dylan_value) 2049,
  13,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K74 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433741,
  &KLdate_arithmetic_invalid_dayGYdateVsystem,
  &KLdate_arithmetic_invalid_dayGYdateVsystemW,
  &KPfalseVKi,
  &K75,
  (dylan_value) -3,
  &KLdate_arithmetic_invalid_dayGZ32ZconstructorYsystem_internalsVsystemMM0,
  &K78,
  &K79,
  (dylan_value) 21,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K75,
  &KPempty_vectorVKi,
  &K80,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_3 K75 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &Kdae_yearYsystem_internalsVsystemHLdate_arithmetic_errorG,
  &Kdae_monthYsystem_internalsVsystemHLdate_arithmetic_errorG,
  &Kdae_dayYsystem_internalsVsystemHLdate_arithmetic_errorG
};

_KLkeyword_methodGVKe KLdate_arithmetic_invalid_dayGZ32ZconstructorYsystem_internalsVsystemMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_5,
  &K83,
  &key_mep_2,
  &KLdate_arithmetic_invalid_dayGZ32ZconstructorYsystem_internalsVsystemMM0I,
  &K84
};

static _KLsimple_object_vectorGVKd_1 K78 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdate_arithmetic_errorGYdateVsystem
};

static _KLsimple_object_vectorGVKd_6 K79 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLconditionGVKd,
  &KLserious_conditionGVKd,
  &KLerrorGVKd,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KLdate_arithmetic_invalid_dayGYdateVsystem
};

static _KLsimple_object_vectorGVKd_1 K80 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KdayHLdate_arithmetic_invalid_dayGYdateVsystem
};

static _KLinit_arg_descriptorGVKe KdayHLdate_arithmetic_invalid_dayGYdateVsystem = {
  &KLinit_arg_descriptorGVKeW /* wrapper */,
  (dylan_value) 65,
  &KPfalseVKi,
  &KLdate_arithmetic_invalid_dayGYdateVsystem,
  &KJday_,
  &KLobjectGVKd
};

static _KLbyte_stringGVKd_23 K82 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "Missing init keyword %="
};

static _KLkeyword_signatureAvaluesGVKi K83 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K85,
  &KDsignature_LobjectG_typesVKi,
  &K86
};

static _KLsimple_object_vectorGVKd_6 K84 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KJyear_,
  &KPunboundVKi,
  &KJmonth_,
  &KPunboundVKi,
  &KJday_,
  &KPunboundVKi
};

static _KLsimple_object_vectorGVKd_3 K85 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 13,
  &KJyear_,
  &KJmonth_,
  &KJday_
};

static _KLsimple_object_vectorGVKd_1 K86 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdate_arithmetic_invalid_dayGYdateVsystem
};

_KLinstance_slot_descriptorGVKe Kdae_yearYsystem_internalsVsystemHLdate_arithmetic_errorG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 193,
  &KPfalseVKi,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KJyear_,
  &Kdae_yearYsystem_internalsVsystem,
  &KPfalseVKi,
  &KLintegerGVKd
};

_KLinstance_slot_descriptorGVKe Kdae_monthYsystem_internalsVsystemHLdate_arithmetic_errorG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 193,
  &KPfalseVKi,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KJmonth_,
  &Kdae_monthYsystem_internalsVsystem,
  &KPfalseVKi,
  &KLintegerGVKd
};

_KLinstance_slot_descriptorGVKe Kdae_dayYsystem_internalsVsystemHLdate_arithmetic_errorG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 129,
  &KPfalseVKi,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KJday_,
  &Kdae_dayYsystem_internalsVsystem,
  &KPfalseVKi,
  &KLintegerGVKd
};

_KLsealed_generic_functionGVKe Kdae_dayYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K93,
  &K92,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kdae_dayYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kdae_dayYsystem_internalsVsystemHLdate_arithmetic_errorG
};

static _KLpairGVKd K92 = {
  &KLpairGVKdW /* wrapper */,
  &Kdae_dayYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_7 K93 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 29,
  "dae-day"
};

_KLsealed_generic_functionGVKe Kdae_monthYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K97,
  &K96,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kdae_monthYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kdae_monthYsystem_internalsVsystemHLdate_arithmetic_errorG
};

static _KLpairGVKd K96 = {
  &KLpairGVKdW /* wrapper */,
  &Kdae_monthYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_9 K97 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 37,
  "dae-month"
};

_KLsealed_generic_functionGVKe Kdae_yearYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K101,
  &K100,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLgetter_methodGVKi Kdae_yearYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &Kdae_yearYsystem_internalsVsystemHLdate_arithmetic_errorG
};

static _KLpairGVKd K100 = {
  &KLpairGVKdW /* wrapper */,
  &Kdae_yearYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_8 K101 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 33,
  "dae-year"
};

static _KLbyte_stringGVKd_29 K102 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 117,
  "<date-arithmetic-invalid-day>"
};

static _KLbyte_stringGVKd_3 K103 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 13,
  "day"
};

static _KLimplementation_classGVKe K104 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433741,
  &KLdate_arithmetic_use_last_valid_dayGYdateVsystem,
  &KLdate_arithmetic_use_last_valid_dayGYdateVsystemW,
  &KPfalseVKi,
  &K75,
  (dylan_value) -3,
  &KLdate_arithmetic_use_last_valid_dayGZ32ZconstructorYsystem_internalsVsystemMM0,
  &K107,
  &K108,
  (dylan_value) 29,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K75,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe KLdate_arithmetic_use_last_valid_dayGZ32ZconstructorYsystem_internalsVsystemMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_5,
  &K109,
  &key_mep_2,
  &KLdate_arithmetic_use_last_valid_dayGZ32ZconstructorYsystem_internalsVsystemMM0I,
  &K84
};

static _KLsimple_object_vectorGVKd_1 K107 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdate_arithmetic_error_restartGYdateVsystem
};

static _KLsimple_object_vectorGVKd_8 K108 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 33,
  &KLobjectGVKd,
  &KLconditionGVKd,
  &KLrestartGVKd,
  &KLserious_conditionGVKd,
  &KLerrorGVKd,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KLdate_arithmetic_error_restartGYdateVsystem,
  &KLdate_arithmetic_use_last_valid_dayGYdateVsystem
};

static _KLkeyword_signatureAvaluesGVKi K109 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &K85,
  &KDsignature_LobjectG_typesVKi,
  &K110
};

static _KLsimple_object_vectorGVKd_1 K110 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdate_arithmetic_use_last_valid_dayGYdateVsystem
};

static _KLbyte_stringGVKd_36 K111 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 145,
  "<date-arithmetic-use-last-valid-day>"
};

static _KLbyte_stringGVKd_5 K112 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 21,
  "month"
};

static _KLbyte_stringGVKd_4 K113 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 17,
  "year"
};

static _KLsignatureGVKe K115 = {
  &KLsignatureGVKeW /* wrapper */,
  (dylan_value) 44040201,
  &K116
};

static _KLsimple_object_vectorGVKd_2 K116 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdate_arithmetic_use_last_valid_dayGYdateVsystem,
  &KLobjectGVKd
};

static _KLsignatureAvaluesGVKi K117 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K118,
  &K119
};

static _KLsimple_object_vectorGVKd_2 K118 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdateGYdateVsystem,
  &KLdurationGYdateVsystem
};

static _KLsimple_object_vectorGVKd_1 K119 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdateGYdateVsystem
};

static _KLsymbolGVKd KJdays_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K171
};

static _KLsymbolGVKd KJseconds_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K170
};

static _KLsymbolGVKd KJmicroseconds_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K169
};

_KLclassGVKd KLdayStime_durationGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K168,
  &K125,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLdayStime_durationGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K125,
  (dylan_value) 1,
  17,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K125 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433745,
  &KLdayStime_durationGYdateVsystem,
  &KLdayStime_durationGYdateVsystemW,
  &KPfalseVKi,
  &K126,
  (dylan_value) -3,
  &KLdayStime_durationGZ32ZconstructorYsystem_internalsVsystemMM0,
  &K62,
  &K129,
  (dylan_value) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K126,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_4 K126 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KPduration_monthsYsystem_internalsVsystemHLdurationG,
  &KPduration_daysYsystem_internalsVsystemHLdurationG,
  &KPduration_secondsYsystem_internalsVsystemHLdurationG,
  &KPduration_microsecondsYsystem_internalsVsystemHLdurationG
};

_KLkeyword_methodGVKe KLdayStime_durationGZ32ZconstructorYsystem_internalsVsystemMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K130,
  &key_mep_2,
  &KLdayStime_durationGZ32ZconstructorYsystem_internalsVsystemMM0I,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_6 K129 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLnumberGVKd,
  &KLdurationGYdateVsystem,
  &KLdayStime_durationGYdateVsystem,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLkeyword_signatureAvaluesGVKi K130 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K131
};

static _KLsimple_object_vectorGVKd_1 K131 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLdayStime_durationGYdateVsystem
};

_KLinstance_slot_descriptorGVKe KPduration_monthsYsystem_internalsVsystemHLdurationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  (dylan_value) 1,
  &KLdurationGYdateVsystem,
  &KPfalseVKi,
  &KPduration_monthsYsystem_internalsVsystem,
  &KPduration_months_setterYsystem_internalsVsystem,
  &KLintegerGVKd
};

_KLinstance_slot_descriptorGVKe KPduration_daysYsystem_internalsVsystemHLdurationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  (dylan_value) 1,
  &KLdurationGYdateVsystem,
  &KPfalseVKi,
  &KPduration_daysYsystem_internalsVsystem,
  &KPduration_days_setterYsystem_internalsVsystem,
  &KLintegerGVKd
};

_KLinstance_slot_descriptorGVKe KPduration_secondsYsystem_internalsVsystemHLdurationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  (dylan_value) 1,
  &KLdurationGYdateVsystem,
  &KPfalseVKi,
  &KPduration_secondsYsystem_internalsVsystem,
  &KPduration_seconds_setterYsystem_internalsVsystem,
  &KLintegerGVKd
};

_KLinstance_slot_descriptorGVKe KPduration_microsecondsYsystem_internalsVsystemHLdurationG = {
  &KLinstance_slot_descriptorGVKeW /* wrapper */,
  (dylan_value) 157,
  (dylan_value) 1,
  &KLdurationGYdateVsystem,
  &KPfalseVKi,
  &KPduration_microsecondsYsystem_internalsVsystem,
  &KPduration_microseconds_setterYsystem_internalsVsystem,
  &KLintegerGVKd
};

_KLsealed_generic_functionGVKe KPduration_microsecondsYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K143,
  &K142,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe KPduration_microseconds_setterYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K140,
  &K139,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsetter_methodGVKi KPduration_microseconds_setterYsystem_internalsVsystemMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &KPduration_microsecondsYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K139 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_microseconds_setterYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_29 K140 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 117,
  "%duration-microseconds-setter"
};

_KLgetter_methodGVKi KPduration_microsecondsYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KPduration_microsecondsYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K142 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_microsecondsYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_22 K143 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 89,
  "%duration-microseconds"
};

_KLsealed_generic_functionGVKe KPduration_secondsYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K151,
  &K150,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe KPduration_seconds_setterYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K148,
  &K147,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsetter_methodGVKi KPduration_seconds_setterYsystem_internalsVsystemMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &KPduration_secondsYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K147 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_seconds_setterYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_24 K148 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 97,
  "%duration-seconds-setter"
};

_KLgetter_methodGVKi KPduration_secondsYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KPduration_secondsYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K150 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_secondsYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_17 K151 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 69,
  "%duration-seconds"
};

_KLsealed_generic_functionGVKe KPduration_daysYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K159,
  &K158,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe KPduration_days_setterYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K156,
  &K155,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsetter_methodGVKi KPduration_days_setterYsystem_internalsVsystemMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &KPduration_daysYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K155 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_days_setterYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_21 K156 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 85,
  "%duration-days-setter"
};

_KLgetter_methodGVKi KPduration_daysYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KPduration_daysYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K158 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_daysYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_14 K159 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 57,
  "%duration-days"
};

_KLsealed_generic_functionGVKe KPduration_monthsYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &KDsignature_LobjectG_object_rest_value_1VKi,
  &KPfalseVKi,
  &K167,
  &K166,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsealed_generic_functionGVKe KPduration_months_setterYsystem_internalsVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_2,
  &KDsignature_LobjectG_object_rest_value_2VKi,
  &KPfalseVKi,
  &K164,
  &K163,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsetter_methodGVKi KPduration_months_setterYsystem_internalsVsystemMM0 = {
  &KLsetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_setter_xep,
  &KPduration_monthsYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K163 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_months_setterYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_23 K164 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "%duration-months-setter"
};

_KLgetter_methodGVKi KPduration_monthsYsystem_internalsVsystemMM0 = {
  &KLgetter_methodGVKiW /* wrapper */,
  &slotacc_single_q_instance_getter_xep,
  &KPduration_monthsYsystem_internalsVsystemHLdurationG
};

static _KLpairGVKd K166 = {
  &KLpairGVKdW /* wrapper */,
  &KPduration_monthsYsystem_internalsVsystemMM0,
  &KPempty_listVKi
};

static _KLbyte_stringGVKd_16 K167 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 65,
  "%duration-months"
};

static _KLbyte_stringGVKd_19 K168 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 77,
  "<day/time-duration>"
};

static _KLbyte_stringGVKd_12 K169 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 49,
  "microseconds"
};

static _KLbyte_stringGVKd_7 K170 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 29,
  "seconds"
};

static _KLbyte_stringGVKd_4 K171 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 17,
  "days"
};

static _KLsignatureAvaluesGVKi K172 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K173,
  &K131
};

static _KLsimple_object_vectorGVKd_2 K173 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdateGYdateVsystem,
  &KLdateGYdateVsystem
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF176 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K115,
  &KUhandler_functionUF176I,
  (dylan_value) 1
};

static _KLsignatureAvaluesGVKi K177 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K178,
  &K119
};

static _KLsimple_object_vectorGVKd_2 K178 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdateGYdateVsystem
};

static _KLsimple_closure_methodGVKi_0 KUhandler_functionUF181 = {
  &KLsimple_closure_methodGVKiW /* wrapper */,
  &xep_2,
  &K115,
  &KUhandler_functionUF181I,
  (dylan_value) 1
};

static _KLsignatureAvaluesGVKi K182 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K183,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K183 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdurationGYdateVsystem,
  &KLdurationGYdateVsystem
};

_KLsealed_generic_functionGVKe Kdecode_durationYdateVsystem = {
  &KLsealed_generic_functionGVKeW /* wrapper */,
  &gf_xep_1,
  &K191,
  &KPfalseVKi,
  &K192,
  &K189,
  &RSINGULAR_Labsent_engine_nodeG
};

_KLsimple_methodGVKe Kdecode_durationYdateVsystemMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K194,
  &Kdecode_durationYdateVsystemMM0I
};

_KLsimple_methodGVKe Kdecode_durationYdateVsystemMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K193,
  &Kdecode_durationYdateVsystemMM1I
};

static _KLpairGVKd K189 = {
  &KLpairGVKdW /* wrapper */,
  &Kdecode_durationYdateVsystemMM0,
  &K190
};

static _KLpairGVKd K190 = {
  &KLpairGVKdW /* wrapper */,
  &Kdecode_durationYdateVsystemMM1,
  &KPempty_listVKi
};

static _KLsignatureArest_valueGVKi K191 = {
  &KLsignatureArest_valueGVKiW /* wrapper */,
  (dylan_value) 44040197,
  &K62,
  &KLintegerGVKd
};

static _KLbyte_stringGVKd_15 K192 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 61,
  "decode-duration"
};

static _KLsignatureAvaluesGVKi K193 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33559557,
  &K131,
  &KDsignature_LintegerG_typesVKi
};

static _KLsignatureAvaluesGVKi K194 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33556485,
  &K195,
  &KDsignature_LintegerG_typesVKi
};

static _KLsimple_object_vectorGVKd_1 K195 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLyearSmonth_durationGYdateVsystem
};

_KLclassGVKd KLyearSmonth_durationGYdateVsystem = {
  &KLclassGVKdW /* wrapper */,
  &Kclass_instanceQ_initialVKiI,
  &K203,
  &K198,
  (dylan_value) 1,
  &Kdate_moduleYdylan_userVsystem
};

_KLmm_wrapperGVKi_0 KLyearSmonth_durationGYdateVsystemW = {
  &KLmm_wrapperGVKiW /* wrapper */,
  &K198,
  (dylan_value) 1,
  17,
  33554439,
  (dylan_value) 1
};

static _KLimplementation_classGVKe K198 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 527433745,
  &KLyearSmonth_durationGYdateVsystem,
  &KLyearSmonth_durationGYdateVsystemW,
  &KPfalseVKi,
  &K126,
  (dylan_value) -3,
  &KLyearSmonth_durationGZ32ZconstructorYsystem_internalsVsystemMM0,
  &K62,
  &K201,
  (dylan_value) 13,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K126,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

_KLkeyword_methodGVKe KLyearSmonth_durationGZ32ZconstructorYsystem_internalsVsystemMM0 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_2,
  &K202,
  &key_mep_2,
  &KLyearSmonth_durationGZ32ZconstructorYsystem_internalsVsystemMM0I,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_6 K201 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLnumberGVKd,
  &KLdurationGYdateVsystem,
  &KLyearSmonth_durationGYdateVsystem,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLkeyword_signatureAvaluesGVKi K202 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &KDsignature_LclassG_typesVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K195
};

static _KLbyte_stringGVKd_21 K203 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 85,
  "<year/month-duration>"
};

_KLsimple_methodGVKe Kencode_dayStime_durationYdateVsystem = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_5,
  &K210,
  &Kencode_dayStime_durationYdateVsystemI
};

static _KLsymbolGVKd KJhours_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K209
};

static _KLsymbolGVKd KJminutes_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K208
};

static _KLbyte_stringGVKd_7 K208 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 29,
  "minutes"
};

static _KLbyte_stringGVKd_5 K209 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 21,
  "hours"
};

static _KLsignatureAvaluesGVKi K210 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555477,
  &KDsignature_LintegerG_typesVKi,
  &K131
};

_KLsimple_methodGVKe Kencode_yearSmonth_durationYdateVsystem = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K217,
  &Kencode_yearSmonth_durationYdateVsystemI
};

static _KLsymbolGVKd KJyears_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K216
};

static _KLsymbolGVKd KJmonths_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K215
};

static _KLbyte_stringGVKd_6 K215 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 25,
  "months"
};

static _KLbyte_stringGVKd_5 K216 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 21,
  "years"
};

static _KLsignatureAvaluesGVKi K217 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &KDsignature_LintegerG_typesVKi,
  &K195
};

static _KLimplementation_classGVKe K218 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 410255373,
  &KLdate_arithmetic_error_restartGYdateVsystem,
  &KLdate_arithmetic_error_restartGYdateVsystemW,
  &KPfalseVKi,
  &K75,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K219,
  &K220,
  (dylan_value) 25,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K308,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &K75,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_2 K219 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KLrestartGVKd
};

static _KLsimple_object_vectorGVKd_7 K220 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 29,
  &KLobjectGVKd,
  &KLconditionGVKd,
  &KLrestartGVKd,
  &KLserious_conditionGVKd,
  &KLerrorGVKd,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KLdate_arithmetic_error_restartGYdateVsystem
};

static _KLbyte_stringGVKd_31 K221 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 125,
  "<date-arithmetic-error-restart>"
};

static _KLimplementation_classGVKe K222 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 460587021,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KLdate_arithmetic_errorGYdateVsystemW,
  &KPfalseVKi,
  &K75,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K223,
  &K224,
  (dylan_value) 17,
  &K225,
  &K226,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K306,
  &KPempty_vectorVKi,
  &K75,
  &K75,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_1 K223 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLerrorGVKd
};

static _KLsimple_object_vectorGVKd_6 K224 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLconditionGVKd,
  &KLserious_conditionGVKd,
  &KLerrorGVKd,
  &KLdate_arithmetic_errorGYdateVsystem,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_1 K225 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  (dylan_value) 21
};

static _KLsimple_object_vectorGVKd_1 K226 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLrestartGVKd
};

static _KLbyte_stringGVKd_23 K227 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 93,
  "<date-arithmetic-error>"
};

static _KLunionGVKe K228 = {
  &KLunionGVKeW /* wrapper */,
  &Kunion_instanceQVKiI,
  &K231,
  &KLintegerGVKd
};

static _KLbyte_stringGVKd_76 K229 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 305,
  "Can\'t make(<duration>) with both years/months and days/hours/minutes/seconds"
};

static _KLbyte_stringGVKd_83 K230 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 333,
  "Either years/months or days/hours/minutes/seconds must be given to make(<duration>)"
};

static _KLsingletonGVKd K231 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KPfalseVKi
};

static _KLkeyword_signatureAvaluesGVKi K232 = {
  &KLkeyword_signatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 35390469,
  &K234,
  &K235,
  &K236,
  &K62
};

static _KLsimple_object_vectorGVKd_14 K233 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 57,
  &KJyears_,
  &KPfalseVKi,
  &KJmonths_,
  &KPfalseVKi,
  &KJdays_,
  &KPfalseVKi,
  &KJhours_,
  &KPfalseVKi,
  &KJminutes_,
  &KPfalseVKi,
  &KJseconds_,
  &KPfalseVKi,
  &KJmicroseconds_,
  &KPfalseVKi
};

static _KLsimple_object_vectorGVKd_1 K234 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &K237
};

static _KLsimple_object_vectorGVKd_7 K235 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 29,
  &KJyears_,
  &KJmonths_,
  &KJdays_,
  &KJhours_,
  &KJminutes_,
  &KJseconds_,
  &KJmicroseconds_
};

static _KLsimple_object_vectorGVKd_7 K236 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 29,
  &K228,
  &K228,
  &K228,
  &K228,
  &K228,
  &K228,
  &K228
};

static _KLsingletonGVKd K237 = {
  &KLsingletonGVKdW /* wrapper */,
  &Ksingleton_pointer_idQ_instanceQVKiI,
  &KLdurationGYdateVsystem
};

static _KLimplementation_classGVKe K238 = {
  &KLimplementation_classGVKeW /* wrapper */,
  (dylan_value) 460587025,
  &KLdurationGYdateVsystem,
  &KLdurationGYdateVsystemW,
  &KPfalseVKi,
  &K126,
  (dylan_value) -3,
  &Kdefault_class_constructorVKi,
  &K239,
  &K240,
  (dylan_value) 9,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_listVKi,
  &KPempty_listVKi,
  &K304,
  &KPempty_vectorVKi,
  &K126,
  &K126,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi,
  &KPempty_vectorVKi
};

static _KLsimple_object_vectorGVKd_1 K239 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 5,
  &KLnumberGVKd
};

static _KLsimple_object_vectorGVKd_6 K240 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLobjectGVKd,
  &KLnumberGVKd,
  &KLdurationGYdateVsystem,
  &KPfalseVKi,
  &KPfalseVKi,
  &KPfalseVKi
};

static _KLbyte_stringGVKd_10 K241 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 41,
  "<duration>"
};

_KLsimple_methodGVKe K_VKdMsystemM3 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K303,
  &K_VKdMsystemM3I
};

_KLsimple_methodGVKe K_VKdMsystemM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K302,
  &K_VKdMsystemM2I
};

_KLsimple_methodGVKe KAVKdMsystemM3 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K303,
  &KAVKdMsystemM3I
};

_KLsimple_methodGVKe KAVKdMsystemM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K302,
  &KAVKdMsystemM2I
};

_KLsimple_methodGVKe KLVKdMsystemM2 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K300,
  &KLVKdMsystemM2I
};

_KLsimple_methodGVKe KLVKdMsystemM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_2,
  &K298,
  &KLVKdMsystemM1I
};

_KLsimple_methodGVKe Kreturn_descriptionVKdMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K297,
  &Kreturn_descriptionVKdMsystemM0I
};

_KLsimple_methodGVKe Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K296,
  &Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM1I
};

_KLsimple_methodGVKe Kreturn_allowedQVKdMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K294,
  &Kreturn_allowedQVKdMsystemM0I
};

_KLsimple_methodGVKe Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K293,
  &Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM0I
};

_KLkeyword_methodGVKe KinitializeVKdMsystemM2 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_7,
  &K289,
  &key_mep_7,
  &KinitializeVKdMsystemM2I,
  &K290
};

_KLkeyword_methodGVKe KinitializeVKdMsystemM1 = {
  &KLkeyword_methodGVKeW /* wrapper */,
  &rest_key_xep_4,
  &K286,
  &key_mep_4,
  &KinitializeVKdMsystemM1I,
  &K287
};

_KLsimple_methodGVKe Kclone_durationYsystem_internalsVsystemMM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K285,
  &Kclone_durationYsystem_internalsVsystemMM0I
};

_KLsimple_methodGVKe Kclone_durationYsystem_internalsVsystemMM1 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K284,
  &Kclone_durationYsystem_internalsVsystemMM1I
};

static _KLpairGVKd K282 = {
  &KLpairGVKdW /* wrapper */,
  &Kclone_durationYsystem_internalsVsystemMM0,
  &K283
};

static _KLpairGVKd K283 = {
  &KLpairGVKdW /* wrapper */,
  &Kclone_durationYsystem_internalsVsystemMM1,
  &KPempty_listVKi
};

static _KLsignatureAvaluesGVKi K284 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K131,
  &K131
};

static _KLsignatureAvaluesGVKi K285 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K195,
  &K195
};

static _KLkeyword_signatureGVKe K286 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 44826629,
  &K195,
  &K288,
  &KDsignature_LintegerG_typesVKi
};

static _KLsimple_object_vectorGVKd_4 K287 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 17,
  &KJyears_,
  (dylan_value) 1,
  &KJmonths_,
  (dylan_value) 1
};

static _KLsimple_object_vectorGVKd_2 K288 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KJyears_,
  &KJmonths_
};

static _KLkeyword_signatureGVKe K289 = {
  &KLkeyword_signatureGVKeW /* wrapper */,
  (dylan_value) 44826629,
  &K131,
  &K291,
  &KDsignature_LintegerG_typesVKi
};

static _KLsimple_object_vectorGVKd_10 K290 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 41,
  &KJdays_,
  (dylan_value) 1,
  &KJhours_,
  (dylan_value) 1,
  &KJminutes_,
  (dylan_value) 1,
  &KJseconds_,
  (dylan_value) 1,
  &KJmicroseconds_,
  (dylan_value) 1
};

static _KLsimple_object_vectorGVKd_5 K291 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 21,
  &KJdays_,
  &KJhours_,
  &KJminutes_,
  &KJseconds_,
  &KJmicroseconds_
};

static _KLbyte_stringGVKd_28 K292 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 113,
  "%s, %d does not have %d days"
};

static _KLsignatureAvaluesGVKi K293 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K86,
  &KDsignature_LstringG_typesVKi
};

static _KLsignatureAvaluesGVKi K294 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K86,
  &KDsignature_LbooleanG_typesVKi
};

static _KLbyte_stringGVKd_13 K295 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 53,
  "Use %s %d, %d"
};

static _KLsignatureAvaluesGVKi K296 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K110,
  &KDsignature_LstringG_typesVKi
};

static _KLsignatureAvaluesGVKi K297 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555461,
  &K86,
  &K110
};

static _KLsignatureAvaluesGVKi K298 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K299,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K299 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLyearSmonth_durationGYdateVsystem,
  &KLyearSmonth_durationGYdateVsystem
};

static _KLsignatureAvaluesGVKi K300 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K301,
  &KDsignature_LbooleanG_typesVKi
};

static _KLsimple_object_vectorGVKd_2 K301 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 9,
  &KLdayStime_durationGYdateVsystem,
  &KLdayStime_durationGYdateVsystem
};

static _KLsignatureAvaluesGVKi K302 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K299,
  &K195
};

static _KLsignatureAvaluesGVKi K303 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (dylan_value) 33555465,
  &K301,
  &K131
};

static _KLpairGVKd K304 = {
  &KLpairGVKdW /* wrapper */,
  &KLdayStime_durationGYdateVsystem,
  &K305
};

static _KLpairGVKd K305 = {
  &KLpairGVKdW /* wrapper */,
  &KLyearSmonth_durationGYdateVsystem,
  &KPempty_listVKi
};

static _KLpairGVKd K306 = {
  &KLpairGVKdW /* wrapper */,
  &KLdate_arithmetic_invalid_dayGYdateVsystem,
  &K307
};

static _KLpairGVKd K307 = {
  &KLpairGVKdW /* wrapper */,
  &KLdate_arithmetic_error_restartGYdateVsystem,
  &KPempty_listVKi
};

static _KLpairGVKd K308 = {
  &KLpairGVKdW /* wrapper */,
  &KLdate_arithmetic_use_last_valid_dayGYdateVsystem,
  &KPempty_listVKi
};

/* Code */

dylan_value KmakeVKdMsystemM1I (dylan_value class_, dylan_value init_keywords_, dylan_value years_, dylan_value months_, dylan_value days_, dylan_value hours_, dylan_value minutes_, dylan_value seconds_, dylan_value microseconds_) {
  dylan_value yearsF10;
  dylan_value monthsF11;
  dylan_value daysF12;
  dylan_value hoursF13;
  dylan_value minutesF14;
  dylan_value secondsF15;
  dylan_value microsecondsF16;
  dylan_value T17;
  dylan_value UtmpF18;
  dylan_value UtmpF19;
  dylan_value UtmpF20;
  dylan_value T21;
  dylan_value UtmpF22;
  dylan_value UtmpF23;
  dylan_value UtmpF24;
  dylan_value T25;
  dylan_value T26_0;
  dylan_value T27_0;
  dylan_value T28_0;
  dylan_value T29_0;
  dylan_value T30_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(years_, &K228);
  yearsF10 = years_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(months_, &K228);
  monthsF11 = months_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(days_, &K228);
  daysF12 = days_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(hours_, &K228);
  hoursF13 = hours_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(minutes_, &K228);
  minutesF14 = minutes_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(seconds_, &K228);
  secondsF15 = seconds_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  primitive_type_check(microseconds_, &K228);
  microsecondsF16 = microseconds_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:52
  if (yearsF10 != &KPfalseVKi) {
    T17 = yearsF10;
  } else {
    T17 = monthsF11;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:52
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:51
  if (T17 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    if (daysF12 != &KPfalseVKi) {
      UtmpF18 = daysF12;
    } else {
      UtmpF18 = hoursF13;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    if (UtmpF18 != &KPfalseVKi) {
      UtmpF19 = UtmpF18;
    } else {
      UtmpF19 = minutesF14;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    if (UtmpF19 != &KPfalseVKi) {
      UtmpF20 = UtmpF19;
    } else {
      UtmpF20 = secondsF15;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    if (UtmpF20 != &KPfalseVKi) {
      T21 = UtmpF20;
    } else {
      T21 = microsecondsF16;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    if (T21 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:54
      KerrorVKdMM1I(&K229, &KPempty_vectorVKi);
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:53
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:56
    T28_0 = APPLY2(&KmakeVKd, &KLyearSmonth_durationGYdateVsystem, init_keywords_);
    T27_0 = T28_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    if (daysF12 != &KPfalseVKi) {
      UtmpF22 = daysF12;
    } else {
      UtmpF22 = hoursF13;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    if (UtmpF22 != &KPfalseVKi) {
      UtmpF23 = UtmpF22;
    } else {
      UtmpF23 = minutesF14;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    if (UtmpF23 != &KPfalseVKi) {
      UtmpF24 = UtmpF23;
    } else {
      UtmpF24 = secondsF15;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    if (UtmpF24 != &KPfalseVKi) {
      T25 = UtmpF24;
    } else {
      T25 = microsecondsF16;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:57
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:51
    if (T25 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:58
      T29_0 = APPLY2(&KmakeVKd, &KLdayStime_durationGYdateVsystem, init_keywords_);
      T26_0 = T29_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:60
      T30_0 = KerrorVKdMM1I(&K230, &KPempty_vectorVKi);
      T26_0 = T30_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:51
    T27_0 = T26_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:51
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  MV_SET_COUNT(1);
  return(T27_0);
}

dylan_value KEVKdMsystemM1I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value T5_0;
  dylan_value T6_0;
  dylan_value T7;
  dylan_value T8;
  DWORD T9;
  DWORD T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  DWORD T19;
  DWORD T20;
  dylan_value T21;
  dylan_value T22;
  dylan_value T23;
  DWORD T24;
  DWORD T25;
  dylan_value T26;
  dylan_value T27_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:216
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  T7 = SLOT_VALUE_INITD(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  T8 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  T9 = primitive_cast_integer_as_raw(T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  T10 = primitive_cast_integer_as_raw(T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  T11 = primitive_machine_word_equalQ(T9,T10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  if (T11 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:218
    T12 = SLOT_VALUE_INITD(x_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:218
    T13 = SLOT_VALUE_INITD(y_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:218
    T14 = primitive_cast_integer_as_raw(T12);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:218
    T15 = primitive_cast_integer_as_raw(T13);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:218
    T16 = primitive_machine_word_equalQ(T14,T15);
    T3 = T16;
  } else {
    T3 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  if (T3 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:219
    T17 = SLOT_VALUE_INITD(x_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:219
    T18 = SLOT_VALUE_INITD(y_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:219
    T19 = primitive_cast_integer_as_raw(T17);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:219
    T20 = primitive_cast_integer_as_raw(T18);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:219
    T21 = primitive_machine_word_equalQ(T19,T20);
    T4 = T21;
  } else {
    T4 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  if (T4 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:220
    T22 = SLOT_VALUE_INITD(x_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:220
    T23 = SLOT_VALUE_INITD(y_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:220
    T24 = primitive_cast_integer_as_raw(T22);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:220
    T25 = primitive_cast_integer_as_raw(T23);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:220
    T26 = primitive_machine_word_equalQ(T24,T25);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:220
    T27_0 = T26;
    T6_0 = T27_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
    T5_0 = &KPfalseVKi;
    T6_0 = T5_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:217
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:216
  MV_SET_COUNT(1);
  return(T6_0);
}

dylan_value KAVKdMsystemM0I (dylan_value x_, dylan_value y_) {
  volatile dylan_value T3;
  volatile dylan_value T4;
  volatile dylan_value T5;
  volatile DWORD T6;
  volatile DWORD T7;
  volatile DWORD T8;
  volatile DWORD T9;
  volatile dylan_value T10;
  volatile dylan_value T11;
  volatile dylan_value T12;
  volatile dylan_value Uunwind_exceptionUPexit_4_;
  volatile dylan_value Uoriginal_handlersU_;
  volatile dylan_value T15;
  volatile dylan_value T16;
  volatile dylan_value T17;
  volatile dylan_value T18;
  volatile dylan_value T19;
  volatile DWORD T20;
  volatile DWORD T21;
  volatile dylan_value T22;
  volatile dylan_value T23;
  volatile DWORD T24;
  volatile DWORD T25_0;
  volatile DWORD T25_1;
  volatile DWORD quotientF26;
  volatile DWORD remainderF27;
  volatile DWORD T28;
  volatile DWORD T29;
  volatile DWORD T30;
  volatile DWORD T31;
  volatile dylan_value T32;
  volatile dylan_value T33;
  volatile DWORD T34;
  volatile DWORD T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile dylan_value T38;
  volatile dylan_value T39;
  volatile DWORD T40;
  volatile DWORD T41;
  volatile dylan_value T42;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile _KLsimple_object_vectorGVKd_4 T45 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  volatile dylan_value T46;
  volatile _KLsimple_object_vectorGVKd_8 T47 = {&KLsimple_object_vectorGVKdW, (dylan_value) 33};
  volatile dylan_value T48_0;
  volatile dylan_value T49;
  volatile dylan_value T50;
  volatile dylan_value T51;
  volatile dylan_value T52;
  volatile dylan_value T53;
  volatile _KLsimple_object_vectorGVKd_6 T54 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};
  volatile dylan_value T55;
  volatile dylan_value T56;
  volatile DWORD T57;
  volatile DWORD T58;
  volatile DWORD T59;
  volatile DWORD T60;
  volatile dylan_value T61;
  volatile dylan_value T62;
  volatile dylan_value T63;
  volatile DWORD T64;
  volatile DWORD T65;
  volatile DWORD T66;
  volatile DWORD T67;
  volatile dylan_value T68;
  volatile dylan_value T69;
  volatile dylan_value T70;
  volatile DWORD T71;
  volatile DWORD T72;
  volatile DWORD T73;
  volatile DWORD T74;
  volatile dylan_value T75;
  volatile dylan_value T76;
  volatile dylan_value T77;
  volatile dylan_value T78;
  volatile dylan_value T79;
  volatile dylan_value T80;
  volatile dylan_value T81;
  volatile dylan_value T82;
  volatile dylan_value T83;
  volatile dylan_value T84;
  volatile dylan_value T85_0;
  volatile dylan_value T86;
  volatile DWORD T87;
  volatile dylan_value T88;
  volatile dylan_value T89;
  volatile DWORD T90;
  volatile dylan_value T91;
  volatile dylan_value T92;
  volatile DWORD T93;
  volatile DWORD T94;
  volatile DWORD T95_0;
  volatile DWORD T95_1;
  volatile DWORD quotientF96;
  volatile DWORD remainderF97;
  volatile DWORD T98;
  volatile DWORD T99;
  volatile DWORD T100;
  volatile dylan_value T101;
  volatile dylan_value T102;
  volatile DWORD T103;
  volatile DWORD T104;
  volatile dylan_value T105;
  volatile dylan_value T106;
  volatile DWORD T107;
  volatile dylan_value T108;
  volatile dylan_value T109;
  volatile DWORD T110;
  volatile dylan_value T111;
  volatile dylan_value T112;
  volatile DWORD T113;
  volatile DWORD T114;
  volatile DWORD T115_0;
  volatile DWORD T115_1;
  volatile DWORD quotientF116;
  volatile DWORD remainderF117;
  volatile DWORD T118;
  volatile DWORD T119;
  volatile DWORD T120;
  volatile dylan_value T121;
  volatile dylan_value T122;
  volatile DWORD T123;
  volatile DWORD T124;
  volatile dylan_value T125;
  volatile dylan_value T126;
  volatile DWORD T127;
  volatile dylan_value T128;
  volatile dylan_value T129;
  volatile DWORD T130;
  volatile dylan_value T131;
  volatile dylan_value T132;
  volatile DWORD T133;
  volatile DWORD T134;
  volatile DWORD T135_0;
  volatile DWORD T135_1;
  volatile DWORD quotientF136;
  volatile DWORD remainderF137;
  volatile DWORD T138;
  volatile DWORD T139;
  volatile DWORD T140;
  volatile dylan_value T141;
  volatile dylan_value T142;
  volatile DWORD T143;
  volatile DWORD T144;
  volatile dylan_value T145;
  volatile dylan_value T146;
  volatile DWORD T147;
  volatile dylan_value T148;
  volatile dylan_value T149;
  volatile DWORD T150;
  volatile dylan_value T151;
  volatile dylan_value T152;
  volatile DWORD T153;
  volatile DWORD T154;
  volatile DWORD T155_0;
  volatile DWORD T155_1;
  volatile DWORD quotientF156;
  volatile DWORD remainderF157;
  volatile DWORD T158;
  volatile DWORD T159;
  volatile DWORD T160;
  volatile dylan_value T161;
  volatile dylan_value T162;
  volatile DWORD T163;
  volatile DWORD T164;
  volatile dylan_value T165;
  volatile dylan_value T166;
  volatile dylan_value T167;
  volatile dylan_value T168;
  volatile DWORD T169;
  volatile DWORD T170;
  volatile dylan_value T171;
  volatile dylan_value T172;
  volatile dylan_value T173;
  volatile dylan_value T174;
  volatile DWORD T175;
  volatile DWORD T176;
  volatile DWORD T177;
  volatile DWORD T178;
  volatile dylan_value T179;
  volatile dylan_value T180;
  volatile DWORD T181;
  volatile dylan_value T182;
  volatile dylan_value T183;
  volatile DWORD T184;
  volatile DWORD T185;
  volatile dylan_value T186;
  volatile dylan_value T187;
  volatile DWORD T188;
  volatile DWORD T189;
  volatile dylan_value T190;
  volatile dylan_value T191;
  volatile DWORD T192;
  volatile dylan_value T193;
  volatile dylan_value T194;
  volatile DWORD T195;
  volatile dylan_value T196;
  volatile dylan_value T197;
  volatile DWORD T198;
  volatile DWORD T199;
  volatile dylan_value T200;
  volatile dylan_value T201;
  volatile DWORD T202;
  volatile DWORD T203;
  volatile dylan_value T204;
  volatile dylan_value T205;
  volatile dylan_value T206;
  volatile dylan_value T207;
  volatile DWORD T208;
  volatile DWORD T209;
  volatile DWORD T210;
  volatile DWORD T211;
  volatile dylan_value T212;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:272
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T3 = Kclone_dateYsystem_internalsVsystemI(x_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T4 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T5 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T7 = primitive_cast_integer_as_raw(T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T8 = primitive_machine_word_logxor(T7,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T9 = primitive_machine_word_add_signal_overflow(T6,T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T10 = primitive_cast_raw_as_integer(T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  SLOT_VALUE_SETTER(T10, T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T19 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T20 = primitive_cast_integer_as_raw(T19);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T21 = primitive_machine_word_subtract_signal_overflow(T20,4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T22 = primitive_machine_word_less_thanQ(-3,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T22 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T23 = primitive_machine_word_less_thanQ(T21,49);
    T11 = T23;
  } else {
    T11 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T11 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T24 = primitive_machine_word_shift_right(T21,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T25_0 = primitive_machine_word_floorS_byref(T24,12,(DWORD*)&T25_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    quotientF26 = T25_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    remainderF27 = T25_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T28 = primitive_machine_word_shift_left_signal_overflow(quotientF26,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T29 = primitive_machine_word_shift_left_signal_overflow(remainderF27,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T30 = primitive_machine_word_logior(T29,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T31 = primitive_machine_word_add_signal_overflow(T30,4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T32 = primitive_cast_raw_as_integer(T31);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T32, T3, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T33 = SLOT_VALUE(T3, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T34 = primitive_cast_integer_as_raw(T33);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T35 = primitive_machine_word_add_signal_overflow(T34,T28);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T36 = primitive_cast_raw_as_integer(T35);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T36, T3, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T37 = SLOT_VALUE(T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T38 = SLOT_VALUE(T3, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T39 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T12 = Kdays_in_monthYsystem_internalsVsystemI(T38, T39);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T40 = primitive_cast_integer_as_raw(T12);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T41 = primitive_cast_integer_as_raw(T37);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T42 = primitive_machine_word_less_thanQ(T40,T41);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T42 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_4_);
    if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_4_))) {
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      Uoriginal_handlersU_ = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T15 = MAKE_CLOSURE_INITD(&KUhandler_functionUF181, 3, Uoriginal_handlersU_, Uunwind_exceptionUPexit_4_, T3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T43 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T44 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T45.vector_element_[0] = IKJyear_;
      T45.vector_element_[1] = T43;
      T45.vector_element_[2] = IKJmonth_;
      T45.vector_element_[3] = T44;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T46 = primitive_copy_vector(&T45);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T47.vector_element_[0] = &KJtype_;
      T47.vector_element_[1] = &KLdate_arithmetic_use_last_valid_dayGYdateVsystem;
      T47.vector_element_[2] = &KJfunction_;
      T47.vector_element_[3] = T15;
      T47.vector_element_[4] = &KJtest_;
      T47.vector_element_[5] = &KPfalseVKi;
      T47.vector_element_[6] = &KJinit_arguments_;
      T47.vector_element_[7] = T46;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T48_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T47, &KLdate_arithmetic_use_last_valid_dayGYdateVsystem, T15, &KPfalseVKi, T46);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T49 = T48_0;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T16 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T50 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      SLOT_VALUE_SETTER(T49, T50, 0);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      SLOT_VALUE_SETTER(T16, T50, 1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      primitive_write_thread_variable(Tcurrent_handlersTVKi, T50);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      ENTER_UNWIND_FRAME(T17);
      if (!nlx_setjmp(FRAME_DEST(T17))) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T51 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T52 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T53 = SLOT_VALUE(T3, 4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T54.vector_element_[0] = IKJyear_;
        T54.vector_element_[1] = T51;
        T54.vector_element_[2] = IKJmonth_;
        T54.vector_element_[3] = T52;
        T54.vector_element_[4] = IKJday_;
        T54.vector_element_[5] = T53;
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
        T18 = CONGRUENT_CALL2(&KLdate_arithmetic_invalid_dayGYdateVsystem, &T54);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        KsignalVKdMM0I(T18, &KPempty_vectorVKi);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        FALL_THROUGH_UNWIND(&KPfalseVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersU_);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      CONTINUE_UNWIND();
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      /* invalidate Uunwind_exceptionUPexit_4_ */
    }
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T55 = SLOT_VALUE(T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T56 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T57 = primitive_cast_integer_as_raw(T55);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T58 = primitive_cast_integer_as_raw(T56);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T59 = primitive_machine_word_logxor(T58,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T60 = primitive_machine_word_add_signal_overflow(T57,T59);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T61 = primitive_cast_raw_as_integer(T60);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  SLOT_VALUE_SETTER(T61, T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T62 = SLOT_VALUE_INITD(T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T63 = SLOT_VALUE_INITD(y_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T64 = primitive_cast_integer_as_raw(T62);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T65 = primitive_cast_integer_as_raw(T63);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T66 = primitive_machine_word_logxor(T65,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T67 = primitive_machine_word_add_signal_overflow(T64,T66);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T68 = primitive_cast_raw_as_integer(T67);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  SLOT_VALUE_SETTER(T68, T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T69 = SLOT_VALUE_INITD(T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T70 = SLOT_VALUE_INITD(y_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T71 = primitive_cast_integer_as_raw(T69);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T72 = primitive_cast_integer_as_raw(T70);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T73 = primitive_machine_word_logxor(T72,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T74 = primitive_machine_word_add_signal_overflow(T71,T73);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T75 = primitive_cast_raw_as_integer(T74);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  SLOT_VALUE_SETTER(T75, T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T86 = SLOT_VALUE_INITD(T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T87 = primitive_cast_integer_as_raw(T86);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T88 = primitive_machine_word_less_thanQ(-3,T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T88 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T89 = SLOT_VALUE_INITD(T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T90 = primitive_cast_integer_as_raw(T89);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T91 = primitive_machine_word_less_thanQ(T90,4000001);
    T76 = T91;
  } else {
    T76 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T76 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T92 = SLOT_VALUE_INITD(T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T93 = primitive_cast_integer_as_raw(T92);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T94 = primitive_machine_word_shift_right(T93,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T95_0 = primitive_machine_word_floorS_byref(T94,1000000,(DWORD*)&T95_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    quotientF96 = T95_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    remainderF97 = T95_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T98 = primitive_machine_word_shift_left_signal_overflow(quotientF96,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T99 = primitive_machine_word_shift_left_signal_overflow(remainderF97,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T100 = primitive_machine_word_logior(T99,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T101 = primitive_cast_raw_as_integer(T100);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T101, T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T102 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T103 = primitive_cast_integer_as_raw(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T104 = primitive_machine_word_add_signal_overflow(T103,T98);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T105 = primitive_cast_raw_as_integer(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T105, T3, 7);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T106 = SLOT_VALUE_INITD(T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T107 = primitive_cast_integer_as_raw(T106);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T108 = primitive_machine_word_less_thanQ(-3,T107);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T108 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T109 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T110 = primitive_cast_integer_as_raw(T109);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T111 = primitive_machine_word_less_thanQ(T110,241);
    T77 = T111;
  } else {
    T77 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T77 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T112 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T113 = primitive_cast_integer_as_raw(T112);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T114 = primitive_machine_word_shift_right(T113,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T115_0 = primitive_machine_word_floorS_byref(T114,60,(DWORD*)&T115_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    quotientF116 = T115_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    remainderF117 = T115_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T118 = primitive_machine_word_shift_left_signal_overflow(quotientF116,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T119 = primitive_machine_word_shift_left_signal_overflow(remainderF117,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T120 = primitive_machine_word_logior(T119,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T121 = primitive_cast_raw_as_integer(T120);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T121, T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T122 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T123 = primitive_cast_integer_as_raw(T122);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T124 = primitive_machine_word_add_signal_overflow(T123,T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T125 = primitive_cast_raw_as_integer(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T125, T3, 6);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T126 = SLOT_VALUE_INITD(T3, 6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T127 = primitive_cast_integer_as_raw(T126);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T128 = primitive_machine_word_less_thanQ(-3,T127);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T128 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T129 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T131 = primitive_machine_word_less_thanQ(T130,241);
    T78 = T131;
  } else {
    T78 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T78 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T132 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T133 = primitive_cast_integer_as_raw(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T134 = primitive_machine_word_shift_right(T133,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T135_0 = primitive_machine_word_floorS_byref(T134,60,(DWORD*)&T135_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    quotientF136 = T135_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    remainderF137 = T135_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T138 = primitive_machine_word_shift_left_signal_overflow(quotientF136,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T139 = primitive_machine_word_shift_left_signal_overflow(remainderF137,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T140 = primitive_machine_word_logior(T139,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T141 = primitive_cast_raw_as_integer(T140);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T141, T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T142 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T143 = primitive_cast_integer_as_raw(T142);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T144 = primitive_machine_word_add_signal_overflow(T143,T138);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T145 = primitive_cast_raw_as_integer(T144);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T145, T3, 5);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T146 = SLOT_VALUE_INITD(T3, 5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T147 = primitive_cast_integer_as_raw(T146);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T148 = primitive_machine_word_less_thanQ(-3,T147);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T148 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T149 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T150 = primitive_cast_integer_as_raw(T149);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T151 = primitive_machine_word_less_thanQ(T150,97);
    T79 = T151;
  } else {
    T79 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  if (T79 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T152 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T153 = primitive_cast_integer_as_raw(T152);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T154 = primitive_machine_word_shift_right(T153,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T155_0 = primitive_machine_word_floorS_byref(T154,24,(DWORD*)&T155_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    quotientF156 = T155_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    remainderF157 = T155_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T158 = primitive_machine_word_shift_left_signal_overflow(quotientF156,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T159 = primitive_machine_word_shift_left_signal_overflow(remainderF157,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T160 = primitive_machine_word_logior(T159,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T161 = primitive_cast_raw_as_integer(T160);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T161, T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T162 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T163 = primitive_cast_integer_as_raw(T162);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T164 = primitive_machine_word_add_signal_overflow(T163,T158);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T165 = primitive_cast_raw_as_integer(T164);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    SLOT_VALUE_SETTER(T165, T3, 4);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
L0: ;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T166 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T167 = SLOT_VALUE(T3, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T168 = SLOT_VALUE(T3, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T82 = Kdays_in_monthYsystem_internalsVsystemI(T167, T168);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T169 = primitive_cast_integer_as_raw(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T170 = primitive_cast_integer_as_raw(T166);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T171 = primitive_machine_word_less_thanQ(T169,T170);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    if (T171 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T172 = SLOT_VALUE(T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T173 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T174 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T80 = Kdays_in_monthYsystem_internalsVsystemI(T173, T174);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T175 = primitive_cast_integer_as_raw(T172);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T176 = primitive_cast_integer_as_raw(T80);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T177 = primitive_machine_word_logxor(T176,1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T178 = primitive_machine_word_subtract_signal_overflow(T175,T177);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T179 = primitive_cast_raw_as_integer(T178);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      SLOT_VALUE_SETTER(T179, T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T180 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T181 = primitive_cast_integer_as_raw(T180);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T182 = primitive_machine_word_equalQ(T181,49);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      if (T182 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T183 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T184 = primitive_cast_integer_as_raw(T183);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T185 = primitive_machine_word_add_signal_overflow(T184,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T186 = primitive_cast_raw_as_integer(T185);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        SLOT_VALUE_SETTER(T186, T3, 2);
        T81 = (dylan_value) 5;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T187 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T188 = primitive_cast_integer_as_raw(T187);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T189 = primitive_machine_word_add_signal_overflow(T188,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T190 = primitive_cast_raw_as_integer(T189);
        T81 = T190;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      SLOT_VALUE_SETTER(T81, T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      goto L0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
L1: ;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T191 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T192 = primitive_cast_integer_as_raw(T191);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    T193 = primitive_machine_word_less_thanQ(T192,5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    if (T193 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T194 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T195 = primitive_cast_integer_as_raw(T194);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T196 = primitive_machine_word_equalQ(T195,5);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      if (T196 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T197 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T198 = primitive_cast_integer_as_raw(T197);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T199 = primitive_machine_word_subtract_signal_overflow(T198,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T200 = primitive_cast_raw_as_integer(T199);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        SLOT_VALUE_SETTER(T200, T3, 2);
        T83 = (dylan_value) 49;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T201 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T202 = primitive_cast_integer_as_raw(T201);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T203 = primitive_machine_word_subtract_signal_overflow(T202,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
        T204 = primitive_cast_raw_as_integer(T203);
        T83 = T204;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      SLOT_VALUE_SETTER(T83, T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T205 = SLOT_VALUE(T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T206 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T207 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T84 = Kdays_in_monthYsystem_internalsVsystemI(T206, T207);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T208 = primitive_cast_integer_as_raw(T205);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T209 = primitive_cast_integer_as_raw(T84);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T210 = primitive_machine_word_logxor(T209,1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T211 = primitive_machine_word_add_signal_overflow(T208,T210);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      T212 = primitive_cast_raw_as_integer(T211);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      SLOT_VALUE_SETTER(T212, T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
      goto L1;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T85_0 = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:272
  MV_SET_COUNT(1);
  return(T85_0);
}

dylan_value KAVKdMsystemM1I (dylan_value x_, dylan_value y_) {
  volatile dylan_value T3;
  volatile dylan_value T4;
  volatile dylan_value T5;
  volatile DWORD T6;
  volatile DWORD T7;
  volatile DWORD T8;
  volatile DWORD T9;
  volatile dylan_value T10;
  volatile dylan_value T11;
  volatile dylan_value T12;
  volatile dylan_value Uunwind_exceptionUPexit_4_;
  volatile dylan_value Uoriginal_handlersU_;
  volatile dylan_value T15;
  volatile dylan_value T16;
  volatile dylan_value T17;
  volatile dylan_value T18;
  volatile dylan_value T19;
  volatile DWORD T20;
  volatile DWORD T21;
  volatile dylan_value T22;
  volatile dylan_value T23;
  volatile DWORD T24;
  volatile DWORD T25_0;
  volatile DWORD T25_1;
  volatile DWORD quotientF26;
  volatile DWORD remainderF27;
  volatile DWORD T28;
  volatile DWORD T29;
  volatile DWORD T30;
  volatile DWORD T31;
  volatile dylan_value T32;
  volatile dylan_value T33;
  volatile DWORD T34;
  volatile DWORD T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile dylan_value T38;
  volatile dylan_value T39;
  volatile DWORD T40;
  volatile DWORD T41;
  volatile dylan_value T42;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile _KLsimple_object_vectorGVKd_4 T45 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  volatile dylan_value T46;
  volatile _KLsimple_object_vectorGVKd_8 T47 = {&KLsimple_object_vectorGVKdW, (dylan_value) 33};
  volatile dylan_value T48_0;
  volatile dylan_value T49;
  volatile dylan_value T50;
  volatile dylan_value T51;
  volatile dylan_value T52;
  volatile dylan_value T53;
  volatile _KLsimple_object_vectorGVKd_6 T54 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};
  volatile dylan_value T55;
  volatile dylan_value T56;
  volatile DWORD T57;
  volatile DWORD T58;
  volatile DWORD T59;
  volatile DWORD T60;
  volatile dylan_value T61;
  volatile dylan_value T62;
  volatile dylan_value T63;
  volatile DWORD T64;
  volatile DWORD T65;
  volatile DWORD T66;
  volatile DWORD T67;
  volatile dylan_value T68;
  volatile dylan_value T69;
  volatile dylan_value T70;
  volatile DWORD T71;
  volatile DWORD T72;
  volatile DWORD T73;
  volatile DWORD T74;
  volatile dylan_value T75;
  volatile dylan_value T76;
  volatile dylan_value T77;
  volatile dylan_value T78;
  volatile dylan_value T79;
  volatile dylan_value T80;
  volatile dylan_value T81;
  volatile dylan_value T82;
  volatile dylan_value T83;
  volatile dylan_value T84;
  volatile dylan_value T85_0;
  volatile dylan_value T86;
  volatile DWORD T87;
  volatile dylan_value T88;
  volatile dylan_value T89;
  volatile DWORD T90;
  volatile dylan_value T91;
  volatile dylan_value T92;
  volatile DWORD T93;
  volatile DWORD T94;
  volatile DWORD T95_0;
  volatile DWORD T95_1;
  volatile DWORD quotientF96;
  volatile DWORD remainderF97;
  volatile DWORD T98;
  volatile DWORD T99;
  volatile DWORD T100;
  volatile dylan_value T101;
  volatile dylan_value T102;
  volatile DWORD T103;
  volatile DWORD T104;
  volatile dylan_value T105;
  volatile dylan_value T106;
  volatile DWORD T107;
  volatile dylan_value T108;
  volatile dylan_value T109;
  volatile DWORD T110;
  volatile dylan_value T111;
  volatile dylan_value T112;
  volatile DWORD T113;
  volatile DWORD T114;
  volatile DWORD T115_0;
  volatile DWORD T115_1;
  volatile DWORD quotientF116;
  volatile DWORD remainderF117;
  volatile DWORD T118;
  volatile DWORD T119;
  volatile DWORD T120;
  volatile dylan_value T121;
  volatile dylan_value T122;
  volatile DWORD T123;
  volatile DWORD T124;
  volatile dylan_value T125;
  volatile dylan_value T126;
  volatile DWORD T127;
  volatile dylan_value T128;
  volatile dylan_value T129;
  volatile DWORD T130;
  volatile dylan_value T131;
  volatile dylan_value T132;
  volatile DWORD T133;
  volatile DWORD T134;
  volatile DWORD T135_0;
  volatile DWORD T135_1;
  volatile DWORD quotientF136;
  volatile DWORD remainderF137;
  volatile DWORD T138;
  volatile DWORD T139;
  volatile DWORD T140;
  volatile dylan_value T141;
  volatile dylan_value T142;
  volatile DWORD T143;
  volatile DWORD T144;
  volatile dylan_value T145;
  volatile dylan_value T146;
  volatile DWORD T147;
  volatile dylan_value T148;
  volatile dylan_value T149;
  volatile DWORD T150;
  volatile dylan_value T151;
  volatile dylan_value T152;
  volatile DWORD T153;
  volatile DWORD T154;
  volatile DWORD T155_0;
  volatile DWORD T155_1;
  volatile DWORD quotientF156;
  volatile DWORD remainderF157;
  volatile DWORD T158;
  volatile DWORD T159;
  volatile DWORD T160;
  volatile dylan_value T161;
  volatile dylan_value T162;
  volatile DWORD T163;
  volatile DWORD T164;
  volatile dylan_value T165;
  volatile dylan_value T166;
  volatile dylan_value T167;
  volatile dylan_value T168;
  volatile DWORD T169;
  volatile DWORD T170;
  volatile dylan_value T171;
  volatile dylan_value T172;
  volatile dylan_value T173;
  volatile dylan_value T174;
  volatile DWORD T175;
  volatile DWORD T176;
  volatile DWORD T177;
  volatile DWORD T178;
  volatile dylan_value T179;
  volatile dylan_value T180;
  volatile DWORD T181;
  volatile dylan_value T182;
  volatile dylan_value T183;
  volatile DWORD T184;
  volatile DWORD T185;
  volatile dylan_value T186;
  volatile dylan_value T187;
  volatile DWORD T188;
  volatile DWORD T189;
  volatile dylan_value T190;
  volatile dylan_value T191;
  volatile DWORD T192;
  volatile dylan_value T193;
  volatile dylan_value T194;
  volatile DWORD T195;
  volatile dylan_value T196;
  volatile dylan_value T197;
  volatile DWORD T198;
  volatile DWORD T199;
  volatile dylan_value T200;
  volatile dylan_value T201;
  volatile DWORD T202;
  volatile DWORD T203;
  volatile dylan_value T204;
  volatile dylan_value T205;
  volatile dylan_value T206;
  volatile dylan_value T207;
  volatile DWORD T208;
  volatile DWORD T209;
  volatile DWORD T210;
  volatile DWORD T211;
  volatile dylan_value T212;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:276
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T3 = Kclone_dateYsystem_internalsVsystemI(y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T4 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T5 = SLOT_VALUE_INITD(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T7 = primitive_cast_integer_as_raw(T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T8 = primitive_machine_word_logxor(T7,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T9 = primitive_machine_word_add_signal_overflow(T6,T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T10 = primitive_cast_raw_as_integer(T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  SLOT_VALUE_SETTER(T10, T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T19 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T20 = primitive_cast_integer_as_raw(T19);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T21 = primitive_machine_word_subtract_signal_overflow(T20,4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T22 = primitive_machine_word_less_thanQ(-3,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T22 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T23 = primitive_machine_word_less_thanQ(T21,49);
    T11 = T23;
  } else {
    T11 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T11 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T24 = primitive_machine_word_shift_right(T21,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T25_0 = primitive_machine_word_floorS_byref(T24,12,(DWORD*)&T25_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    quotientF26 = T25_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    remainderF27 = T25_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T28 = primitive_machine_word_shift_left_signal_overflow(quotientF26,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T29 = primitive_machine_word_shift_left_signal_overflow(remainderF27,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T30 = primitive_machine_word_logior(T29,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T31 = primitive_machine_word_add_signal_overflow(T30,4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T32 = primitive_cast_raw_as_integer(T31);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T32, T3, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T33 = SLOT_VALUE(T3, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T34 = primitive_cast_integer_as_raw(T33);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T35 = primitive_machine_word_add_signal_overflow(T34,T28);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T36 = primitive_cast_raw_as_integer(T35);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T36, T3, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T37 = SLOT_VALUE(T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T38 = SLOT_VALUE(T3, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T39 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T12 = Kdays_in_monthYsystem_internalsVsystemI(T38, T39);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T40 = primitive_cast_integer_as_raw(T12);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T41 = primitive_cast_integer_as_raw(T37);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T42 = primitive_machine_word_less_thanQ(T40,T41);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T42 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_4_);
    if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_4_))) {
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      Uoriginal_handlersU_ = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T15 = MAKE_CLOSURE_INITD(&KUhandler_functionUF176, 3, Uoriginal_handlersU_, Uunwind_exceptionUPexit_4_, T3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T43 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T44 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T45.vector_element_[0] = IKJyear_;
      T45.vector_element_[1] = T43;
      T45.vector_element_[2] = IKJmonth_;
      T45.vector_element_[3] = T44;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T46 = primitive_copy_vector(&T45);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T47.vector_element_[0] = &KJtype_;
      T47.vector_element_[1] = &KLdate_arithmetic_use_last_valid_dayGYdateVsystem;
      T47.vector_element_[2] = &KJfunction_;
      T47.vector_element_[3] = T15;
      T47.vector_element_[4] = &KJtest_;
      T47.vector_element_[5] = &KPfalseVKi;
      T47.vector_element_[6] = &KJinit_arguments_;
      T47.vector_element_[7] = T46;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T48_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T47, &KLdate_arithmetic_use_last_valid_dayGYdateVsystem, T15, &KPfalseVKi, T46);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T49 = T48_0;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T16 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T50 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      SLOT_VALUE_SETTER(T49, T50, 0);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      SLOT_VALUE_SETTER(T16, T50, 1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      primitive_write_thread_variable(Tcurrent_handlersTVKi, T50);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      ENTER_UNWIND_FRAME(T17);
      if (!nlx_setjmp(FRAME_DEST(T17))) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T51 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T52 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T53 = SLOT_VALUE(T3, 4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T54.vector_element_[0] = IKJyear_;
        T54.vector_element_[1] = T51;
        T54.vector_element_[2] = IKJmonth_;
        T54.vector_element_[3] = T52;
        T54.vector_element_[4] = IKJday_;
        T54.vector_element_[5] = T53;
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
        T18 = CONGRUENT_CALL2(&KLdate_arithmetic_invalid_dayGYdateVsystem, &T54);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        KsignalVKdMM0I(T18, &KPempty_vectorVKi);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        FALL_THROUGH_UNWIND(&KPfalseVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersU_);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      CONTINUE_UNWIND();
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      /* invalidate Uunwind_exceptionUPexit_4_ */
    }
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T55 = SLOT_VALUE(T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T56 = SLOT_VALUE_INITD(x_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T57 = primitive_cast_integer_as_raw(T55);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T58 = primitive_cast_integer_as_raw(T56);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T59 = primitive_machine_word_logxor(T58,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T60 = primitive_machine_word_add_signal_overflow(T57,T59);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T61 = primitive_cast_raw_as_integer(T60);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  SLOT_VALUE_SETTER(T61, T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T62 = SLOT_VALUE_INITD(T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T63 = SLOT_VALUE_INITD(x_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T64 = primitive_cast_integer_as_raw(T62);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T65 = primitive_cast_integer_as_raw(T63);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T66 = primitive_machine_word_logxor(T65,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T67 = primitive_machine_word_add_signal_overflow(T64,T66);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T68 = primitive_cast_raw_as_integer(T67);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  SLOT_VALUE_SETTER(T68, T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T69 = SLOT_VALUE_INITD(T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T70 = SLOT_VALUE_INITD(x_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T71 = primitive_cast_integer_as_raw(T69);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T72 = primitive_cast_integer_as_raw(T70);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T73 = primitive_machine_word_logxor(T72,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T74 = primitive_machine_word_add_signal_overflow(T71,T73);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T75 = primitive_cast_raw_as_integer(T74);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  SLOT_VALUE_SETTER(T75, T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T86 = SLOT_VALUE_INITD(T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T87 = primitive_cast_integer_as_raw(T86);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T88 = primitive_machine_word_less_thanQ(-3,T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T88 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T89 = SLOT_VALUE_INITD(T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T90 = primitive_cast_integer_as_raw(T89);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T91 = primitive_machine_word_less_thanQ(T90,4000001);
    T76 = T91;
  } else {
    T76 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T76 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T92 = SLOT_VALUE_INITD(T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T93 = primitive_cast_integer_as_raw(T92);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T94 = primitive_machine_word_shift_right(T93,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T95_0 = primitive_machine_word_floorS_byref(T94,1000000,(DWORD*)&T95_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    quotientF96 = T95_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    remainderF97 = T95_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T98 = primitive_machine_word_shift_left_signal_overflow(quotientF96,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T99 = primitive_machine_word_shift_left_signal_overflow(remainderF97,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T100 = primitive_machine_word_logior(T99,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T101 = primitive_cast_raw_as_integer(T100);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T101, T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T102 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T103 = primitive_cast_integer_as_raw(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T104 = primitive_machine_word_add_signal_overflow(T103,T98);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T105 = primitive_cast_raw_as_integer(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T105, T3, 7);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T106 = SLOT_VALUE_INITD(T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T107 = primitive_cast_integer_as_raw(T106);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T108 = primitive_machine_word_less_thanQ(-3,T107);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T108 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T109 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T110 = primitive_cast_integer_as_raw(T109);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T111 = primitive_machine_word_less_thanQ(T110,241);
    T77 = T111;
  } else {
    T77 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T77 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T112 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T113 = primitive_cast_integer_as_raw(T112);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T114 = primitive_machine_word_shift_right(T113,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T115_0 = primitive_machine_word_floorS_byref(T114,60,(DWORD*)&T115_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    quotientF116 = T115_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    remainderF117 = T115_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T118 = primitive_machine_word_shift_left_signal_overflow(quotientF116,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T119 = primitive_machine_word_shift_left_signal_overflow(remainderF117,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T120 = primitive_machine_word_logior(T119,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T121 = primitive_cast_raw_as_integer(T120);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T121, T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T122 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T123 = primitive_cast_integer_as_raw(T122);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T124 = primitive_machine_word_add_signal_overflow(T123,T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T125 = primitive_cast_raw_as_integer(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T125, T3, 6);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T126 = SLOT_VALUE_INITD(T3, 6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T127 = primitive_cast_integer_as_raw(T126);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T128 = primitive_machine_word_less_thanQ(-3,T127);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T128 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T129 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T131 = primitive_machine_word_less_thanQ(T130,241);
    T78 = T131;
  } else {
    T78 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T78 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T132 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T133 = primitive_cast_integer_as_raw(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T134 = primitive_machine_word_shift_right(T133,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T135_0 = primitive_machine_word_floorS_byref(T134,60,(DWORD*)&T135_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    quotientF136 = T135_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    remainderF137 = T135_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T138 = primitive_machine_word_shift_left_signal_overflow(quotientF136,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T139 = primitive_machine_word_shift_left_signal_overflow(remainderF137,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T140 = primitive_machine_word_logior(T139,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T141 = primitive_cast_raw_as_integer(T140);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T141, T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T142 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T143 = primitive_cast_integer_as_raw(T142);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T144 = primitive_machine_word_add_signal_overflow(T143,T138);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T145 = primitive_cast_raw_as_integer(T144);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T145, T3, 5);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T146 = SLOT_VALUE_INITD(T3, 5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T147 = primitive_cast_integer_as_raw(T146);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T148 = primitive_machine_word_less_thanQ(-3,T147);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T148 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T149 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T150 = primitive_cast_integer_as_raw(T149);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T151 = primitive_machine_word_less_thanQ(T150,97);
    T79 = T151;
  } else {
    T79 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  if (T79 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T152 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T153 = primitive_cast_integer_as_raw(T152);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T154 = primitive_machine_word_shift_right(T153,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T155_0 = primitive_machine_word_floorS_byref(T154,24,(DWORD*)&T155_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    quotientF156 = T155_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    remainderF157 = T155_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T158 = primitive_machine_word_shift_left_signal_overflow(quotientF156,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T159 = primitive_machine_word_shift_left_signal_overflow(remainderF157,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T160 = primitive_machine_word_logior(T159,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T161 = primitive_cast_raw_as_integer(T160);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T161, T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T162 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T163 = primitive_cast_integer_as_raw(T162);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T164 = primitive_machine_word_add_signal_overflow(T163,T158);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T165 = primitive_cast_raw_as_integer(T164);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    SLOT_VALUE_SETTER(T165, T3, 4);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
L0: ;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T166 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T167 = SLOT_VALUE(T3, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T168 = SLOT_VALUE(T3, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T82 = Kdays_in_monthYsystem_internalsVsystemI(T167, T168);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T169 = primitive_cast_integer_as_raw(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T170 = primitive_cast_integer_as_raw(T166);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T171 = primitive_machine_word_less_thanQ(T169,T170);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    if (T171 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T172 = SLOT_VALUE(T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T173 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T174 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T80 = Kdays_in_monthYsystem_internalsVsystemI(T173, T174);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T175 = primitive_cast_integer_as_raw(T172);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T176 = primitive_cast_integer_as_raw(T80);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T177 = primitive_machine_word_logxor(T176,1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T178 = primitive_machine_word_subtract_signal_overflow(T175,T177);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T179 = primitive_cast_raw_as_integer(T178);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      SLOT_VALUE_SETTER(T179, T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T180 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T181 = primitive_cast_integer_as_raw(T180);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T182 = primitive_machine_word_equalQ(T181,49);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      if (T182 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T183 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T184 = primitive_cast_integer_as_raw(T183);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T185 = primitive_machine_word_add_signal_overflow(T184,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T186 = primitive_cast_raw_as_integer(T185);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        SLOT_VALUE_SETTER(T186, T3, 2);
        T81 = (dylan_value) 5;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T187 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T188 = primitive_cast_integer_as_raw(T187);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T189 = primitive_machine_word_add_signal_overflow(T188,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T190 = primitive_cast_raw_as_integer(T189);
        T81 = T190;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      SLOT_VALUE_SETTER(T81, T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      goto L0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
L1: ;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T191 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T192 = primitive_cast_integer_as_raw(T191);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    T193 = primitive_machine_word_less_thanQ(T192,5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    if (T193 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T194 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T195 = primitive_cast_integer_as_raw(T194);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T196 = primitive_machine_word_equalQ(T195,5);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      if (T196 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T197 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T198 = primitive_cast_integer_as_raw(T197);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T199 = primitive_machine_word_subtract_signal_overflow(T198,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T200 = primitive_cast_raw_as_integer(T199);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        SLOT_VALUE_SETTER(T200, T3, 2);
        T83 = (dylan_value) 49;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T201 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T202 = primitive_cast_integer_as_raw(T201);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T203 = primitive_machine_word_subtract_signal_overflow(T202,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
        T204 = primitive_cast_raw_as_integer(T203);
        T83 = T204;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      SLOT_VALUE_SETTER(T83, T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T205 = SLOT_VALUE(T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T206 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T207 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T84 = Kdays_in_monthYsystem_internalsVsystemI(T206, T207);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T208 = primitive_cast_integer_as_raw(T205);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T209 = primitive_cast_integer_as_raw(T84);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T210 = primitive_machine_word_logxor(T209,1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T211 = primitive_machine_word_add_signal_overflow(T208,T210);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      T212 = primitive_cast_raw_as_integer(T211);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      SLOT_VALUE_SETTER(T212, T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
      goto L1;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T85_0 = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:276
  MV_SET_COUNT(1);
  return(T85_0);
}

dylan_value K_VKdMsystemM0I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7_0;
  DWORD T8;
  DWORD T9;
  DWORD T10;
  DWORD T11;
  dylan_value T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  DWORD T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value T19;
  DWORD T20;
  DWORD T21;
  DWORD T22;
  DWORD T23;
  dylan_value T24;
  _KLsimple_object_vectorGVKd_6 T25 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:280
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T3 = Kdate_universal_dateYsystem_internalsVsystemMM0I(x_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T4 = Kdate_universal_dateYsystem_internalsVsystemMM0I(y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T8 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T9 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T10 = primitive_machine_word_logxor(T9,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T11 = primitive_machine_word_subtract_signal_overflow(T8,T10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T12 = primitive_cast_raw_as_integer(T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T5 = Kdate_universal_timeYsystem_internalsVsystemMM0I(x_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T6 = Kdate_universal_timeYsystem_internalsVsystemMM0I(y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T13 = primitive_cast_integer_as_raw(T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T14 = primitive_cast_integer_as_raw(T6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T15 = primitive_machine_word_logxor(T14,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T16 = primitive_machine_word_subtract_signal_overflow(T13,T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:282
  T17 = primitive_cast_raw_as_integer(T16);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T18 = SLOT_VALUE_INITD(x_, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T19 = SLOT_VALUE_INITD(y_, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T20 = primitive_cast_integer_as_raw(T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T21 = primitive_cast_integer_as_raw(T19);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T22 = primitive_machine_word_logxor(T21,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T23 = primitive_machine_word_subtract_signal_overflow(T20,T22);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:283
  T24 = primitive_cast_raw_as_integer(T23);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  T25.vector_element_[0] = IKJdays_;
  T25.vector_element_[1] = T12;
  T25.vector_element_[2] = IKJseconds_;
  T25.vector_element_[3] = T17;
  T25.vector_element_[4] = IKJmicroseconds_;
  T25.vector_element_[5] = T24;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:281
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T7_0 = CONGRUENT_CALL2(&KLdayStime_durationGYdateVsystem, &T25);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:280
  MV_SET_COUNT(1);
  return(T7_0);
}

dylan_value K_VKdMsystemM1I (dylan_value x_, dylan_value y_) {
  volatile dylan_value T3;
  volatile dylan_value T4;
  volatile dylan_value T5;
  volatile DWORD T6;
  volatile DWORD T7;
  volatile DWORD T8;
  volatile DWORD T9;
  volatile dylan_value T10;
  volatile dylan_value T11;
  volatile dylan_value T12;
  volatile dylan_value Uunwind_exceptionUPexit_4_;
  volatile dylan_value Uoriginal_handlersU_;
  volatile dylan_value T15;
  volatile dylan_value T16;
  volatile dylan_value T17;
  volatile dylan_value T18;
  volatile dylan_value T19;
  volatile DWORD T20;
  volatile DWORD T21;
  volatile dylan_value T22;
  volatile dylan_value T23;
  volatile DWORD T24;
  volatile DWORD T25_0;
  volatile DWORD T25_1;
  volatile DWORD quotientF26;
  volatile DWORD remainderF27;
  volatile DWORD T28;
  volatile DWORD T29;
  volatile DWORD T30;
  volatile DWORD T31;
  volatile dylan_value T32;
  volatile dylan_value T33;
  volatile DWORD T34;
  volatile DWORD T35;
  volatile dylan_value T36;
  volatile dylan_value T37;
  volatile dylan_value T38;
  volatile dylan_value T39;
  volatile DWORD T40;
  volatile DWORD T41;
  volatile dylan_value T42;
  volatile dylan_value T43;
  volatile dylan_value T44;
  volatile _KLsimple_object_vectorGVKd_4 T45 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};
  volatile dylan_value T46;
  volatile _KLsimple_object_vectorGVKd_8 T47 = {&KLsimple_object_vectorGVKdW, (dylan_value) 33};
  volatile dylan_value T48_0;
  volatile dylan_value T49;
  volatile dylan_value T50;
  volatile dylan_value T51;
  volatile dylan_value T52;
  volatile dylan_value T53;
  volatile _KLsimple_object_vectorGVKd_6 T54 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};
  volatile dylan_value T55;
  volatile dylan_value T56;
  volatile DWORD T57;
  volatile DWORD T58;
  volatile DWORD T59;
  volatile DWORD T60;
  volatile dylan_value T61;
  volatile dylan_value T62;
  volatile dylan_value T63;
  volatile DWORD T64;
  volatile DWORD T65;
  volatile DWORD T66;
  volatile DWORD T67;
  volatile dylan_value T68;
  volatile dylan_value T69;
  volatile dylan_value T70;
  volatile DWORD T71;
  volatile DWORD T72;
  volatile DWORD T73;
  volatile DWORD T74;
  volatile dylan_value T75;
  volatile dylan_value T76;
  volatile dylan_value T77;
  volatile dylan_value T78;
  volatile dylan_value T79;
  volatile dylan_value T80;
  volatile dylan_value T81;
  volatile dylan_value T82;
  volatile dylan_value T83;
  volatile dylan_value T84;
  volatile dylan_value T85_0;
  volatile dylan_value T86;
  volatile DWORD T87;
  volatile dylan_value T88;
  volatile dylan_value T89;
  volatile DWORD T90;
  volatile dylan_value T91;
  volatile dylan_value T92;
  volatile DWORD T93;
  volatile DWORD T94;
  volatile DWORD T95_0;
  volatile DWORD T95_1;
  volatile DWORD quotientF96;
  volatile DWORD remainderF97;
  volatile DWORD T98;
  volatile DWORD T99;
  volatile DWORD T100;
  volatile dylan_value T101;
  volatile dylan_value T102;
  volatile DWORD T103;
  volatile DWORD T104;
  volatile dylan_value T105;
  volatile dylan_value T106;
  volatile DWORD T107;
  volatile dylan_value T108;
  volatile dylan_value T109;
  volatile DWORD T110;
  volatile dylan_value T111;
  volatile dylan_value T112;
  volatile DWORD T113;
  volatile DWORD T114;
  volatile DWORD T115_0;
  volatile DWORD T115_1;
  volatile DWORD quotientF116;
  volatile DWORD remainderF117;
  volatile DWORD T118;
  volatile DWORD T119;
  volatile DWORD T120;
  volatile dylan_value T121;
  volatile dylan_value T122;
  volatile DWORD T123;
  volatile DWORD T124;
  volatile dylan_value T125;
  volatile dylan_value T126;
  volatile DWORD T127;
  volatile dylan_value T128;
  volatile dylan_value T129;
  volatile DWORD T130;
  volatile dylan_value T131;
  volatile dylan_value T132;
  volatile DWORD T133;
  volatile DWORD T134;
  volatile DWORD T135_0;
  volatile DWORD T135_1;
  volatile DWORD quotientF136;
  volatile DWORD remainderF137;
  volatile DWORD T138;
  volatile DWORD T139;
  volatile DWORD T140;
  volatile dylan_value T141;
  volatile dylan_value T142;
  volatile DWORD T143;
  volatile DWORD T144;
  volatile dylan_value T145;
  volatile dylan_value T146;
  volatile DWORD T147;
  volatile dylan_value T148;
  volatile dylan_value T149;
  volatile DWORD T150;
  volatile dylan_value T151;
  volatile dylan_value T152;
  volatile DWORD T153;
  volatile DWORD T154;
  volatile DWORD T155_0;
  volatile DWORD T155_1;
  volatile DWORD quotientF156;
  volatile DWORD remainderF157;
  volatile DWORD T158;
  volatile DWORD T159;
  volatile DWORD T160;
  volatile dylan_value T161;
  volatile dylan_value T162;
  volatile DWORD T163;
  volatile DWORD T164;
  volatile dylan_value T165;
  volatile dylan_value T166;
  volatile dylan_value T167;
  volatile dylan_value T168;
  volatile DWORD T169;
  volatile DWORD T170;
  volatile dylan_value T171;
  volatile dylan_value T172;
  volatile dylan_value T173;
  volatile dylan_value T174;
  volatile DWORD T175;
  volatile DWORD T176;
  volatile DWORD T177;
  volatile DWORD T178;
  volatile dylan_value T179;
  volatile dylan_value T180;
  volatile DWORD T181;
  volatile dylan_value T182;
  volatile dylan_value T183;
  volatile DWORD T184;
  volatile DWORD T185;
  volatile dylan_value T186;
  volatile dylan_value T187;
  volatile DWORD T188;
  volatile DWORD T189;
  volatile dylan_value T190;
  volatile dylan_value T191;
  volatile DWORD T192;
  volatile dylan_value T193;
  volatile dylan_value T194;
  volatile DWORD T195;
  volatile dylan_value T196;
  volatile dylan_value T197;
  volatile DWORD T198;
  volatile DWORD T199;
  volatile dylan_value T200;
  volatile dylan_value T201;
  volatile DWORD T202;
  volatile DWORD T203;
  volatile dylan_value T204;
  volatile dylan_value T205;
  volatile dylan_value T206;
  volatile dylan_value T207;
  volatile DWORD T208;
  volatile DWORD T209;
  volatile DWORD T210;
  volatile DWORD T211;
  volatile dylan_value T212;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:286
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:287
  T3 = Kclone_dateYsystem_internalsVsystemI(x_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T4 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T5 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T7 = primitive_cast_integer_as_raw(T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T8 = primitive_machine_word_logxor(T7,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T9 = primitive_machine_word_subtract_signal_overflow(T6,T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  T10 = primitive_cast_raw_as_integer(T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:288
  SLOT_VALUE_SETTER(T10, T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T19 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T20 = primitive_cast_integer_as_raw(T19);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T21 = primitive_machine_word_subtract_signal_overflow(T20,4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T22 = primitive_machine_word_less_thanQ(-3,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  if (T22 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T23 = primitive_machine_word_less_thanQ(T21,49);
    T11 = T23;
  } else {
    T11 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  if (T11 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T24 = primitive_machine_word_shift_right(T21,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T25_0 = primitive_machine_word_floorS_byref(T24,12,(DWORD*)&T25_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    quotientF26 = T25_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    remainderF27 = T25_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T28 = primitive_machine_word_shift_left_signal_overflow(quotientF26,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T29 = primitive_machine_word_shift_left_signal_overflow(remainderF27,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T30 = primitive_machine_word_logior(T29,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T31 = primitive_machine_word_add_signal_overflow(T30,4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T32 = primitive_cast_raw_as_integer(T31);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    SLOT_VALUE_SETTER(T32, T3, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T33 = SLOT_VALUE(T3, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T34 = primitive_cast_integer_as_raw(T33);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T35 = primitive_machine_word_add_signal_overflow(T34,T28);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    T36 = primitive_cast_raw_as_integer(T35);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    SLOT_VALUE_SETTER(T36, T3, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T37 = SLOT_VALUE(T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T38 = SLOT_VALUE(T3, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T39 = SLOT_VALUE(T3, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T12 = Kdays_in_monthYsystem_internalsVsystemI(T38, T39);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T40 = primitive_cast_integer_as_raw(T12);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T41 = primitive_cast_integer_as_raw(T37);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T42 = primitive_machine_word_less_thanQ(T40,T41);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  if (T42 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
    ENTER_EXIT_FRAME(Uunwind_exceptionUPexit_4_);
    if (nlx_setjmp(FRAME_DEST(Uunwind_exceptionUPexit_4_))) {
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      Uoriginal_handlersU_ = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T15 = MAKE_CLOSURE_INITD(&KUhandler_functionUF114, 3, Uoriginal_handlersU_, Uunwind_exceptionUPexit_4_, T3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T43 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T44 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T45.vector_element_[0] = IKJyear_;
      T45.vector_element_[1] = T43;
      T45.vector_element_[2] = IKJmonth_;
      T45.vector_element_[3] = T44;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T46 = primitive_copy_vector(&T45);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T47.vector_element_[0] = &KJtype_;
      T47.vector_element_[1] = &KLdate_arithmetic_use_last_valid_dayGYdateVsystem;
      T47.vector_element_[2] = &KJfunction_;
      T47.vector_element_[3] = T15;
      T47.vector_element_[4] = &KJtest_;
      T47.vector_element_[5] = &KPfalseVKi;
      T47.vector_element_[6] = &KJinit_arguments_;
      T47.vector_element_[7] = T46;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T48_0 = KLhandlerGZ32ZconstructorVKiMM0I(&KLhandlerGVKi, &T47, &KLdate_arithmetic_use_last_valid_dayGYdateVsystem, T15, &KPfalseVKi, T46);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T49 = T48_0;
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T16 = primitive_read_thread_variable(Tcurrent_handlersTVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      T50 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      SLOT_VALUE_SETTER(T49, T50, 0);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      SLOT_VALUE_SETTER(T16, T50, 1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      primitive_write_thread_variable(Tcurrent_handlersTVKi, T50);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      ENTER_UNWIND_FRAME(T17);
      if (!nlx_setjmp(FRAME_DEST(T17))) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        T51 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        T52 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        T53 = SLOT_VALUE(T3, 4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        T54.vector_element_[0] = IKJyear_;
        T54.vector_element_[1] = T51;
        T54.vector_element_[2] = IKJmonth_;
        T54.vector_element_[3] = T52;
        T54.vector_element_[4] = IKJday_;
        T54.vector_element_[5] = T53;
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
        T18 = CONGRUENT_CALL2(&KLdate_arithmetic_invalid_dayGYdateVsystem, &T54);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        KsignalVKdMM0I(T18, &KPempty_vectorVKi);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
        FALL_THROUGH_UNWIND(&KPfalseVKi);
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      primitive_write_thread_variable(Tcurrent_handlersTVKi, Uoriginal_handlersU_);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      CONTINUE_UNWIND();
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
      /* invalidate Uunwind_exceptionUPexit_4_ */
    }
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T55 = SLOT_VALUE(T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T56 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T57 = primitive_cast_integer_as_raw(T55);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T58 = primitive_cast_integer_as_raw(T56);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T59 = primitive_machine_word_logxor(T58,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T60 = primitive_machine_word_subtract_signal_overflow(T57,T59);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  T61 = primitive_cast_raw_as_integer(T60);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:290
  SLOT_VALUE_SETTER(T61, T3, 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T62 = SLOT_VALUE_INITD(T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T63 = SLOT_VALUE_INITD(y_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T64 = primitive_cast_integer_as_raw(T62);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T65 = primitive_cast_integer_as_raw(T63);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T66 = primitive_machine_word_logxor(T65,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T67 = primitive_machine_word_subtract_signal_overflow(T64,T66);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  T68 = primitive_cast_raw_as_integer(T67);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:291
  SLOT_VALUE_SETTER(T68, T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T69 = SLOT_VALUE_INITD(T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T70 = SLOT_VALUE_INITD(y_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T71 = primitive_cast_integer_as_raw(T69);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T72 = primitive_cast_integer_as_raw(T70);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T73 = primitive_machine_word_logxor(T72,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T74 = primitive_machine_word_subtract_signal_overflow(T71,T73);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  T75 = primitive_cast_raw_as_integer(T74);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:292
  SLOT_VALUE_SETTER(T75, T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T86 = SLOT_VALUE_INITD(T3, 8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T87 = primitive_cast_integer_as_raw(T86);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T88 = primitive_machine_word_less_thanQ(-3,T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T88 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T89 = SLOT_VALUE_INITD(T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T90 = primitive_cast_integer_as_raw(T89);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T91 = primitive_machine_word_less_thanQ(T90,4000001);
    T76 = T91;
  } else {
    T76 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T76 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T92 = SLOT_VALUE_INITD(T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T93 = primitive_cast_integer_as_raw(T92);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T94 = primitive_machine_word_shift_right(T93,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T95_0 = primitive_machine_word_floorS_byref(T94,1000000,(DWORD*)&T95_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    quotientF96 = T95_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    remainderF97 = T95_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T98 = primitive_machine_word_shift_left_signal_overflow(quotientF96,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T99 = primitive_machine_word_shift_left_signal_overflow(remainderF97,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T100 = primitive_machine_word_logior(T99,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T101 = primitive_cast_raw_as_integer(T100);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T101, T3, 8);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T102 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T103 = primitive_cast_integer_as_raw(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T104 = primitive_machine_word_add_signal_overflow(T103,T98);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T105 = primitive_cast_raw_as_integer(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T105, T3, 7);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T106 = SLOT_VALUE_INITD(T3, 7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T107 = primitive_cast_integer_as_raw(T106);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T108 = primitive_machine_word_less_thanQ(-3,T107);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T108 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T109 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T110 = primitive_cast_integer_as_raw(T109);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T111 = primitive_machine_word_less_thanQ(T110,241);
    T77 = T111;
  } else {
    T77 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T77 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T112 = SLOT_VALUE_INITD(T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T113 = primitive_cast_integer_as_raw(T112);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T114 = primitive_machine_word_shift_right(T113,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T115_0 = primitive_machine_word_floorS_byref(T114,60,(DWORD*)&T115_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    quotientF116 = T115_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    remainderF117 = T115_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T118 = primitive_machine_word_shift_left_signal_overflow(quotientF116,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T119 = primitive_machine_word_shift_left_signal_overflow(remainderF117,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T120 = primitive_machine_word_logior(T119,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T121 = primitive_cast_raw_as_integer(T120);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T121, T3, 7);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T122 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T123 = primitive_cast_integer_as_raw(T122);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T124 = primitive_machine_word_add_signal_overflow(T123,T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T125 = primitive_cast_raw_as_integer(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T125, T3, 6);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T126 = SLOT_VALUE_INITD(T3, 6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T127 = primitive_cast_integer_as_raw(T126);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T128 = primitive_machine_word_less_thanQ(-3,T127);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T128 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T129 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T131 = primitive_machine_word_less_thanQ(T130,241);
    T78 = T131;
  } else {
    T78 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T78 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T132 = SLOT_VALUE_INITD(T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T133 = primitive_cast_integer_as_raw(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T134 = primitive_machine_word_shift_right(T133,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T135_0 = primitive_machine_word_floorS_byref(T134,60,(DWORD*)&T135_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    quotientF136 = T135_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    remainderF137 = T135_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T138 = primitive_machine_word_shift_left_signal_overflow(quotientF136,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T139 = primitive_machine_word_shift_left_signal_overflow(remainderF137,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T140 = primitive_machine_word_logior(T139,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T141 = primitive_cast_raw_as_integer(T140);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T141, T3, 6);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T142 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T143 = primitive_cast_integer_as_raw(T142);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T144 = primitive_machine_word_add_signal_overflow(T143,T138);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T145 = primitive_cast_raw_as_integer(T144);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T145, T3, 5);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T146 = SLOT_VALUE_INITD(T3, 5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T147 = primitive_cast_integer_as_raw(T146);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T148 = primitive_machine_word_less_thanQ(-3,T147);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T148 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T149 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T150 = primitive_cast_integer_as_raw(T149);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T151 = primitive_machine_word_less_thanQ(T150,97);
    T79 = T151;
  } else {
    T79 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  if (T79 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T152 = SLOT_VALUE_INITD(T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T153 = primitive_cast_integer_as_raw(T152);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T154 = primitive_machine_word_shift_right(T153,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T155_0 = primitive_machine_word_floorS_byref(T154,24,(DWORD*)&T155_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    quotientF156 = T155_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    remainderF157 = T155_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T158 = primitive_machine_word_shift_left_signal_overflow(quotientF156,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T159 = primitive_machine_word_shift_left_signal_overflow(remainderF157,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T160 = primitive_machine_word_logior(T159,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T161 = primitive_cast_raw_as_integer(T160);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T161, T3, 5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T162 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T163 = primitive_cast_integer_as_raw(T162);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T164 = primitive_machine_word_add_signal_overflow(T163,T158);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T165 = primitive_cast_raw_as_integer(T164);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    SLOT_VALUE_SETTER(T165, T3, 4);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
L0: ;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T166 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T167 = SLOT_VALUE(T3, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T168 = SLOT_VALUE(T3, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T82 = Kdays_in_monthYsystem_internalsVsystemI(T167, T168);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T169 = primitive_cast_integer_as_raw(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T170 = primitive_cast_integer_as_raw(T166);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T171 = primitive_machine_word_less_thanQ(T169,T170);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    if (T171 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T172 = SLOT_VALUE(T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T173 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T174 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T80 = Kdays_in_monthYsystem_internalsVsystemI(T173, T174);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T175 = primitive_cast_integer_as_raw(T172);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T176 = primitive_cast_integer_as_raw(T80);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T177 = primitive_machine_word_logxor(T176,1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T178 = primitive_machine_word_subtract_signal_overflow(T175,T177);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T179 = primitive_cast_raw_as_integer(T178);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      SLOT_VALUE_SETTER(T179, T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T180 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T181 = primitive_cast_integer_as_raw(T180);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T182 = primitive_machine_word_equalQ(T181,49);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      if (T182 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T183 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T184 = primitive_cast_integer_as_raw(T183);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T185 = primitive_machine_word_add_signal_overflow(T184,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T186 = primitive_cast_raw_as_integer(T185);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        SLOT_VALUE_SETTER(T186, T3, 2);
        T81 = (dylan_value) 5;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T187 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T188 = primitive_cast_integer_as_raw(T187);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T189 = primitive_machine_word_add_signal_overflow(T188,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T190 = primitive_cast_raw_as_integer(T189);
        T81 = T190;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      SLOT_VALUE_SETTER(T81, T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      goto L0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
L1: ;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T191 = SLOT_VALUE(T3, 4);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T192 = primitive_cast_integer_as_raw(T191);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    T193 = primitive_machine_word_less_thanQ(T192,5);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    if (T193 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T194 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T195 = primitive_cast_integer_as_raw(T194);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T196 = primitive_machine_word_equalQ(T195,5);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      if (T196 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T197 = SLOT_VALUE(T3, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T198 = primitive_cast_integer_as_raw(T197);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T199 = primitive_machine_word_subtract_signal_overflow(T198,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T200 = primitive_cast_raw_as_integer(T199);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        SLOT_VALUE_SETTER(T200, T3, 2);
        T83 = (dylan_value) 49;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T201 = SLOT_VALUE(T3, 3);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T202 = primitive_cast_integer_as_raw(T201);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T203 = primitive_machine_word_subtract_signal_overflow(T202,4);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
        T204 = primitive_cast_raw_as_integer(T203);
        T83 = T204;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      SLOT_VALUE_SETTER(T83, T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T205 = SLOT_VALUE(T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T206 = SLOT_VALUE(T3, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T207 = SLOT_VALUE(T3, 3);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T84 = Kdays_in_monthYsystem_internalsVsystemI(T206, T207);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T208 = primitive_cast_integer_as_raw(T205);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T209 = primitive_cast_integer_as_raw(T84);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T210 = primitive_machine_word_logxor(T209,1);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T211 = primitive_machine_word_add_signal_overflow(T208,T210);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      T212 = primitive_cast_raw_as_integer(T211);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      SLOT_VALUE_SETTER(T212, T3, 4);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
      goto L1;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:293
  T85_0 = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:286
  MV_SET_COUNT(1);
  return(T85_0);
}

dylan_value KTVKdMsystemM0I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value new_;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value UtmpF19;
  dylan_value UtmpF20;
  dylan_value T21;
  DSINT T22;
  DSINT T23;
  dylan_value UtmpF24;
  dylan_value UtmpF25;
  dylan_value T26;
  DSINT T27;
  DSINT T28;
  dylan_value T29_0;
  dylan_value T30;
  DWORD T31;
  dylan_value T32;
  dylan_value T33;
  DWORD T34;
  dylan_value T35;
  dylan_value T36;
  DWORD T37;
  DWORD T38;
  DWORD T39_0;
  DWORD T39_1;
  DWORD quotientF40;
  DWORD remainderF41;
  DWORD T42;
  DWORD T43;
  DWORD T44;
  dylan_value T45;
  dylan_value T46;
  DWORD T47;
  DWORD T48;
  dylan_value T49;
  dylan_value T50;
  DWORD T51;
  dylan_value T52;
  dylan_value T53;
  DWORD T54;
  dylan_value T55;
  dylan_value T56;
  DWORD T57;
  DWORD T58;
  DWORD T59_0;
  DWORD T59_1;
  DWORD quotientF60;
  DWORD remainderF61;
  DWORD T62;
  DWORD T63;
  DWORD T64;
  dylan_value T65;
  dylan_value T66;
  DWORD T67;
  DWORD T68;
  dylan_value T69;
  dylan_value T70;
  DWORD T71;
  dylan_value T72;
  dylan_value T73;
  DWORD T74;
  dylan_value T75;
  dylan_value T76;
  DWORD T77;
  dylan_value T78;
  dylan_value T79;
  DWORD T80;
  dylan_value T81;
  dylan_value T82;
  DWORD T83;
  dylan_value T84;
  dylan_value T85;
  DWORD T86;
  DWORD T87;
  DWORD T88;
  dylan_value T89;
  dylan_value T90;
  DWORD T91;
  DWORD T92;
  DWORD T93;
  dylan_value T94;
  dylan_value T95;
  DWORD T96;
  dylan_value T97;
  dylan_value T98;
  DWORD T99;
  dylan_value T100;
  dylan_value T101;
  DWORD T102;
  dylan_value T103;
  dylan_value T104;
  DWORD T105;
  dylan_value T106;
  dylan_value T107;
  DWORD T108;
  dylan_value T109;
  dylan_value T110;
  DWORD T111;
  DWORD T112;
  DWORD T113;
  dylan_value T114;
  dylan_value T115;
  DWORD T116;
  DWORD T117;
  DWORD T118;
  dylan_value T119;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:346
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&Kclone_durationYsystem_internalsVsystem, 1);
  T3 = CONGRUENT_CALL1(x_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  primitive_type_check(T3, &KLdurationGYdateVsystem);
  new_ = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T13 = SLOT_VALUE_INITD(new_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T5 = CONGRUENT_CALL2(y_, T13);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T6 = CALL1(&KroundVKd, T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  SLOT_VALUE_SETTER(T6, new_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T14 = SLOT_VALUE_INITD(new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T7 = CONGRUENT_CALL2(y_, T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T8 = CALL1(&KroundVKd, T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  SLOT_VALUE_SETTER(T8, new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T15 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T9 = CONGRUENT_CALL2(y_, T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T10 = CALL1(&KroundVKd, T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  SLOT_VALUE_SETTER(T10, new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T16 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T11 = CONGRUENT_CALL2(y_, T16);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T12 = CALL1(&KroundVKd, T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  SLOT_VALUE_SETTER(T12, new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T30 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T31 = primitive_cast_integer_as_raw(T30);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T32 = primitive_machine_word_less_thanQ(-3999999,T31);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (T32 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T33 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T34 = primitive_cast_integer_as_raw(T33);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T35 = primitive_machine_word_less_thanQ(T34,4000001);
    T17 = T35;
  } else {
    T17 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (T17 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T36 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T37 = primitive_cast_integer_as_raw(T36);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T38 = primitive_machine_word_shift_right(T37,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T39_0 = primitive_machine_word_floorS_byref(T38,1000000,(DWORD*)&T39_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    quotientF40 = T39_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    remainderF41 = T39_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T42 = primitive_machine_word_shift_left_signal_overflow(quotientF40,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T43 = primitive_machine_word_shift_left_signal_overflow(remainderF41,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T44 = primitive_machine_word_logior(T43,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T45 = primitive_cast_raw_as_integer(T44);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T45, new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T46 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T47 = primitive_cast_integer_as_raw(T46);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T48 = primitive_machine_word_add_signal_overflow(T47,T42);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T49 = primitive_cast_raw_as_integer(T48);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T49, new_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T50 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T51 = primitive_cast_integer_as_raw(T50);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T52 = primitive_machine_word_less_thanQ(-345599,T51);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (T52 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T53 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T54 = primitive_cast_integer_as_raw(T53);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T55 = primitive_machine_word_less_thanQ(T54,345601);
    T18 = T55;
  } else {
    T18 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (T18 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T56 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T57 = primitive_cast_integer_as_raw(T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T58 = primitive_machine_word_shift_right(T57,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T59_0 = primitive_machine_word_floorS_byref(T58,86400,(DWORD*)&T59_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    quotientF60 = T59_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    remainderF61 = T59_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T62 = primitive_machine_word_shift_left_signal_overflow(quotientF60,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T63 = primitive_machine_word_shift_left_signal_overflow(remainderF61,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T64 = primitive_machine_word_logior(T63,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T65 = primitive_cast_raw_as_integer(T64);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T65, new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T66 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T67 = primitive_cast_integer_as_raw(T66);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T68 = primitive_machine_word_add_signal_overflow(T67,T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T69 = primitive_cast_raw_as_integer(T68);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T69, new_, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T70 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T71 = primitive_cast_integer_as_raw(T70);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T72 = primitive_machine_word_less_thanQ(T71,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T73 = SLOT_VALUE_INITD(new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T74 = primitive_cast_integer_as_raw(T73);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T75 = primitive_machine_word_less_thanQ(T74,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF19 = CONGRUENT_CALL2(T72, T75);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (UtmpF19 != &KPfalseVKi) {
    UtmpF20 = UtmpF19;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T76 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T77 = primitive_cast_integer_as_raw(T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T78 = primitive_machine_word_equalQ(T77,1);
    UtmpF20 = T78;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (UtmpF20 != &KPfalseVKi) {
    T21 = UtmpF20;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T79 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T80 = primitive_cast_integer_as_raw(T79);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T81 = primitive_machine_word_equalQ(T80,1);
    T21 = T81;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (T21 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T82 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T83 = primitive_cast_integer_as_raw(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T84 = primitive_machine_word_less_thanQ(T83,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T85 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    if (T84 != &KPfalseVKi) {
      T22 = -3;
    } else {
      T22 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T86 = primitive_cast_integer_as_raw(T85);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T87 = primitive_machine_word_logxor(T22,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T88 = primitive_machine_word_add_signal_overflow(T86,T87);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T89 = primitive_cast_raw_as_integer(T88);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T89, new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T90 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    if (T84 != &KPfalseVKi) {
      T23 = 345601;
    } else {
      T23 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T91 = primitive_cast_integer_as_raw(T90);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T92 = primitive_machine_word_logxor(T23,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T93 = primitive_machine_word_add_signal_overflow(T91,T92);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T94 = primitive_cast_raw_as_integer(T93);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T94, new_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T95 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T96 = primitive_cast_integer_as_raw(T95);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T97 = primitive_machine_word_less_thanQ(T96,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T98 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T99 = primitive_cast_integer_as_raw(T98);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T100 = primitive_machine_word_less_thanQ(T99,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF24 = CONGRUENT_CALL2(T97, T100);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (UtmpF24 != &KPfalseVKi) {
    UtmpF25 = UtmpF24;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T101 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T102 = primitive_cast_integer_as_raw(T101);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T103 = primitive_machine_word_equalQ(T102,1);
    UtmpF25 = T103;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (UtmpF25 != &KPfalseVKi) {
    T26 = UtmpF25;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T104 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T105 = primitive_cast_integer_as_raw(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T106 = primitive_machine_word_equalQ(T105,1);
    T26 = T106;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  if (T26 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T107 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T108 = primitive_cast_integer_as_raw(T107);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T109 = primitive_machine_word_less_thanQ(T108,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T110 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    if (T109 != &KPfalseVKi) {
      T27 = -3;
    } else {
      T27 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T111 = primitive_cast_integer_as_raw(T110);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T112 = primitive_machine_word_logxor(T27,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T113 = primitive_machine_word_add_signal_overflow(T111,T112);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T114 = primitive_cast_raw_as_integer(T113);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T114, new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T115 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    if (T109 != &KPfalseVKi) {
      T28 = 4000001;
    } else {
      T28 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T116 = primitive_cast_integer_as_raw(T115);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T117 = primitive_machine_word_logxor(T28,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T118 = primitive_machine_word_add_signal_overflow(T116,T117);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    T119 = primitive_cast_raw_as_integer(T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
    SLOT_VALUE_SETTER(T119, new_, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:347
  T29_0 = new_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:346
  MV_SET_COUNT(1);
  return(T29_0);
}

dylan_value KTVKdMsystemM1I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value new_;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  dylan_value UtmpF19;
  dylan_value UtmpF20;
  dylan_value T21;
  DSINT T22;
  DSINT T23;
  dylan_value UtmpF24;
  dylan_value UtmpF25;
  dylan_value T26;
  DSINT T27;
  DSINT T28;
  dylan_value T29_0;
  dylan_value T30;
  DWORD T31;
  dylan_value T32;
  dylan_value T33;
  DWORD T34;
  dylan_value T35;
  dylan_value T36;
  DWORD T37;
  DWORD T38;
  DWORD T39_0;
  DWORD T39_1;
  DWORD quotientF40;
  DWORD remainderF41;
  DWORD T42;
  DWORD T43;
  DWORD T44;
  dylan_value T45;
  dylan_value T46;
  DWORD T47;
  DWORD T48;
  dylan_value T49;
  dylan_value T50;
  DWORD T51;
  dylan_value T52;
  dylan_value T53;
  DWORD T54;
  dylan_value T55;
  dylan_value T56;
  DWORD T57;
  DWORD T58;
  DWORD T59_0;
  DWORD T59_1;
  DWORD quotientF60;
  DWORD remainderF61;
  DWORD T62;
  DWORD T63;
  DWORD T64;
  dylan_value T65;
  dylan_value T66;
  DWORD T67;
  DWORD T68;
  dylan_value T69;
  dylan_value T70;
  DWORD T71;
  dylan_value T72;
  dylan_value T73;
  DWORD T74;
  dylan_value T75;
  dylan_value T76;
  DWORD T77;
  dylan_value T78;
  dylan_value T79;
  DWORD T80;
  dylan_value T81;
  dylan_value T82;
  DWORD T83;
  dylan_value T84;
  dylan_value T85;
  DWORD T86;
  DWORD T87;
  DWORD T88;
  dylan_value T89;
  dylan_value T90;
  DWORD T91;
  DWORD T92;
  DWORD T93;
  dylan_value T94;
  dylan_value T95;
  DWORD T96;
  dylan_value T97;
  dylan_value T98;
  DWORD T99;
  dylan_value T100;
  dylan_value T101;
  DWORD T102;
  dylan_value T103;
  dylan_value T104;
  DWORD T105;
  dylan_value T106;
  dylan_value T107;
  DWORD T108;
  dylan_value T109;
  dylan_value T110;
  DWORD T111;
  DWORD T112;
  DWORD T113;
  dylan_value T114;
  dylan_value T115;
  DWORD T116;
  DWORD T117;
  DWORD T118;
  dylan_value T119;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:350
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&Kclone_durationYsystem_internalsVsystem, 1);
  T3 = CONGRUENT_CALL1(y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  primitive_type_check(T3, &KLdurationGYdateVsystem);
  new_ = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T13 = SLOT_VALUE_INITD(new_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T5 = CONGRUENT_CALL2(x_, T13);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T6 = CALL1(&KroundVKd, T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  SLOT_VALUE_SETTER(T6, new_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T14 = SLOT_VALUE_INITD(new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T7 = CONGRUENT_CALL2(x_, T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T8 = CALL1(&KroundVKd, T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  SLOT_VALUE_SETTER(T8, new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T15 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T9 = CONGRUENT_CALL2(x_, T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T10 = CALL1(&KroundVKd, T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  SLOT_VALUE_SETTER(T10, new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T16 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&KTVKd, 2);
  T11 = CONGRUENT_CALL2(x_, T16);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T12 = CALL1(&KroundVKd, T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  SLOT_VALUE_SETTER(T12, new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T30 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T31 = primitive_cast_integer_as_raw(T30);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T32 = primitive_machine_word_less_thanQ(-3999999,T31);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (T32 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T33 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T34 = primitive_cast_integer_as_raw(T33);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T35 = primitive_machine_word_less_thanQ(T34,4000001);
    T17 = T35;
  } else {
    T17 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (T17 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T36 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T37 = primitive_cast_integer_as_raw(T36);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T38 = primitive_machine_word_shift_right(T37,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T39_0 = primitive_machine_word_floorS_byref(T38,1000000,(DWORD*)&T39_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    quotientF40 = T39_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    remainderF41 = T39_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T42 = primitive_machine_word_shift_left_signal_overflow(quotientF40,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T43 = primitive_machine_word_shift_left_signal_overflow(remainderF41,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T44 = primitive_machine_word_logior(T43,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T45 = primitive_cast_raw_as_integer(T44);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T45, new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T46 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T47 = primitive_cast_integer_as_raw(T46);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T48 = primitive_machine_word_add_signal_overflow(T47,T42);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T49 = primitive_cast_raw_as_integer(T48);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T49, new_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T50 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T51 = primitive_cast_integer_as_raw(T50);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T52 = primitive_machine_word_less_thanQ(-345599,T51);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (T52 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T53 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T54 = primitive_cast_integer_as_raw(T53);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T55 = primitive_machine_word_less_thanQ(T54,345601);
    T18 = T55;
  } else {
    T18 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (T18 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T56 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T57 = primitive_cast_integer_as_raw(T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T58 = primitive_machine_word_shift_right(T57,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T59_0 = primitive_machine_word_floorS_byref(T58,86400,(DWORD*)&T59_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    quotientF60 = T59_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    remainderF61 = T59_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T62 = primitive_machine_word_shift_left_signal_overflow(quotientF60,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T63 = primitive_machine_word_shift_left_signal_overflow(remainderF61,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T64 = primitive_machine_word_logior(T63,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T65 = primitive_cast_raw_as_integer(T64);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T65, new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T66 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T67 = primitive_cast_integer_as_raw(T66);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T68 = primitive_machine_word_add_signal_overflow(T67,T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T69 = primitive_cast_raw_as_integer(T68);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T69, new_, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T70 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T71 = primitive_cast_integer_as_raw(T70);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T72 = primitive_machine_word_less_thanQ(T71,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T73 = SLOT_VALUE_INITD(new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T74 = primitive_cast_integer_as_raw(T73);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T75 = primitive_machine_word_less_thanQ(T74,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF19 = CONGRUENT_CALL2(T72, T75);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (UtmpF19 != &KPfalseVKi) {
    UtmpF20 = UtmpF19;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T76 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T77 = primitive_cast_integer_as_raw(T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T78 = primitive_machine_word_equalQ(T77,1);
    UtmpF20 = T78;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (UtmpF20 != &KPfalseVKi) {
    T21 = UtmpF20;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T79 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T80 = primitive_cast_integer_as_raw(T79);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T81 = primitive_machine_word_equalQ(T80,1);
    T21 = T81;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (T21 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T82 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T83 = primitive_cast_integer_as_raw(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T84 = primitive_machine_word_less_thanQ(T83,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T85 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    if (T84 != &KPfalseVKi) {
      T22 = -3;
    } else {
      T22 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T86 = primitive_cast_integer_as_raw(T85);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T87 = primitive_machine_word_logxor(T22,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T88 = primitive_machine_word_add_signal_overflow(T86,T87);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T89 = primitive_cast_raw_as_integer(T88);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T89, new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T90 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    if (T84 != &KPfalseVKi) {
      T23 = 345601;
    } else {
      T23 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T91 = primitive_cast_integer_as_raw(T90);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T92 = primitive_machine_word_logxor(T23,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T93 = primitive_machine_word_add_signal_overflow(T91,T92);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T94 = primitive_cast_raw_as_integer(T93);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T94, new_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T95 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T96 = primitive_cast_integer_as_raw(T95);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T97 = primitive_machine_word_less_thanQ(T96,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T98 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T99 = primitive_cast_integer_as_raw(T98);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T100 = primitive_machine_word_less_thanQ(T99,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF24 = CONGRUENT_CALL2(T97, T100);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (UtmpF24 != &KPfalseVKi) {
    UtmpF25 = UtmpF24;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T101 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T102 = primitive_cast_integer_as_raw(T101);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T103 = primitive_machine_word_equalQ(T102,1);
    UtmpF25 = T103;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (UtmpF25 != &KPfalseVKi) {
    T26 = UtmpF25;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T104 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T105 = primitive_cast_integer_as_raw(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T106 = primitive_machine_word_equalQ(T105,1);
    T26 = T106;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  if (T26 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T107 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T108 = primitive_cast_integer_as_raw(T107);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T109 = primitive_machine_word_less_thanQ(T108,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T110 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    if (T109 != &KPfalseVKi) {
      T27 = -3;
    } else {
      T27 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T111 = primitive_cast_integer_as_raw(T110);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T112 = primitive_machine_word_logxor(T27,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T113 = primitive_machine_word_add_signal_overflow(T111,T112);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T114 = primitive_cast_raw_as_integer(T113);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T114, new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T115 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    if (T109 != &KPfalseVKi) {
      T28 = 4000001;
    } else {
      T28 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T116 = primitive_cast_integer_as_raw(T115);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T117 = primitive_machine_word_logxor(T28,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T118 = primitive_machine_word_add_signal_overflow(T116,T117);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    T119 = primitive_cast_raw_as_integer(T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
    SLOT_VALUE_SETTER(T119, new_, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:351
  T29_0 = new_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:350
  MV_SET_COUNT(1);
  return(T29_0);
}

dylan_value KSVKdMsystemM0I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value new_;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  dylan_value T12;
  dylan_value T13;
  dylan_value T14;
  dylan_value UtmpF15;
  dylan_value UtmpF16;
  dylan_value T17;
  DSINT T18;
  DSINT T19;
  dylan_value UtmpF20;
  dylan_value UtmpF21;
  dylan_value T22;
  DSINT T23;
  DSINT T24;
  dylan_value T25_0;
  dylan_value T26;
  DWORD T27;
  dylan_value T28;
  dylan_value T29;
  DWORD T30;
  dylan_value T31;
  dylan_value T32;
  DWORD T33;
  DWORD T34;
  DWORD T35_0;
  DWORD T35_1;
  DWORD quotientF36;
  DWORD remainderF37;
  DWORD T38;
  DWORD T39;
  DWORD T40;
  dylan_value T41;
  dylan_value T42;
  DWORD T43;
  DWORD T44;
  dylan_value T45;
  dylan_value T46;
  DWORD T47;
  dylan_value T48;
  dylan_value T49;
  DWORD T50;
  dylan_value T51;
  dylan_value T52;
  DWORD T53;
  DWORD T54;
  DWORD T55_0;
  DWORD T55_1;
  DWORD quotientF56;
  DWORD remainderF57;
  DWORD T58;
  DWORD T59;
  DWORD T60;
  dylan_value T61;
  dylan_value T62;
  DWORD T63;
  DWORD T64;
  dylan_value T65;
  dylan_value T66;
  DWORD T67;
  dylan_value T68;
  dylan_value T69;
  DWORD T70;
  dylan_value T71;
  dylan_value T72;
  DWORD T73;
  dylan_value T74;
  dylan_value T75;
  DWORD T76;
  dylan_value T77;
  dylan_value T78;
  DWORD T79;
  dylan_value T80;
  dylan_value T81;
  DWORD T82;
  DWORD T83;
  DWORD T84;
  dylan_value T85;
  dylan_value T86;
  DWORD T87;
  DWORD T88;
  DWORD T89;
  dylan_value T90;
  dylan_value T91;
  DWORD T92;
  dylan_value T93;
  dylan_value T94;
  DWORD T95;
  dylan_value T96;
  dylan_value T97;
  DWORD T98;
  dylan_value T99;
  dylan_value T100;
  DWORD T101;
  dylan_value T102;
  dylan_value T103;
  DWORD T104;
  dylan_value T105;
  dylan_value T106;
  DWORD T107;
  DWORD T108;
  DWORD T109;
  dylan_value T110;
  dylan_value T111;
  DWORD T112;
  DWORD T113;
  DWORD T114;
  dylan_value T115;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:354
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:355
  CONGRUENT_CALL_PROLOG(&Kclone_durationYsystem_internalsVsystem, 1);
  T3 = CONGRUENT_CALL1(x_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:355
  primitive_type_check(T3, &KLdurationGYdateVsystem);
  new_ = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:356
  T9 = SLOT_VALUE_INITD(new_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:356
  T5 = CALL2(&KroundSVKd, T9, y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:356
  SLOT_VALUE_SETTER(T5, new_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:357
  T10 = SLOT_VALUE_INITD(new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:357
  T6 = CALL2(&KroundSVKd, T10, y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:357
  SLOT_VALUE_SETTER(T6, new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:358
  T11 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:358
  T7 = CALL2(&KroundSVKd, T11, y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:358
  SLOT_VALUE_SETTER(T7, new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:359
  T12 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:359
  T8 = CALL2(&KroundSVKd, T12, y_);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:359
  SLOT_VALUE_SETTER(T8, new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T26 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T27 = primitive_cast_integer_as_raw(T26);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T28 = primitive_machine_word_less_thanQ(-3999999,T27);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (T28 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T29 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T30 = primitive_cast_integer_as_raw(T29);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T31 = primitive_machine_word_less_thanQ(T30,4000001);
    T13 = T31;
  } else {
    T13 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (T13 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T32 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T33 = primitive_cast_integer_as_raw(T32);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T34 = primitive_machine_word_shift_right(T33,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T35_0 = primitive_machine_word_floorS_byref(T34,1000000,(DWORD*)&T35_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    quotientF36 = T35_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    remainderF37 = T35_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T38 = primitive_machine_word_shift_left_signal_overflow(quotientF36,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T39 = primitive_machine_word_shift_left_signal_overflow(remainderF37,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T40 = primitive_machine_word_logior(T39,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T41 = primitive_cast_raw_as_integer(T40);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T41, new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T42 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T43 = primitive_cast_integer_as_raw(T42);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T44 = primitive_machine_word_add_signal_overflow(T43,T38);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T45 = primitive_cast_raw_as_integer(T44);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T45, new_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T46 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T47 = primitive_cast_integer_as_raw(T46);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T48 = primitive_machine_word_less_thanQ(-345599,T47);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (T48 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T49 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T50 = primitive_cast_integer_as_raw(T49);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T51 = primitive_machine_word_less_thanQ(T50,345601);
    T14 = T51;
  } else {
    T14 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (T14 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T52 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T53 = primitive_cast_integer_as_raw(T52);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T54 = primitive_machine_word_shift_right(T53,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T55_0 = primitive_machine_word_floorS_byref(T54,86400,(DWORD*)&T55_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    quotientF56 = T55_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    remainderF57 = T55_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T58 = primitive_machine_word_shift_left_signal_overflow(quotientF56,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T59 = primitive_machine_word_shift_left_signal_overflow(remainderF57,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T60 = primitive_machine_word_logior(T59,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T61 = primitive_cast_raw_as_integer(T60);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T61, new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T62 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T63 = primitive_cast_integer_as_raw(T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T64 = primitive_machine_word_add_signal_overflow(T63,T58);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T65 = primitive_cast_raw_as_integer(T64);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T65, new_, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T66 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T67 = primitive_cast_integer_as_raw(T66);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T68 = primitive_machine_word_less_thanQ(T67,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T69 = SLOT_VALUE_INITD(new_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T70 = primitive_cast_integer_as_raw(T69);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T71 = primitive_machine_word_less_thanQ(T70,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF15 = CONGRUENT_CALL2(T68, T71);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (UtmpF15 != &KPfalseVKi) {
    UtmpF16 = UtmpF15;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T72 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T73 = primitive_cast_integer_as_raw(T72);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T74 = primitive_machine_word_equalQ(T73,1);
    UtmpF16 = T74;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (UtmpF16 != &KPfalseVKi) {
    T17 = UtmpF16;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T75 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T76 = primitive_cast_integer_as_raw(T75);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T77 = primitive_machine_word_equalQ(T76,1);
    T17 = T77;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (T17 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T78 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T79 = primitive_cast_integer_as_raw(T78);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T80 = primitive_machine_word_less_thanQ(T79,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T81 = SLOT_VALUE_INITD(new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    if (T80 != &KPfalseVKi) {
      T18 = -3;
    } else {
      T18 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T82 = primitive_cast_integer_as_raw(T81);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T83 = primitive_machine_word_logxor(T18,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T84 = primitive_machine_word_add_signal_overflow(T82,T83);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T85 = primitive_cast_raw_as_integer(T84);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T85, new_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T86 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    if (T80 != &KPfalseVKi) {
      T19 = 345601;
    } else {
      T19 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T87 = primitive_cast_integer_as_raw(T86);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T88 = primitive_machine_word_logxor(T19,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T89 = primitive_machine_word_add_signal_overflow(T87,T88);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T90 = primitive_cast_raw_as_integer(T89);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T90, new_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T91 = SLOT_VALUE_INITD(new_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T92 = primitive_cast_integer_as_raw(T91);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T93 = primitive_machine_word_less_thanQ(T92,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T94 = SLOT_VALUE_INITD(new_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T95 = primitive_cast_integer_as_raw(T94);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T96 = primitive_machine_word_less_thanQ(T95,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF20 = CONGRUENT_CALL2(T93, T96);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (UtmpF20 != &KPfalseVKi) {
    UtmpF21 = UtmpF20;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T97 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T98 = primitive_cast_integer_as_raw(T97);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T99 = primitive_machine_word_equalQ(T98,1);
    UtmpF21 = T99;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (UtmpF21 != &KPfalseVKi) {
    T22 = UtmpF21;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T100 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T101 = primitive_cast_integer_as_raw(T100);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T102 = primitive_machine_word_equalQ(T101,1);
    T22 = T102;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  if (T22 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T103 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T104 = primitive_cast_integer_as_raw(T103);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T105 = primitive_machine_word_less_thanQ(T104,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T106 = SLOT_VALUE_INITD(new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    if (T105 != &KPfalseVKi) {
      T23 = -3;
    } else {
      T23 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T107 = primitive_cast_integer_as_raw(T106);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T108 = primitive_machine_word_logxor(T23,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T109 = primitive_machine_word_add_signal_overflow(T107,T108);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T110 = primitive_cast_raw_as_integer(T109);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T110, new_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T111 = SLOT_VALUE_INITD(new_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    if (T105 != &KPfalseVKi) {
      T24 = 4000001;
    } else {
      T24 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T112 = primitive_cast_integer_as_raw(T111);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T113 = primitive_machine_word_logxor(T24,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T114 = primitive_machine_word_add_signal_overflow(T112,T113);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    T115 = primitive_cast_raw_as_integer(T114);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
    SLOT_VALUE_SETTER(T115, new_, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:360
  T25_0 = new_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:354
  MV_SET_COUNT(1);
  return(T25_0);
}

static dylan_value KUhandler_functionUF114I (dylan_value UdummyU_, dylan_value Unext_handlerU_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value all_values_;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T6 = SLOT_VALUE(CREF(2), 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T7 = SLOT_VALUE(CREF(2), 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T3 = Kdays_in_monthYsystem_internalsVsystemI(T6, T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  SLOT_VALUE_SETTER(T3, CREF(2), 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T4 = T3;
  MV_SET_ELT(0, T3);
  MV_SET_COUNT(1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  all_values_ = MV_GET_REST_AT(T4, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T8 = MV_SET_REST_AT(all_values_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  T9 = NLX(CREF(1), T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:289
  return(T9);
}

dylan_value KLdate_arithmetic_invalid_dayGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_dae_year_, dylan_value Uunique_dae_month_, dylan_value Uunique_dae_day_) {
  dylan_value T6;
  dylan_value Uunique_dae_yearF7;
  dylan_value T8;
  dylan_value Uunique_dae_monthF9;
  dylan_value T10;
  dylan_value Uunique_dae_yearF11;
  dylan_value Uunique_dae_monthF12;
  dylan_value Uunique_dae_dayF13;
  dylan_value Uunique_dae_dayF14;
  dylan_value T15_0;
  dylan_value T16;
  _KLsimple_object_vectorGVKd_1 T17 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T18;
  dylan_value T19;
  _KLsimple_object_vectorGVKd_1 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T21;
  dylan_value T22;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  T16 = primitive_idQ(Uunique_dae_year_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  if (T16 != &KPfalseVKi) {
    T17.vector_element_[0] = IKJyear_;
    T18 = KerrorVKdMM1I(&K82, &T17);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
    T6 = T18;
    Uunique_dae_yearF7 = T6;
  } else {
    Uunique_dae_yearF7 = Uunique_dae_year_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  T19 = primitive_idQ(Uunique_dae_month_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  if (T19 != &KPfalseVKi) {
    T20.vector_element_[0] = IKJmonth_;
    T21 = KerrorVKdMM1I(&K82, &T20);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
    T8 = T21;
    Uunique_dae_monthF9 = T8;
  } else {
    Uunique_dae_monthF9 = Uunique_dae_month_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  T10 = primitive_object_allocate_filled(4,&KLdate_arithmetic_invalid_dayGYdateVsystemW,3,&KPunboundVKi,0,0,&KPunboundVKi);
  primitive_type_check(Uunique_dae_yearF7, &KLintegerGVKd);
  Uunique_dae_yearF11 = Uunique_dae_yearF7;
  SLOT_VALUE_SETTER(Uunique_dae_yearF11, T10, 0);
  primitive_type_check(Uunique_dae_monthF9, &KLintegerGVKd);
  Uunique_dae_monthF12 = Uunique_dae_monthF9;
  SLOT_VALUE_SETTER(Uunique_dae_monthF12, T10, 1);
  T22 = primitive_idQ(Uunique_dae_day_,&KPunboundVKi);
  if (T22 != &KPfalseVKi) {
    Uunique_dae_dayF14 = Uunique_dae_day_;
  } else {
    primitive_type_check(Uunique_dae_day_, &KLintegerGVKd);
    Uunique_dae_dayF13 = Uunique_dae_day_;
    Uunique_dae_dayF14 = Uunique_dae_dayF13;
  }
  SLOT_VALUE_SETTER(Uunique_dae_dayF14, T10, 2);
  APPLY2(&KinitializeVKd, T10, init_args_);
  T15_0 = T10;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:150
  MV_SET_COUNT(1);
  return(T15_0);
}

dylan_value KLdate_arithmetic_use_last_valid_dayGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value class_, dylan_value init_args_, dylan_value Uunique_dae_year_, dylan_value Uunique_dae_month_, dylan_value Uunique_dae_day_) {
  dylan_value T6;
  dylan_value Uunique_dae_yearF7;
  dylan_value T8;
  dylan_value Uunique_dae_monthF9;
  dylan_value T10;
  dylan_value Uunique_dae_yearF11;
  dylan_value Uunique_dae_monthF12;
  dylan_value Uunique_dae_dayF13;
  dylan_value Uunique_dae_dayF14;
  dylan_value T15_0;
  dylan_value T16;
  _KLsimple_object_vectorGVKd_1 T17 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T18;
  dylan_value T19;
  _KLsimple_object_vectorGVKd_1 T20 = {&KLsimple_object_vectorGVKdW, (dylan_value) 5};
  dylan_value T21;
  dylan_value T22;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  T16 = primitive_idQ(Uunique_dae_year_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  if (T16 != &KPfalseVKi) {
    T17.vector_element_[0] = IKJyear_;
    T18 = KerrorVKdMM1I(&K82, &T17);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
    T6 = T18;
    Uunique_dae_yearF7 = T6;
  } else {
    Uunique_dae_yearF7 = Uunique_dae_year_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  T19 = primitive_idQ(Uunique_dae_month_,&KPunboundVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  if (T19 != &KPfalseVKi) {
    T20.vector_element_[0] = IKJmonth_;
    T21 = KerrorVKdMM1I(&K82, &T20);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
    T8 = T21;
    Uunique_dae_monthF9 = T8;
  } else {
    Uunique_dae_monthF9 = Uunique_dae_month_;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  T10 = primitive_object_allocate_filled(4,&KLdate_arithmetic_use_last_valid_dayGYdateVsystemW,3,&KPunboundVKi,0,0,&KPunboundVKi);
  primitive_type_check(Uunique_dae_yearF7, &KLintegerGVKd);
  Uunique_dae_yearF11 = Uunique_dae_yearF7;
  SLOT_VALUE_SETTER(Uunique_dae_yearF11, T10, 0);
  primitive_type_check(Uunique_dae_monthF9, &KLintegerGVKd);
  Uunique_dae_monthF12 = Uunique_dae_monthF9;
  SLOT_VALUE_SETTER(Uunique_dae_monthF12, T10, 1);
  T22 = primitive_idQ(Uunique_dae_day_,&KPunboundVKi);
  if (T22 != &KPfalseVKi) {
    Uunique_dae_dayF14 = Uunique_dae_day_;
  } else {
    primitive_type_check(Uunique_dae_day_, &KLintegerGVKd);
    Uunique_dae_dayF13 = Uunique_dae_day_;
    Uunique_dae_dayF14 = Uunique_dae_dayF13;
  }
  SLOT_VALUE_SETTER(Uunique_dae_dayF14, T10, 2);
  APPLY2(&KinitializeVKd, T10, init_args_);
  T15_0 = T10;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:167
  MV_SET_COUNT(1);
  return(T15_0);
}

dylan_value KLdayStime_durationGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value class_, dylan_value init_args_) {
  dylan_value T3;
  dylan_value T4_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:26
  T3 = primitive_object_allocate_filled(5,&KLdayStime_durationGYdateVsystemW,4,&KPunboundVKi,0,0,&KPunboundVKi);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 0);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 1);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 2);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 3);
  APPLY2(&KinitializeVKd, T3, init_args_);
  T4_0 = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:26
  MV_SET_COUNT(1);
  return(T4_0);
}

static dylan_value KUhandler_functionUF176I (dylan_value UdummyU_, dylan_value Unext_handlerU_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value all_values_;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T6 = SLOT_VALUE(CREF(2), 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T7 = SLOT_VALUE(CREF(2), 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T3 = Kdays_in_monthYsystem_internalsVsystemI(T6, T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  SLOT_VALUE_SETTER(T3, CREF(2), 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T4 = T3;
  MV_SET_ELT(0, T3);
  MV_SET_COUNT(1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  all_values_ = MV_GET_REST_AT(T4, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T8 = MV_SET_REST_AT(all_values_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  T9 = NLX(CREF(1), T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:277
  return(T9);
}

static dylan_value KUhandler_functionUF181I (dylan_value UdummyU_, dylan_value Unext_handlerU_) {
  dylan_value T3;
  dylan_value T4;
  dylan_value all_values_;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  dylan_value T9;
  CAPTURE_ENVIRONMENT

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  primitive_write_thread_variable(Tcurrent_handlersTVKi, CREF(0));
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T6 = SLOT_VALUE(CREF(2), 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T7 = SLOT_VALUE(CREF(2), 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T3 = Kdays_in_monthYsystem_internalsVsystemI(T6, T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  SLOT_VALUE_SETTER(T3, CREF(2), 4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T4 = T3;
  MV_SET_ELT(0, T3);
  MV_SET_COUNT(1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  all_values_ = MV_GET_REST_AT(T4, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T8 = MV_SET_REST_AT(all_values_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  T9 = NLX(CREF(1), T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:273
  return(T9);
}

dylan_value Kdecode_durationYdateVsystemMM0I (dylan_value duration_) {
  dylan_value T2;
  DWORD T3;
  DWORD T4;
  DWORD T5_0;
  DWORD T5_1;
  DWORD quotient_;
  DWORD remainder_;
  DWORD T8;
  DWORD T9;
  dylan_value T10;
  DWORD T11;
  DWORD T12;
  dylan_value T13;
  dylan_value T14_0;
  dylan_value T14_1;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:203
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T2 = SLOT_VALUE_INITD(duration_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T3 = primitive_cast_integer_as_raw(T2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T4 = primitive_machine_word_shift_right(T3,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T5_0 = primitive_machine_word_truncateS_byref(T4,12,(DWORD*)&T5_1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  quotient_ = T5_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  remainder_ = T5_1;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T8 = primitive_machine_word_shift_left_signal_overflow(quotient_,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T9 = primitive_machine_word_logior(T8,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T10 = primitive_cast_raw_as_integer(T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T11 = primitive_machine_word_shift_left_signal_overflow(remainder_,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T12 = primitive_machine_word_logior(T11,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T13 = primitive_cast_raw_as_integer(T12);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:205
  T14_0 = T10;
  T14_1 = T13;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:203
  MV_SET_ELT(1, T14_1);
  MV_SET_COUNT(2);
  return(T14_0);
}

dylan_value Kdecode_durationYdateVsystemMM1I (dylan_value duration_) {
  dylan_value T2;
  DWORD T3;
  DWORD T4;
  DWORD T5_0;
  DWORD T5_1;
  DWORD quotientF6;
  DWORD remainderF7;
  DWORD T8;
  DWORD T9;
  dylan_value T10;
  DWORD T11_0;
  DWORD T11_1;
  DWORD quotientF12;
  DWORD remainderF13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  DWORD T17;
  DWORD T18;
  dylan_value T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22_0;
  dylan_value T22_1;
  dylan_value T22_2;
  dylan_value T22_3;
  dylan_value T22_4;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:208
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T2 = SLOT_VALUE_INITD(duration_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T3 = primitive_cast_integer_as_raw(T2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T4 = primitive_machine_word_shift_right(T3,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T5_0 = primitive_machine_word_truncateS_byref(T4,60,(DWORD*)&T5_1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  quotientF6 = T5_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  remainderF7 = T5_1;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T8 = primitive_machine_word_shift_left_signal_overflow(remainderF7,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T9 = primitive_machine_word_logior(T8,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:211
  T10 = primitive_cast_raw_as_integer(T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T11_0 = primitive_machine_word_truncateS_byref(quotientF6,60,(DWORD*)&T11_1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  quotientF12 = T11_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  remainderF13 = T11_1;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T14 = primitive_machine_word_shift_left_signal_overflow(quotientF12,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T15 = primitive_machine_word_logior(T14,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T16 = primitive_cast_raw_as_integer(T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T17 = primitive_machine_word_shift_left_signal_overflow(remainderF13,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T18 = primitive_machine_word_logior(T17,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:212
  T19 = primitive_cast_raw_as_integer(T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:213
  T20 = SLOT_VALUE_INITD(duration_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:213
  T21 = SLOT_VALUE_INITD(duration_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:213
  T22_0 = T20;
  T22_1 = T16;
  T22_2 = T19;
  T22_3 = T10;
  T22_4 = T21;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:208
  MV_SET_ELT(1, T22_1);
  MV_SET_ELT(2, T22_2);
  MV_SET_ELT(3, T22_3);
  MV_SET_ELT(4, T22_4);
  MV_SET_COUNT(5);
  return(T22_0);
}

dylan_value KLyearSmonth_durationGZ32ZconstructorYsystem_internalsVsystemMM0I (dylan_value class_, dylan_value init_args_) {
  dylan_value T3;
  dylan_value T4_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:23
  T3 = primitive_object_allocate_filled(5,&KLyearSmonth_durationGYdateVsystemW,4,&KPunboundVKi,0,0,&KPunboundVKi);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 0);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 1);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 2);
  SLOT_VALUE_SETTER((dylan_value) 1, T3, 3);
  APPLY2(&KinitializeVKd, T3, init_args_);
  T4_0 = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:23
  MV_SET_COUNT(1);
  return(T4_0);
}

dylan_value Kencode_dayStime_durationYdateVsystemI (dylan_value days_, dylan_value hours_, dylan_value minutes_, dylan_value seconds_, dylan_value microseconds_) {
  dylan_value T5_0;
  _KLsimple_object_vectorGVKd_10 T6 = {&KLsimple_object_vectorGVKdW, (dylan_value) 41};

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:192
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:196
  T6.vector_element_[0] = IKJdays_;
  T6.vector_element_[1] = days_;
  T6.vector_element_[2] = IKJhours_;
  T6.vector_element_[3] = hours_;
  T6.vector_element_[4] = IKJminutes_;
  T6.vector_element_[5] = minutes_;
  T6.vector_element_[6] = IKJseconds_;
  T6.vector_element_[7] = seconds_;
  T6.vector_element_[8] = IKJmicroseconds_;
  T6.vector_element_[9] = microseconds_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:196
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T5_0 = CONGRUENT_CALL2(&KLdayStime_durationGYdateVsystem, &T6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:192
  MV_SET_COUNT(1);
  return(T5_0);
}

dylan_value Kencode_yearSmonth_durationYdateVsystemI (dylan_value years_, dylan_value months_) {
  dylan_value T2_0;
  _KLsimple_object_vectorGVKd_4 T3 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:187
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:189
  T3.vector_element_[0] = IKJyears_;
  T3.vector_element_[1] = years_;
  T3.vector_element_[2] = IKJmonths_;
  T3.vector_element_[3] = months_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:189
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T2_0 = CONGRUENT_CALL2(&KLyearSmonth_durationGYdateVsystem, &T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:187
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value K_VKdMsystemM3I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  DWORD T7;
  DWORD T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  DWORD T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  DWORD T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  DWORD T26;
  DWORD T27;
  DWORD T28;
  DWORD T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value UtmpF33;
  dylan_value UtmpF34;
  dylan_value T35;
  DSINT T36;
  DSINT T37;
  dylan_value UtmpF38;
  dylan_value UtmpF39;
  dylan_value T40;
  DSINT T41;
  DSINT T42;
  dylan_value T43_0;
  dylan_value T44;
  DWORD T45;
  dylan_value T46;
  dylan_value T47;
  DWORD T48;
  dylan_value T49;
  dylan_value T50;
  DWORD T51;
  DWORD T52;
  DWORD T53_0;
  DWORD T53_1;
  DWORD quotientF54;
  DWORD remainderF55;
  DWORD T56;
  DWORD T57;
  DWORD T58;
  dylan_value T59;
  dylan_value T60;
  DWORD T61;
  DWORD T62;
  dylan_value T63;
  dylan_value T64;
  DWORD T65;
  dylan_value T66;
  dylan_value T67;
  DWORD T68;
  dylan_value T69;
  dylan_value T70;
  DWORD T71;
  DWORD T72;
  DWORD T73_0;
  DWORD T73_1;
  DWORD quotientF74;
  DWORD remainderF75;
  DWORD T76;
  DWORD T77;
  DWORD T78;
  dylan_value T79;
  dylan_value T80;
  DWORD T81;
  DWORD T82;
  dylan_value T83;
  dylan_value T84;
  DWORD T85;
  dylan_value T86;
  dylan_value T87;
  DWORD T88;
  dylan_value T89;
  dylan_value T90;
  DWORD T91;
  dylan_value T92;
  dylan_value T93;
  DWORD T94;
  dylan_value T95;
  dylan_value T96;
  DWORD T97;
  dylan_value T98;
  dylan_value T99;
  DWORD T100;
  DWORD T101;
  DWORD T102;
  dylan_value T103;
  dylan_value T104;
  DWORD T105;
  DWORD T106;
  DWORD T107;
  dylan_value T108;
  dylan_value T109;
  DWORD T110;
  dylan_value T111;
  dylan_value T112;
  DWORD T113;
  dylan_value T114;
  dylan_value T115;
  DWORD T116;
  dylan_value T117;
  dylan_value T118;
  DWORD T119;
  dylan_value T120;
  dylan_value T121;
  DWORD T122;
  dylan_value T123;
  dylan_value T124;
  DWORD T125;
  DWORD T126;
  DWORD T127;
  dylan_value T128;
  dylan_value T129;
  DWORD T130;
  DWORD T131;
  DWORD T132;
  dylan_value T133;
  dylan_value T134_0;
  dylan_value T135;
  dylan_value T136;
  dylan_value T137;
  _KLsimple_object_vectorGVKd_6 T138 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};
  dylan_value T139;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:331
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T135 = SLOT_VALUE_INITD(x_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T136 = SLOT_VALUE_INITD(x_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T137 = SLOT_VALUE_INITD(x_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T138.vector_element_[0] = IKJdays_;
  T138.vector_element_[1] = T135;
  T138.vector_element_[2] = IKJseconds_;
  T138.vector_element_[3] = T136;
  T138.vector_element_[4] = IKJmicroseconds_;
  T138.vector_element_[5] = T137;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T134_0 = CONGRUENT_CALL2(&KLdayStime_durationGYdateVsystem, &T138);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T139 = T134_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T3 = SLOT_VALUE_INITD(T139, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T4 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T5 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T7 = primitive_machine_word_logxor(T6,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T8 = primitive_machine_word_subtract_signal_overflow(T5,T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T9 = primitive_cast_raw_as_integer(T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  SLOT_VALUE_SETTER(T9, T139, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T10 = SLOT_VALUE_INITD(T139, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T11 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T12 = primitive_cast_integer_as_raw(T10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T13 = primitive_cast_integer_as_raw(T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T14 = primitive_machine_word_logxor(T13,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T15 = primitive_machine_word_subtract_signal_overflow(T12,T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T16 = primitive_cast_raw_as_integer(T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  SLOT_VALUE_SETTER(T16, T139, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T17 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T18 = SLOT_VALUE_INITD(y_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T19 = primitive_cast_integer_as_raw(T17);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T20 = primitive_cast_integer_as_raw(T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T21 = primitive_machine_word_logxor(T20,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T22 = primitive_machine_word_subtract_signal_overflow(T19,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T23 = primitive_cast_raw_as_integer(T22);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  SLOT_VALUE_SETTER(T23, T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T24 = SLOT_VALUE_INITD(T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T25 = SLOT_VALUE_INITD(y_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T26 = primitive_cast_integer_as_raw(T24);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T27 = primitive_cast_integer_as_raw(T25);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T28 = primitive_machine_word_logxor(T27,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T29 = primitive_machine_word_subtract_signal_overflow(T26,T28);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T30 = primitive_cast_raw_as_integer(T29);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  SLOT_VALUE_SETTER(T30, T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T44 = SLOT_VALUE_INITD(T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T45 = primitive_cast_integer_as_raw(T44);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T46 = primitive_machine_word_less_thanQ(-3999999,T45);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (T46 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T47 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T48 = primitive_cast_integer_as_raw(T47);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T49 = primitive_machine_word_less_thanQ(T48,4000001);
    T31 = T49;
  } else {
    T31 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (T31 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T50 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T51 = primitive_cast_integer_as_raw(T50);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T52 = primitive_machine_word_shift_right(T51,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T53_0 = primitive_machine_word_floorS_byref(T52,1000000,(DWORD*)&T53_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    quotientF54 = T53_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    remainderF55 = T53_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T56 = primitive_machine_word_shift_left_signal_overflow(quotientF54,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T57 = primitive_machine_word_shift_left_signal_overflow(remainderF55,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T58 = primitive_machine_word_logior(T57,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T59 = primitive_cast_raw_as_integer(T58);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T59, T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T60 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T61 = primitive_cast_integer_as_raw(T60);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T62 = primitive_machine_word_add_signal_overflow(T61,T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T63 = primitive_cast_raw_as_integer(T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T63, T139, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T64 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T65 = primitive_cast_integer_as_raw(T64);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T66 = primitive_machine_word_less_thanQ(-345599,T65);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (T66 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T67 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T68 = primitive_cast_integer_as_raw(T67);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T69 = primitive_machine_word_less_thanQ(T68,345601);
    T32 = T69;
  } else {
    T32 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (T32 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T70 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T71 = primitive_cast_integer_as_raw(T70);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T72 = primitive_machine_word_shift_right(T71,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T73_0 = primitive_machine_word_floorS_byref(T72,86400,(DWORD*)&T73_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    quotientF74 = T73_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    remainderF75 = T73_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T76 = primitive_machine_word_shift_left_signal_overflow(quotientF74,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T77 = primitive_machine_word_shift_left_signal_overflow(remainderF75,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T78 = primitive_machine_word_logior(T77,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T79 = primitive_cast_raw_as_integer(T78);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T79, T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T80 = SLOT_VALUE_INITD(T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T81 = primitive_cast_integer_as_raw(T80);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T82 = primitive_machine_word_add_signal_overflow(T81,T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T83 = primitive_cast_raw_as_integer(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T83, T139, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T84 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T85 = primitive_cast_integer_as_raw(T84);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T86 = primitive_machine_word_less_thanQ(T85,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T87 = SLOT_VALUE_INITD(T139, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T88 = primitive_cast_integer_as_raw(T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T89 = primitive_machine_word_less_thanQ(T88,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF33 = CONGRUENT_CALL2(T86, T89);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (UtmpF33 != &KPfalseVKi) {
    UtmpF34 = UtmpF33;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T90 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T91 = primitive_cast_integer_as_raw(T90);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T92 = primitive_machine_word_equalQ(T91,1);
    UtmpF34 = T92;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (UtmpF34 != &KPfalseVKi) {
    T35 = UtmpF34;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T93 = SLOT_VALUE_INITD(T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T94 = primitive_cast_integer_as_raw(T93);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T95 = primitive_machine_word_equalQ(T94,1);
    T35 = T95;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (T35 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T96 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T97 = primitive_cast_integer_as_raw(T96);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T98 = primitive_machine_word_less_thanQ(T97,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T99 = SLOT_VALUE_INITD(T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    if (T98 != &KPfalseVKi) {
      T36 = -3;
    } else {
      T36 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T100 = primitive_cast_integer_as_raw(T99);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T101 = primitive_machine_word_logxor(T36,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T102 = primitive_machine_word_add_signal_overflow(T100,T101);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T103 = primitive_cast_raw_as_integer(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T103, T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T104 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    if (T98 != &KPfalseVKi) {
      T37 = 345601;
    } else {
      T37 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T105 = primitive_cast_integer_as_raw(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T106 = primitive_machine_word_logxor(T37,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T107 = primitive_machine_word_add_signal_overflow(T105,T106);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T108 = primitive_cast_raw_as_integer(T107);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T108, T139, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T109 = SLOT_VALUE_INITD(T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T110 = primitive_cast_integer_as_raw(T109);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T111 = primitive_machine_word_less_thanQ(T110,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T112 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T113 = primitive_cast_integer_as_raw(T112);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T114 = primitive_machine_word_less_thanQ(T113,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF38 = CONGRUENT_CALL2(T111, T114);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (UtmpF38 != &KPfalseVKi) {
    UtmpF39 = UtmpF38;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T115 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T116 = primitive_cast_integer_as_raw(T115);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T117 = primitive_machine_word_equalQ(T116,1);
    UtmpF39 = T117;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (UtmpF39 != &KPfalseVKi) {
    T40 = UtmpF39;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T118 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T119 = primitive_cast_integer_as_raw(T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T120 = primitive_machine_word_equalQ(T119,1);
    T40 = T120;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  if (T40 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T121 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T122 = primitive_cast_integer_as_raw(T121);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T123 = primitive_machine_word_less_thanQ(T122,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T124 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    if (T123 != &KPfalseVKi) {
      T41 = -3;
    } else {
      T41 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T125 = primitive_cast_integer_as_raw(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T126 = primitive_machine_word_logxor(T41,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T127 = primitive_machine_word_add_signal_overflow(T125,T126);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T128 = primitive_cast_raw_as_integer(T127);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T128, T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T129 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    if (T123 != &KPfalseVKi) {
      T42 = 4000001;
    } else {
      T42 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T131 = primitive_machine_word_logxor(T42,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T132 = primitive_machine_word_add_signal_overflow(T130,T131);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    T133 = primitive_cast_raw_as_integer(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
    SLOT_VALUE_SETTER(T133, T139, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:333
  T43_0 = T139;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:331
  MV_SET_COUNT(1);
  return(T43_0);
}

dylan_value K_VKdMsystemM2I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  DWORD T7;
  DWORD T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  DWORD T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  DWORD T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  DWORD T26;
  DWORD T27;
  DWORD T28;
  DWORD T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value UtmpF33;
  dylan_value UtmpF34;
  dylan_value T35;
  DSINT T36;
  DSINT T37;
  dylan_value UtmpF38;
  dylan_value UtmpF39;
  dylan_value T40;
  DSINT T41;
  DSINT T42;
  dylan_value T43_0;
  dylan_value T44;
  DWORD T45;
  dylan_value T46;
  dylan_value T47;
  DWORD T48;
  dylan_value T49;
  dylan_value T50;
  DWORD T51;
  DWORD T52;
  DWORD T53_0;
  DWORD T53_1;
  DWORD quotientF54;
  DWORD remainderF55;
  DWORD T56;
  DWORD T57;
  DWORD T58;
  dylan_value T59;
  dylan_value T60;
  DWORD T61;
  DWORD T62;
  dylan_value T63;
  dylan_value T64;
  DWORD T65;
  dylan_value T66;
  dylan_value T67;
  DWORD T68;
  dylan_value T69;
  dylan_value T70;
  DWORD T71;
  DWORD T72;
  DWORD T73_0;
  DWORD T73_1;
  DWORD quotientF74;
  DWORD remainderF75;
  DWORD T76;
  DWORD T77;
  DWORD T78;
  dylan_value T79;
  dylan_value T80;
  DWORD T81;
  DWORD T82;
  dylan_value T83;
  dylan_value T84;
  DWORD T85;
  dylan_value T86;
  dylan_value T87;
  DWORD T88;
  dylan_value T89;
  dylan_value T90;
  DWORD T91;
  dylan_value T92;
  dylan_value T93;
  DWORD T94;
  dylan_value T95;
  dylan_value T96;
  DWORD T97;
  dylan_value T98;
  dylan_value T99;
  DWORD T100;
  DWORD T101;
  DWORD T102;
  dylan_value T103;
  dylan_value T104;
  DWORD T105;
  DWORD T106;
  DWORD T107;
  dylan_value T108;
  dylan_value T109;
  DWORD T110;
  dylan_value T111;
  dylan_value T112;
  DWORD T113;
  dylan_value T114;
  dylan_value T115;
  DWORD T116;
  dylan_value T117;
  dylan_value T118;
  DWORD T119;
  dylan_value T120;
  dylan_value T121;
  DWORD T122;
  dylan_value T123;
  dylan_value T124;
  DWORD T125;
  DWORD T126;
  DWORD T127;
  dylan_value T128;
  dylan_value T129;
  DWORD T130;
  DWORD T131;
  DWORD T132;
  dylan_value T133;
  dylan_value T134_0;
  dylan_value T135;
  _KLsimple_object_vectorGVKd_2 T136 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T137;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:326
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T135 = SLOT_VALUE_INITD(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T136.vector_element_[0] = IKJmonths_;
  T136.vector_element_[1] = T135;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T134_0 = CONGRUENT_CALL2(&KLyearSmonth_durationGYdateVsystem, &T136);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T137 = T134_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T3 = SLOT_VALUE_INITD(T137, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T4 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T5 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T7 = primitive_machine_word_logxor(T6,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T8 = primitive_machine_word_subtract_signal_overflow(T5,T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T9 = primitive_cast_raw_as_integer(T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  SLOT_VALUE_SETTER(T9, T137, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T10 = SLOT_VALUE_INITD(T137, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T11 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T12 = primitive_cast_integer_as_raw(T10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T13 = primitive_cast_integer_as_raw(T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T14 = primitive_machine_word_logxor(T13,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T15 = primitive_machine_word_subtract_signal_overflow(T12,T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T16 = primitive_cast_raw_as_integer(T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  SLOT_VALUE_SETTER(T16, T137, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T17 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T18 = SLOT_VALUE_INITD(y_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T19 = primitive_cast_integer_as_raw(T17);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T20 = primitive_cast_integer_as_raw(T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T21 = primitive_machine_word_logxor(T20,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T22 = primitive_machine_word_subtract_signal_overflow(T19,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T23 = primitive_cast_raw_as_integer(T22);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  SLOT_VALUE_SETTER(T23, T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T24 = SLOT_VALUE_INITD(T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T25 = SLOT_VALUE_INITD(y_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T26 = primitive_cast_integer_as_raw(T24);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T27 = primitive_cast_integer_as_raw(T25);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T28 = primitive_machine_word_logxor(T27,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T29 = primitive_machine_word_subtract_signal_overflow(T26,T28);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T30 = primitive_cast_raw_as_integer(T29);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  SLOT_VALUE_SETTER(T30, T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T44 = SLOT_VALUE_INITD(T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T45 = primitive_cast_integer_as_raw(T44);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T46 = primitive_machine_word_less_thanQ(-3999999,T45);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (T46 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T47 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T48 = primitive_cast_integer_as_raw(T47);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T49 = primitive_machine_word_less_thanQ(T48,4000001);
    T31 = T49;
  } else {
    T31 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (T31 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T50 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T51 = primitive_cast_integer_as_raw(T50);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T52 = primitive_machine_word_shift_right(T51,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T53_0 = primitive_machine_word_floorS_byref(T52,1000000,(DWORD*)&T53_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    quotientF54 = T53_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    remainderF55 = T53_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T56 = primitive_machine_word_shift_left_signal_overflow(quotientF54,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T57 = primitive_machine_word_shift_left_signal_overflow(remainderF55,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T58 = primitive_machine_word_logior(T57,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T59 = primitive_cast_raw_as_integer(T58);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T59, T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T60 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T61 = primitive_cast_integer_as_raw(T60);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T62 = primitive_machine_word_add_signal_overflow(T61,T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T63 = primitive_cast_raw_as_integer(T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T63, T137, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T64 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T65 = primitive_cast_integer_as_raw(T64);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T66 = primitive_machine_word_less_thanQ(-345599,T65);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (T66 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T67 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T68 = primitive_cast_integer_as_raw(T67);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T69 = primitive_machine_word_less_thanQ(T68,345601);
    T32 = T69;
  } else {
    T32 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (T32 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T70 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T71 = primitive_cast_integer_as_raw(T70);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T72 = primitive_machine_word_shift_right(T71,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T73_0 = primitive_machine_word_floorS_byref(T72,86400,(DWORD*)&T73_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    quotientF74 = T73_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    remainderF75 = T73_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T76 = primitive_machine_word_shift_left_signal_overflow(quotientF74,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T77 = primitive_machine_word_shift_left_signal_overflow(remainderF75,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T78 = primitive_machine_word_logior(T77,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T79 = primitive_cast_raw_as_integer(T78);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T79, T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T80 = SLOT_VALUE_INITD(T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T81 = primitive_cast_integer_as_raw(T80);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T82 = primitive_machine_word_add_signal_overflow(T81,T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T83 = primitive_cast_raw_as_integer(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T83, T137, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T84 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T85 = primitive_cast_integer_as_raw(T84);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T86 = primitive_machine_word_less_thanQ(T85,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T87 = SLOT_VALUE_INITD(T137, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T88 = primitive_cast_integer_as_raw(T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T89 = primitive_machine_word_less_thanQ(T88,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF33 = CONGRUENT_CALL2(T86, T89);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (UtmpF33 != &KPfalseVKi) {
    UtmpF34 = UtmpF33;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T90 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T91 = primitive_cast_integer_as_raw(T90);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T92 = primitive_machine_word_equalQ(T91,1);
    UtmpF34 = T92;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (UtmpF34 != &KPfalseVKi) {
    T35 = UtmpF34;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T93 = SLOT_VALUE_INITD(T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T94 = primitive_cast_integer_as_raw(T93);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T95 = primitive_machine_word_equalQ(T94,1);
    T35 = T95;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (T35 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T96 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T97 = primitive_cast_integer_as_raw(T96);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T98 = primitive_machine_word_less_thanQ(T97,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T99 = SLOT_VALUE_INITD(T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    if (T98 != &KPfalseVKi) {
      T36 = -3;
    } else {
      T36 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T100 = primitive_cast_integer_as_raw(T99);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T101 = primitive_machine_word_logxor(T36,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T102 = primitive_machine_word_add_signal_overflow(T100,T101);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T103 = primitive_cast_raw_as_integer(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T103, T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T104 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    if (T98 != &KPfalseVKi) {
      T37 = 345601;
    } else {
      T37 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T105 = primitive_cast_integer_as_raw(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T106 = primitive_machine_word_logxor(T37,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T107 = primitive_machine_word_add_signal_overflow(T105,T106);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T108 = primitive_cast_raw_as_integer(T107);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T108, T137, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T109 = SLOT_VALUE_INITD(T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T110 = primitive_cast_integer_as_raw(T109);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T111 = primitive_machine_word_less_thanQ(T110,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T112 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T113 = primitive_cast_integer_as_raw(T112);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T114 = primitive_machine_word_less_thanQ(T113,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF38 = CONGRUENT_CALL2(T111, T114);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (UtmpF38 != &KPfalseVKi) {
    UtmpF39 = UtmpF38;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T115 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T116 = primitive_cast_integer_as_raw(T115);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T117 = primitive_machine_word_equalQ(T116,1);
    UtmpF39 = T117;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (UtmpF39 != &KPfalseVKi) {
    T40 = UtmpF39;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T118 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T119 = primitive_cast_integer_as_raw(T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T120 = primitive_machine_word_equalQ(T119,1);
    T40 = T120;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  if (T40 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T121 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T122 = primitive_cast_integer_as_raw(T121);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T123 = primitive_machine_word_less_thanQ(T122,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T124 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    if (T123 != &KPfalseVKi) {
      T41 = -3;
    } else {
      T41 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T125 = primitive_cast_integer_as_raw(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T126 = primitive_machine_word_logxor(T41,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T127 = primitive_machine_word_add_signal_overflow(T125,T126);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T128 = primitive_cast_raw_as_integer(T127);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T128, T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T129 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    if (T123 != &KPfalseVKi) {
      T42 = 4000001;
    } else {
      T42 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T131 = primitive_machine_word_logxor(T42,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T132 = primitive_machine_word_add_signal_overflow(T130,T131);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    T133 = primitive_cast_raw_as_integer(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
    SLOT_VALUE_SETTER(T133, T137, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:328
  T43_0 = T137;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:326
  MV_SET_COUNT(1);
  return(T43_0);
}

dylan_value KAVKdMsystemM3I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  DWORD T7;
  DWORD T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  DWORD T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  DWORD T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  DWORD T26;
  DWORD T27;
  DWORD T28;
  DWORD T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value UtmpF33;
  dylan_value UtmpF34;
  dylan_value T35;
  DSINT T36;
  DSINT T37;
  dylan_value UtmpF38;
  dylan_value UtmpF39;
  dylan_value T40;
  DSINT T41;
  DSINT T42;
  dylan_value T43_0;
  dylan_value T44;
  DWORD T45;
  dylan_value T46;
  dylan_value T47;
  DWORD T48;
  dylan_value T49;
  dylan_value T50;
  DWORD T51;
  DWORD T52;
  DWORD T53_0;
  DWORD T53_1;
  DWORD quotientF54;
  DWORD remainderF55;
  DWORD T56;
  DWORD T57;
  DWORD T58;
  dylan_value T59;
  dylan_value T60;
  DWORD T61;
  DWORD T62;
  dylan_value T63;
  dylan_value T64;
  DWORD T65;
  dylan_value T66;
  dylan_value T67;
  DWORD T68;
  dylan_value T69;
  dylan_value T70;
  DWORD T71;
  DWORD T72;
  DWORD T73_0;
  DWORD T73_1;
  DWORD quotientF74;
  DWORD remainderF75;
  DWORD T76;
  DWORD T77;
  DWORD T78;
  dylan_value T79;
  dylan_value T80;
  DWORD T81;
  DWORD T82;
  dylan_value T83;
  dylan_value T84;
  DWORD T85;
  dylan_value T86;
  dylan_value T87;
  DWORD T88;
  dylan_value T89;
  dylan_value T90;
  DWORD T91;
  dylan_value T92;
  dylan_value T93;
  DWORD T94;
  dylan_value T95;
  dylan_value T96;
  DWORD T97;
  dylan_value T98;
  dylan_value T99;
  DWORD T100;
  DWORD T101;
  DWORD T102;
  dylan_value T103;
  dylan_value T104;
  DWORD T105;
  DWORD T106;
  DWORD T107;
  dylan_value T108;
  dylan_value T109;
  DWORD T110;
  dylan_value T111;
  dylan_value T112;
  DWORD T113;
  dylan_value T114;
  dylan_value T115;
  DWORD T116;
  dylan_value T117;
  dylan_value T118;
  DWORD T119;
  dylan_value T120;
  dylan_value T121;
  DWORD T122;
  dylan_value T123;
  dylan_value T124;
  DWORD T125;
  DWORD T126;
  DWORD T127;
  dylan_value T128;
  dylan_value T129;
  DWORD T130;
  DWORD T131;
  DWORD T132;
  dylan_value T133;
  dylan_value T134_0;
  dylan_value T135;
  dylan_value T136;
  dylan_value T137;
  _KLsimple_object_vectorGVKd_6 T138 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};
  dylan_value T139;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:311
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T135 = SLOT_VALUE_INITD(x_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T136 = SLOT_VALUE_INITD(x_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T137 = SLOT_VALUE_INITD(x_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T138.vector_element_[0] = IKJdays_;
  T138.vector_element_[1] = T135;
  T138.vector_element_[2] = IKJseconds_;
  T138.vector_element_[3] = T136;
  T138.vector_element_[4] = IKJmicroseconds_;
  T138.vector_element_[5] = T137;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T134_0 = CONGRUENT_CALL2(&KLdayStime_durationGYdateVsystem, &T138);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T139 = T134_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T3 = SLOT_VALUE_INITD(T139, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T4 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T5 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T7 = primitive_machine_word_logxor(T6,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T8 = primitive_machine_word_add_signal_overflow(T5,T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T9 = primitive_cast_raw_as_integer(T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  SLOT_VALUE_SETTER(T9, T139, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T10 = SLOT_VALUE_INITD(T139, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T11 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T12 = primitive_cast_integer_as_raw(T10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T13 = primitive_cast_integer_as_raw(T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T14 = primitive_machine_word_logxor(T13,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T15 = primitive_machine_word_add_signal_overflow(T12,T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T16 = primitive_cast_raw_as_integer(T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  SLOT_VALUE_SETTER(T16, T139, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T17 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T18 = SLOT_VALUE_INITD(y_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T19 = primitive_cast_integer_as_raw(T17);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T20 = primitive_cast_integer_as_raw(T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T21 = primitive_machine_word_logxor(T20,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T22 = primitive_machine_word_add_signal_overflow(T19,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T23 = primitive_cast_raw_as_integer(T22);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  SLOT_VALUE_SETTER(T23, T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T24 = SLOT_VALUE_INITD(T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T25 = SLOT_VALUE_INITD(y_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T26 = primitive_cast_integer_as_raw(T24);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T27 = primitive_cast_integer_as_raw(T25);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T28 = primitive_machine_word_logxor(T27,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T29 = primitive_machine_word_add_signal_overflow(T26,T28);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T30 = primitive_cast_raw_as_integer(T29);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  SLOT_VALUE_SETTER(T30, T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T44 = SLOT_VALUE_INITD(T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T45 = primitive_cast_integer_as_raw(T44);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T46 = primitive_machine_word_less_thanQ(-3999999,T45);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (T46 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T47 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T48 = primitive_cast_integer_as_raw(T47);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T49 = primitive_machine_word_less_thanQ(T48,4000001);
    T31 = T49;
  } else {
    T31 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (T31 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T50 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T51 = primitive_cast_integer_as_raw(T50);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T52 = primitive_machine_word_shift_right(T51,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T53_0 = primitive_machine_word_floorS_byref(T52,1000000,(DWORD*)&T53_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    quotientF54 = T53_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    remainderF55 = T53_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T56 = primitive_machine_word_shift_left_signal_overflow(quotientF54,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T57 = primitive_machine_word_shift_left_signal_overflow(remainderF55,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T58 = primitive_machine_word_logior(T57,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T59 = primitive_cast_raw_as_integer(T58);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T59, T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T60 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T61 = primitive_cast_integer_as_raw(T60);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T62 = primitive_machine_word_add_signal_overflow(T61,T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T63 = primitive_cast_raw_as_integer(T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T63, T139, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T64 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T65 = primitive_cast_integer_as_raw(T64);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T66 = primitive_machine_word_less_thanQ(-345599,T65);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (T66 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T67 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T68 = primitive_cast_integer_as_raw(T67);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T69 = primitive_machine_word_less_thanQ(T68,345601);
    T32 = T69;
  } else {
    T32 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (T32 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T70 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T71 = primitive_cast_integer_as_raw(T70);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T72 = primitive_machine_word_shift_right(T71,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T73_0 = primitive_machine_word_floorS_byref(T72,86400,(DWORD*)&T73_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    quotientF74 = T73_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    remainderF75 = T73_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T76 = primitive_machine_word_shift_left_signal_overflow(quotientF74,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T77 = primitive_machine_word_shift_left_signal_overflow(remainderF75,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T78 = primitive_machine_word_logior(T77,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T79 = primitive_cast_raw_as_integer(T78);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T79, T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T80 = SLOT_VALUE_INITD(T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T81 = primitive_cast_integer_as_raw(T80);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T82 = primitive_machine_word_add_signal_overflow(T81,T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T83 = primitive_cast_raw_as_integer(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T83, T139, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T84 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T85 = primitive_cast_integer_as_raw(T84);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T86 = primitive_machine_word_less_thanQ(T85,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T87 = SLOT_VALUE_INITD(T139, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T88 = primitive_cast_integer_as_raw(T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T89 = primitive_machine_word_less_thanQ(T88,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF33 = CONGRUENT_CALL2(T86, T89);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (UtmpF33 != &KPfalseVKi) {
    UtmpF34 = UtmpF33;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T90 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T91 = primitive_cast_integer_as_raw(T90);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T92 = primitive_machine_word_equalQ(T91,1);
    UtmpF34 = T92;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (UtmpF34 != &KPfalseVKi) {
    T35 = UtmpF34;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T93 = SLOT_VALUE_INITD(T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T94 = primitive_cast_integer_as_raw(T93);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T95 = primitive_machine_word_equalQ(T94,1);
    T35 = T95;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (T35 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T96 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T97 = primitive_cast_integer_as_raw(T96);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T98 = primitive_machine_word_less_thanQ(T97,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T99 = SLOT_VALUE_INITD(T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    if (T98 != &KPfalseVKi) {
      T36 = -3;
    } else {
      T36 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T100 = primitive_cast_integer_as_raw(T99);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T101 = primitive_machine_word_logxor(T36,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T102 = primitive_machine_word_add_signal_overflow(T100,T101);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T103 = primitive_cast_raw_as_integer(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T103, T139, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T104 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    if (T98 != &KPfalseVKi) {
      T37 = 345601;
    } else {
      T37 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T105 = primitive_cast_integer_as_raw(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T106 = primitive_machine_word_logxor(T37,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T107 = primitive_machine_word_add_signal_overflow(T105,T106);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T108 = primitive_cast_raw_as_integer(T107);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T108, T139, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T109 = SLOT_VALUE_INITD(T139, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T110 = primitive_cast_integer_as_raw(T109);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T111 = primitive_machine_word_less_thanQ(T110,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T112 = SLOT_VALUE_INITD(T139, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T113 = primitive_cast_integer_as_raw(T112);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T114 = primitive_machine_word_less_thanQ(T113,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF38 = CONGRUENT_CALL2(T111, T114);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (UtmpF38 != &KPfalseVKi) {
    UtmpF39 = UtmpF38;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T115 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T116 = primitive_cast_integer_as_raw(T115);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T117 = primitive_machine_word_equalQ(T116,1);
    UtmpF39 = T117;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (UtmpF39 != &KPfalseVKi) {
    T40 = UtmpF39;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T118 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T119 = primitive_cast_integer_as_raw(T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T120 = primitive_machine_word_equalQ(T119,1);
    T40 = T120;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  if (T40 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T121 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T122 = primitive_cast_integer_as_raw(T121);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T123 = primitive_machine_word_less_thanQ(T122,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T124 = SLOT_VALUE_INITD(T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    if (T123 != &KPfalseVKi) {
      T41 = -3;
    } else {
      T41 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T125 = primitive_cast_integer_as_raw(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T126 = primitive_machine_word_logxor(T41,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T127 = primitive_machine_word_add_signal_overflow(T125,T126);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T128 = primitive_cast_raw_as_integer(T127);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T128, T139, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T129 = SLOT_VALUE_INITD(T139, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    if (T123 != &KPfalseVKi) {
      T42 = 4000001;
    } else {
      T42 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T131 = primitive_machine_word_logxor(T42,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T132 = primitive_machine_word_add_signal_overflow(T130,T131);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    T133 = primitive_cast_raw_as_integer(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
    SLOT_VALUE_SETTER(T133, T139, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:313
  T43_0 = T139;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:311
  MV_SET_COUNT(1);
  return(T43_0);
}

dylan_value KAVKdMsystemM2I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  DWORD T7;
  DWORD T8;
  dylan_value T9;
  dylan_value T10;
  dylan_value T11;
  DWORD T12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  dylan_value T16;
  dylan_value T17;
  dylan_value T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  DWORD T22;
  dylan_value T23;
  dylan_value T24;
  dylan_value T25;
  DWORD T26;
  DWORD T27;
  DWORD T28;
  DWORD T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  dylan_value UtmpF33;
  dylan_value UtmpF34;
  dylan_value T35;
  DSINT T36;
  DSINT T37;
  dylan_value UtmpF38;
  dylan_value UtmpF39;
  dylan_value T40;
  DSINT T41;
  DSINT T42;
  dylan_value T43_0;
  dylan_value T44;
  DWORD T45;
  dylan_value T46;
  dylan_value T47;
  DWORD T48;
  dylan_value T49;
  dylan_value T50;
  DWORD T51;
  DWORD T52;
  DWORD T53_0;
  DWORD T53_1;
  DWORD quotientF54;
  DWORD remainderF55;
  DWORD T56;
  DWORD T57;
  DWORD T58;
  dylan_value T59;
  dylan_value T60;
  DWORD T61;
  DWORD T62;
  dylan_value T63;
  dylan_value T64;
  DWORD T65;
  dylan_value T66;
  dylan_value T67;
  DWORD T68;
  dylan_value T69;
  dylan_value T70;
  DWORD T71;
  DWORD T72;
  DWORD T73_0;
  DWORD T73_1;
  DWORD quotientF74;
  DWORD remainderF75;
  DWORD T76;
  DWORD T77;
  DWORD T78;
  dylan_value T79;
  dylan_value T80;
  DWORD T81;
  DWORD T82;
  dylan_value T83;
  dylan_value T84;
  DWORD T85;
  dylan_value T86;
  dylan_value T87;
  DWORD T88;
  dylan_value T89;
  dylan_value T90;
  DWORD T91;
  dylan_value T92;
  dylan_value T93;
  DWORD T94;
  dylan_value T95;
  dylan_value T96;
  DWORD T97;
  dylan_value T98;
  dylan_value T99;
  DWORD T100;
  DWORD T101;
  DWORD T102;
  dylan_value T103;
  dylan_value T104;
  DWORD T105;
  DWORD T106;
  DWORD T107;
  dylan_value T108;
  dylan_value T109;
  DWORD T110;
  dylan_value T111;
  dylan_value T112;
  DWORD T113;
  dylan_value T114;
  dylan_value T115;
  DWORD T116;
  dylan_value T117;
  dylan_value T118;
  DWORD T119;
  dylan_value T120;
  dylan_value T121;
  DWORD T122;
  dylan_value T123;
  dylan_value T124;
  DWORD T125;
  DWORD T126;
  DWORD T127;
  dylan_value T128;
  dylan_value T129;
  DWORD T130;
  DWORD T131;
  DWORD T132;
  dylan_value T133;
  dylan_value T134_0;
  dylan_value T135;
  _KLsimple_object_vectorGVKd_2 T136 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};
  dylan_value T137;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:306
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T135 = SLOT_VALUE_INITD(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T136.vector_element_[0] = IKJmonths_;
  T136.vector_element_[1] = T135;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T134_0 = CONGRUENT_CALL2(&KLyearSmonth_durationGYdateVsystem, &T136);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T137 = T134_0;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T3 = SLOT_VALUE_INITD(T137, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T4 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T5 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T7 = primitive_machine_word_logxor(T6,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T8 = primitive_machine_word_add_signal_overflow(T5,T7);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T9 = primitive_cast_raw_as_integer(T8);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  SLOT_VALUE_SETTER(T9, T137, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T10 = SLOT_VALUE_INITD(T137, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T11 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T12 = primitive_cast_integer_as_raw(T10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T13 = primitive_cast_integer_as_raw(T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T14 = primitive_machine_word_logxor(T13,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T15 = primitive_machine_word_add_signal_overflow(T12,T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T16 = primitive_cast_raw_as_integer(T15);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  SLOT_VALUE_SETTER(T16, T137, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T17 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T18 = SLOT_VALUE_INITD(y_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T19 = primitive_cast_integer_as_raw(T17);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T20 = primitive_cast_integer_as_raw(T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T21 = primitive_machine_word_logxor(T20,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T22 = primitive_machine_word_add_signal_overflow(T19,T21);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T23 = primitive_cast_raw_as_integer(T22);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  SLOT_VALUE_SETTER(T23, T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T24 = SLOT_VALUE_INITD(T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T25 = SLOT_VALUE_INITD(y_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T26 = primitive_cast_integer_as_raw(T24);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T27 = primitive_cast_integer_as_raw(T25);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T28 = primitive_machine_word_logxor(T27,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T29 = primitive_machine_word_add_signal_overflow(T26,T28);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T30 = primitive_cast_raw_as_integer(T29);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  SLOT_VALUE_SETTER(T30, T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T44 = SLOT_VALUE_INITD(T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T45 = primitive_cast_integer_as_raw(T44);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T46 = primitive_machine_word_less_thanQ(-3999999,T45);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (T46 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T47 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T48 = primitive_cast_integer_as_raw(T47);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T49 = primitive_machine_word_less_thanQ(T48,4000001);
    T31 = T49;
  } else {
    T31 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (T31 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T50 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T51 = primitive_cast_integer_as_raw(T50);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T52 = primitive_machine_word_shift_right(T51,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T53_0 = primitive_machine_word_floorS_byref(T52,1000000,(DWORD*)&T53_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    quotientF54 = T53_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    remainderF55 = T53_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T56 = primitive_machine_word_shift_left_signal_overflow(quotientF54,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T57 = primitive_machine_word_shift_left_signal_overflow(remainderF55,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T58 = primitive_machine_word_logior(T57,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T59 = primitive_cast_raw_as_integer(T58);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T59, T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T60 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T61 = primitive_cast_integer_as_raw(T60);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T62 = primitive_machine_word_add_signal_overflow(T61,T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T63 = primitive_cast_raw_as_integer(T62);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T63, T137, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T64 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T65 = primitive_cast_integer_as_raw(T64);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T66 = primitive_machine_word_less_thanQ(-345599,T65);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (T66 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T67 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T68 = primitive_cast_integer_as_raw(T67);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T69 = primitive_machine_word_less_thanQ(T68,345601);
    T32 = T69;
  } else {
    T32 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (T32 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T70 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T71 = primitive_cast_integer_as_raw(T70);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T72 = primitive_machine_word_shift_right(T71,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T73_0 = primitive_machine_word_floorS_byref(T72,86400,(DWORD*)&T73_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    quotientF74 = T73_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    remainderF75 = T73_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T76 = primitive_machine_word_shift_left_signal_overflow(quotientF74,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T77 = primitive_machine_word_shift_left_signal_overflow(remainderF75,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T78 = primitive_machine_word_logior(T77,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T79 = primitive_cast_raw_as_integer(T78);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T79, T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T80 = SLOT_VALUE_INITD(T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T81 = primitive_cast_integer_as_raw(T80);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T82 = primitive_machine_word_add_signal_overflow(T81,T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T83 = primitive_cast_raw_as_integer(T82);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T83, T137, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T84 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T85 = primitive_cast_integer_as_raw(T84);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T86 = primitive_machine_word_less_thanQ(T85,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T87 = SLOT_VALUE_INITD(T137, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T88 = primitive_cast_integer_as_raw(T87);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T89 = primitive_machine_word_less_thanQ(T88,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF33 = CONGRUENT_CALL2(T86, T89);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (UtmpF33 != &KPfalseVKi) {
    UtmpF34 = UtmpF33;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T90 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T91 = primitive_cast_integer_as_raw(T90);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T92 = primitive_machine_word_equalQ(T91,1);
    UtmpF34 = T92;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (UtmpF34 != &KPfalseVKi) {
    T35 = UtmpF34;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T93 = SLOT_VALUE_INITD(T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T94 = primitive_cast_integer_as_raw(T93);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T95 = primitive_machine_word_equalQ(T94,1);
    T35 = T95;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (T35 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T96 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T97 = primitive_cast_integer_as_raw(T96);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T98 = primitive_machine_word_less_thanQ(T97,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T99 = SLOT_VALUE_INITD(T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    if (T98 != &KPfalseVKi) {
      T36 = -3;
    } else {
      T36 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T100 = primitive_cast_integer_as_raw(T99);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T101 = primitive_machine_word_logxor(T36,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T102 = primitive_machine_word_add_signal_overflow(T100,T101);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T103 = primitive_cast_raw_as_integer(T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T103, T137, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T104 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    if (T98 != &KPfalseVKi) {
      T37 = 345601;
    } else {
      T37 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T105 = primitive_cast_integer_as_raw(T104);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T106 = primitive_machine_word_logxor(T37,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T107 = primitive_machine_word_add_signal_overflow(T105,T106);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T108 = primitive_cast_raw_as_integer(T107);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T108, T137, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T109 = SLOT_VALUE_INITD(T137, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T110 = primitive_cast_integer_as_raw(T109);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T111 = primitive_machine_word_less_thanQ(T110,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T112 = SLOT_VALUE_INITD(T137, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T113 = primitive_cast_integer_as_raw(T112);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T114 = primitive_machine_word_less_thanQ(T113,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF38 = CONGRUENT_CALL2(T111, T114);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (UtmpF38 != &KPfalseVKi) {
    UtmpF39 = UtmpF38;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T115 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T116 = primitive_cast_integer_as_raw(T115);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T117 = primitive_machine_word_equalQ(T116,1);
    UtmpF39 = T117;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (UtmpF39 != &KPfalseVKi) {
    T40 = UtmpF39;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T118 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T119 = primitive_cast_integer_as_raw(T118);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T120 = primitive_machine_word_equalQ(T119,1);
    T40 = T120;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  if (T40 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T121 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T122 = primitive_cast_integer_as_raw(T121);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T123 = primitive_machine_word_less_thanQ(T122,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T124 = SLOT_VALUE_INITD(T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    if (T123 != &KPfalseVKi) {
      T41 = -3;
    } else {
      T41 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T125 = primitive_cast_integer_as_raw(T124);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T126 = primitive_machine_word_logxor(T41,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T127 = primitive_machine_word_add_signal_overflow(T125,T126);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T128 = primitive_cast_raw_as_integer(T127);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T128, T137, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T129 = SLOT_VALUE_INITD(T137, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    if (T123 != &KPfalseVKi) {
      T42 = 4000001;
    } else {
      T42 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T130 = primitive_cast_integer_as_raw(T129);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T131 = primitive_machine_word_logxor(T42,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T132 = primitive_machine_word_add_signal_overflow(T130,T131);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    T133 = primitive_cast_raw_as_integer(T132);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
    SLOT_VALUE_SETTER(T133, T137, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:308
  T43_0 = T137;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:306
  MV_SET_COUNT(1);
  return(T43_0);
}

dylan_value KLVKdMsystemM2I (dylan_value x_, dylan_value y_) {
  dylan_value T3_0;
  dylan_value T4_0;
  dylan_value T5_0;
  dylan_value T6_0;
  dylan_value T7_0;
  dylan_value T8_0;
  dylan_value T9_0;
  dylan_value T10_0;
  dylan_value T11;
  dylan_value T12;
  DWORD T13;
  DWORD T14;
  dylan_value T15;
  dylan_value T16;
  dylan_value T17;
  DWORD T18;
  DWORD T19;
  dylan_value T20;
  dylan_value T21;
  dylan_value T22;
  DWORD T23;
  DWORD T24;
  dylan_value T25;
  dylan_value T26;
  dylan_value T27;
  DWORD T28;
  DWORD T29;
  dylan_value T30;
  dylan_value T31;
  dylan_value T32;
  DWORD T33;
  DWORD T34;
  dylan_value T35;
  dylan_value T36_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:228
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  T11 = SLOT_VALUE_INITD(x_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  T12 = SLOT_VALUE_INITD(y_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  T13 = primitive_cast_integer_as_raw(T11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  T14 = primitive_cast_integer_as_raw(T12);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  T15 = primitive_machine_word_less_thanQ(T13,T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  if (T15 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
    T3_0 = T15;
    T10_0 = T3_0;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    T16 = SLOT_VALUE_INITD(x_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    T17 = SLOT_VALUE_INITD(y_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    T18 = primitive_cast_integer_as_raw(T16);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    T19 = primitive_cast_integer_as_raw(T17);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    T20 = primitive_machine_word_equalQ(T18,T19);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    if (T20 != &KPfalseVKi) {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      T21 = SLOT_VALUE_INITD(x_, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      T22 = SLOT_VALUE_INITD(y_, 2);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      T23 = primitive_cast_integer_as_raw(T21);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      T24 = primitive_cast_integer_as_raw(T22);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      T25 = primitive_machine_word_less_thanQ(T23,T24);
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      if (T25 != &KPfalseVKi) {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
        T4_0 = T25;
        T7_0 = T4_0;
      } else {
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        T26 = SLOT_VALUE_INITD(x_, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        T27 = SLOT_VALUE_INITD(y_, 2);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        T28 = primitive_cast_integer_as_raw(T26);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        T29 = primitive_cast_integer_as_raw(T27);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        T30 = primitive_machine_word_equalQ(T28,T29);
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        if (T30 != &KPfalseVKi) {
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:234
          T31 = SLOT_VALUE_INITD(x_, 3);
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:234
          T32 = SLOT_VALUE_INITD(y_, 3);
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:234
          T33 = primitive_cast_integer_as_raw(T31);
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:234
          T34 = primitive_cast_integer_as_raw(T32);
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:234
          T35 = primitive_machine_word_less_thanQ(T33,T34);
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:234
          T36_0 = T35;
          T6_0 = T36_0;
        } else {
          // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
          T5_0 = &KPfalseVKi;
          T6_0 = T5_0;
        }
        // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:233
        T7_0 = T6_0;
      }
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:232
      T9_0 = T7_0;
    } else {
      // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
      T8_0 = &KPfalseVKi;
      T9_0 = T8_0;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:231
    T10_0 = T9_0;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:230
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:228
  MV_SET_COUNT(1);
  return(T10_0);
}

dylan_value KLVKdMsystemM1I (dylan_value x_, dylan_value y_) {
  dylan_value T3;
  dylan_value T4;
  DWORD T5;
  DWORD T6;
  dylan_value T7;
  dylan_value T8_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:223
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:225
  T3 = SLOT_VALUE_INITD(x_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:225
  T4 = SLOT_VALUE_INITD(y_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:225
  T5 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:225
  T6 = primitive_cast_integer_as_raw(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:225
  T7 = primitive_machine_word_less_thanQ(T5,T6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:225
  T8_0 = T7;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:223
  MV_SET_COUNT(1);
  return(T8_0);
}

dylan_value Kreturn_descriptionVKdMsystemM0I (dylan_value condition_) {
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  _KLsimple_object_vectorGVKd_4 T5 = {&KLsimple_object_vectorGVKdW, (dylan_value) 17};

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:178
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:180
  T3 = SLOT_VALUE_INITD(condition_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:181
  T4 = SLOT_VALUE_INITD(condition_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:180
  T5.vector_element_[0] = IKJyear_;
  T5.vector_element_[1] = T3;
  T5.vector_element_[2] = IKJmonth_;
  T5.vector_element_[3] = T4;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:180
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T2_0 = CONGRUENT_CALL2(&KLdate_arithmetic_use_last_valid_dayGYdateVsystem, &T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:178
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM1I (dylan_value condition_) {
  dylan_value T2;
  dylan_value T3;
  DWORD T4;
  DWORD T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  _KLsimple_object_vectorGVKd_3 T9 = {&KLsimple_object_vectorGVKdW, (dylan_value) 13};
  dylan_value T10_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:170
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:173
  T3 = SLOT_VALUE_INITD(condition_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:173
  T4 = primitive_cast_integer_as_raw(T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:173
  T5 = primitive_machine_word_subtract_signal_overflow(T4,4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:173
  T6 = primitive_cast_raw_as_integer(T5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:173
  T7 = KelementVKdMM3I(Dmonth_namesYsystem_internalsVsystem, T6, &KPempty_vectorVKi, &Kunsupplied_objectVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:174
  T8 = SLOT_VALUE_INITD(condition_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:174
  T2 = Kdays_in_monthYsystem_internalsVsystemI(T8, T3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:172
  T9.vector_element_[0] = T7;
  T9.vector_element_[1] = T2;
  T9.vector_element_[2] = T8;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:172
  T10_0 = Kformat_to_stringYformatVioMM0I(&K295, &T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:170
  MV_SET_COUNT(1);
  return(T10_0);
}

dylan_value Kreturn_allowedQVKdMsystemM0I (dylan_value condition_) {
  dylan_value T2_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:162
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:164
  T2_0 = &KPtrueVKi;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:162
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM0I (dylan_value condition_) {
  dylan_value T2;
  DWORD T3;
  DWORD T4;
  dylan_value T5;
  dylan_value T6;
  dylan_value T7;
  dylan_value T8;
  _KLsimple_object_vectorGVKd_3 T9 = {&KLsimple_object_vectorGVKdW, (dylan_value) 13};
  dylan_value T10_0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:154
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:157
  T2 = SLOT_VALUE_INITD(condition_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:157
  T3 = primitive_cast_integer_as_raw(T2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:157
  T4 = primitive_machine_word_subtract_signal_overflow(T3,4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:157
  T5 = primitive_cast_raw_as_integer(T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:157
  T6 = KelementVKdMM3I(Dmonth_namesYsystem_internalsVsystem, T5, &KPempty_vectorVKi, &Kunsupplied_objectVKi);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:158
  T7 = SLOT_VALUE_INITD(condition_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:159
  T8 = SLOT_VALUE_INITD(condition_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:156
  T9.vector_element_[0] = T6;
  T9.vector_element_[1] = T7;
  T9.vector_element_[2] = T8;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:156
  T10_0 = Kformat_to_stringYformatVioMM0I(&K292, &T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:154
  MV_SET_COUNT(1);
  return(T10_0);
}

dylan_value KinitializeVKdMsystemM2I (dylan_value duration_, dylan_value Urest_, dylan_value days_, dylan_value hours_, dylan_value minutes_, dylan_value seconds_, dylan_value microseconds_) {
  dylan_value daysF8;
  dylan_value hoursF9;
  dylan_value minutesF10;
  dylan_value secondsF11;
  dylan_value microsecondsF12;
  DWORD T13;
  DWORD T14;
  DWORD T15;
  DWORD T16;
  DWORD T17;
  DWORD T18;
  DWORD T19;
  DWORD T20;
  DWORD T21;
  DWORD T22;
  DWORD T23;
  DWORD T24;
  DWORD T25;
  dylan_value T26;
  dylan_value T27;
  dylan_value T28;
  dylan_value UtmpF29;
  dylan_value UtmpF30;
  dylan_value T31;
  DSINT T32;
  DSINT T33;
  dylan_value UtmpF34;
  dylan_value UtmpF35;
  dylan_value T36;
  DSINT T37;
  DSINT T38;
  dylan_value T39_0;
  dylan_value T40;
  DWORD T41;
  dylan_value T42;
  dylan_value T43;
  DWORD T44;
  dylan_value T45;
  dylan_value T46;
  DWORD T47;
  DWORD T48;
  DWORD T49_0;
  DWORD T49_1;
  DWORD quotientF50;
  DWORD remainderF51;
  DWORD T52;
  DWORD T53;
  DWORD T54;
  dylan_value T55;
  dylan_value T56;
  DWORD T57;
  DWORD T58;
  dylan_value T59;
  dylan_value T60;
  DWORD T61;
  dylan_value T62;
  dylan_value T63;
  DWORD T64;
  dylan_value T65;
  dylan_value T66;
  DWORD T67;
  DWORD T68;
  DWORD T69_0;
  DWORD T69_1;
  DWORD quotientF70;
  DWORD remainderF71;
  DWORD T72;
  DWORD T73;
  DWORD T74;
  dylan_value T75;
  dylan_value T76;
  DWORD T77;
  DWORD T78;
  dylan_value T79;
  dylan_value T80;
  DWORD T81;
  dylan_value T82;
  dylan_value T83;
  DWORD T84;
  dylan_value T85;
  dylan_value T86;
  DWORD T87;
  dylan_value T88;
  dylan_value T89;
  DWORD T90;
  dylan_value T91;
  dylan_value T92;
  DWORD T93;
  dylan_value T94;
  dylan_value T95;
  DWORD T96;
  DWORD T97;
  DWORD T98;
  dylan_value T99;
  dylan_value T100;
  DWORD T101;
  DWORD T102;
  DWORD T103;
  dylan_value T104;
  dylan_value T105;
  DWORD T106;
  dylan_value T107;
  dylan_value T108;
  DWORD T109;
  dylan_value T110;
  dylan_value T111;
  DWORD T112;
  dylan_value T113;
  dylan_value T114;
  DWORD T115;
  dylan_value T116;
  dylan_value T117;
  DWORD T118;
  dylan_value T119;
  dylan_value T120;
  DWORD T121;
  DWORD T122;
  DWORD T123;
  dylan_value T124;
  dylan_value T125;
  DWORD T126;
  DWORD T127;
  DWORD T128;
  dylan_value T129;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  primitive_type_check(days_, &KLintegerGVKd);
  daysF8 = days_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  primitive_type_check(hours_, &KLintegerGVKd);
  hoursF9 = hours_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  primitive_type_check(minutes_, &KLintegerGVKd);
  minutesF10 = minutes_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  primitive_type_check(seconds_, &KLintegerGVKd);
  secondsF11 = seconds_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  primitive_type_check(microseconds_, &KLintegerGVKd);
  microsecondsF12 = microseconds_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:81
  SLOT_VALUE_SETTER(daysF8, duration_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T13 = primitive_cast_integer_as_raw(hoursF9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T14 = primitive_machine_word_shift_right(T13,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T15 = primitive_machine_word_multiply_signal_overflow(240,T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T16 = primitive_machine_word_logior(T15,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T17 = primitive_cast_integer_as_raw(minutesF10);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T18 = primitive_machine_word_logxor(T16,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T19 = primitive_machine_word_add_signal_overflow(T17,T18);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T20 = primitive_machine_word_shift_right(T19,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T21 = primitive_machine_word_multiply_signal_overflow(240,T20);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T22 = primitive_machine_word_logior(T21,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T23 = primitive_cast_integer_as_raw(secondsF11);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T24 = primitive_machine_word_logxor(T22,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T25 = primitive_machine_word_add_signal_overflow(T23,T24);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  T26 = primitive_cast_raw_as_integer(T25);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:82
  SLOT_VALUE_SETTER(T26, duration_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:83
  SLOT_VALUE_SETTER(microsecondsF12, duration_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T40 = SLOT_VALUE_INITD(duration_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T41 = primitive_cast_integer_as_raw(T40);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T42 = primitive_machine_word_less_thanQ(-3999999,T41);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (T42 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T43 = SLOT_VALUE_INITD(duration_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T44 = primitive_cast_integer_as_raw(T43);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T45 = primitive_machine_word_less_thanQ(T44,4000001);
    T27 = T45;
  } else {
    T27 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (T27 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T46 = SLOT_VALUE_INITD(duration_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T47 = primitive_cast_integer_as_raw(T46);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T48 = primitive_machine_word_shift_right(T47,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T49_0 = primitive_machine_word_floorS_byref(T48,1000000,(DWORD*)&T49_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    quotientF50 = T49_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    remainderF51 = T49_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T52 = primitive_machine_word_shift_left_signal_overflow(quotientF50,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T53 = primitive_machine_word_shift_left_signal_overflow(remainderF51,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T54 = primitive_machine_word_logior(T53,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T55 = primitive_cast_raw_as_integer(T54);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T55, duration_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T56 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T57 = primitive_cast_integer_as_raw(T56);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T58 = primitive_machine_word_add_signal_overflow(T57,T52);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T59 = primitive_cast_raw_as_integer(T58);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T59, duration_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T60 = SLOT_VALUE_INITD(duration_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T61 = primitive_cast_integer_as_raw(T60);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T62 = primitive_machine_word_less_thanQ(-345599,T61);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (T62 != &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T63 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T64 = primitive_cast_integer_as_raw(T63);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T65 = primitive_machine_word_less_thanQ(T64,345601);
    T28 = T65;
  } else {
    T28 = &KPfalseVKi;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (T28 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T66 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T67 = primitive_cast_integer_as_raw(T66);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T68 = primitive_machine_word_shift_right(T67,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T69_0 = primitive_machine_word_floorS_byref(T68,86400,(DWORD*)&T69_1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    quotientF70 = T69_0;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    remainderF71 = T69_1;
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T72 = primitive_machine_word_shift_left_signal_overflow(quotientF70,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T73 = primitive_machine_word_shift_left_signal_overflow(remainderF71,2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T74 = primitive_machine_word_logior(T73,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T75 = primitive_cast_raw_as_integer(T74);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T75, duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T76 = SLOT_VALUE_INITD(duration_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T77 = primitive_cast_integer_as_raw(T76);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T78 = primitive_machine_word_add_signal_overflow(T77,T72);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T79 = primitive_cast_raw_as_integer(T78);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T79, duration_, 1);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T80 = SLOT_VALUE_INITD(duration_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T81 = primitive_cast_integer_as_raw(T80);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T82 = primitive_machine_word_less_thanQ(T81,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T83 = SLOT_VALUE_INITD(duration_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T84 = primitive_cast_integer_as_raw(T83);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T85 = primitive_machine_word_less_thanQ(T84,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF29 = CONGRUENT_CALL2(T82, T85);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (UtmpF29 != &KPfalseVKi) {
    UtmpF30 = UtmpF29;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T86 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T87 = primitive_cast_integer_as_raw(T86);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T88 = primitive_machine_word_equalQ(T87,1);
    UtmpF30 = T88;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (UtmpF30 != &KPfalseVKi) {
    T31 = UtmpF30;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T89 = SLOT_VALUE_INITD(duration_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T90 = primitive_cast_integer_as_raw(T89);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T91 = primitive_machine_word_equalQ(T90,1);
    T31 = T91;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (T31 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T92 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T93 = primitive_cast_integer_as_raw(T92);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T94 = primitive_machine_word_less_thanQ(T93,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T95 = SLOT_VALUE_INITD(duration_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    if (T94 != &KPfalseVKi) {
      T32 = -3;
    } else {
      T32 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T96 = primitive_cast_integer_as_raw(T95);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T97 = primitive_machine_word_logxor(T32,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T98 = primitive_machine_word_add_signal_overflow(T96,T97);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T99 = primitive_cast_raw_as_integer(T98);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T99, duration_, 1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T100 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    if (T94 != &KPfalseVKi) {
      T33 = 345601;
    } else {
      T33 = -345599;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T101 = primitive_cast_integer_as_raw(T100);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T102 = primitive_machine_word_logxor(T33,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T103 = primitive_machine_word_add_signal_overflow(T101,T102);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T104 = primitive_cast_raw_as_integer(T103);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T104, duration_, 2);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T105 = SLOT_VALUE_INITD(duration_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T106 = primitive_cast_integer_as_raw(T105);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T107 = primitive_machine_word_less_thanQ(T106,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T108 = SLOT_VALUE_INITD(duration_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T109 = primitive_cast_integer_as_raw(T108);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T110 = primitive_machine_word_less_thanQ(T109,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  CONGRUENT_CALL_PROLOG(&KEVKd, 2);
  UtmpF34 = CONGRUENT_CALL2(T107, T110);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (UtmpF34 != &KPfalseVKi) {
    UtmpF35 = UtmpF34;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T111 = SLOT_VALUE_INITD(duration_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T112 = primitive_cast_integer_as_raw(T111);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T113 = primitive_machine_word_equalQ(T112,1);
    UtmpF35 = T113;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (UtmpF35 != &KPfalseVKi) {
    T36 = UtmpF35;
  } else {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T114 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T115 = primitive_cast_integer_as_raw(T114);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T116 = primitive_machine_word_equalQ(T115,1);
    T36 = T116;
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  if (T36 == &KPfalseVKi) {
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T117 = SLOT_VALUE_INITD(duration_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T118 = primitive_cast_integer_as_raw(T117);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T119 = primitive_machine_word_less_thanQ(T118,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T120 = SLOT_VALUE_INITD(duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    if (T119 != &KPfalseVKi) {
      T37 = -3;
    } else {
      T37 = 5;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T121 = primitive_cast_integer_as_raw(T120);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T122 = primitive_machine_word_logxor(T37,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T123 = primitive_machine_word_add_signal_overflow(T121,T122);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T124 = primitive_cast_raw_as_integer(T123);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T124, duration_, 2);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T125 = SLOT_VALUE_INITD(duration_, 3);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    if (T119 != &KPfalseVKi) {
      T38 = 4000001;
    } else {
      T38 = -3999999;
    }
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T126 = primitive_cast_integer_as_raw(T125);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T127 = primitive_machine_word_logxor(T38,1);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T128 = primitive_machine_word_add_signal_overflow(T126,T127);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    T129 = primitive_cast_raw_as_integer(T128);
    // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
    SLOT_VALUE_SETTER(T129, duration_, 3);
  }
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:84
  T39_0 = duration_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  MV_SET_COUNT(1);
  return(T39_0);
}

dylan_value KinitializeVKdMsystemM1I (dylan_value duration_, dylan_value Urest_, dylan_value years_, dylan_value months_) {
  dylan_value yearsF5;
  dylan_value monthsF6;
  dylan_value T7;
  DWORD T8;
  DWORD T9;
  DWORD T10;
  DWORD T11;
  DWORD T12;
  DWORD T13;
  DWORD T14;
  dylan_value T15;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:66
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:66
  primitive_type_check(years_, &KLintegerGVKd);
  yearsF5 = years_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:66
  primitive_type_check(months_, &KLintegerGVKd);
  monthsF6 = months_;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T8 = primitive_cast_integer_as_raw(yearsF5);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T9 = primitive_machine_word_shift_right(T8,2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T10 = primitive_machine_word_multiply_signal_overflow(48,T9);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T11 = primitive_machine_word_logior(T10,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T12 = primitive_cast_integer_as_raw(monthsF6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T13 = primitive_machine_word_logxor(T12,1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T14 = primitive_machine_word_add_signal_overflow(T11,T13);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  T15 = primitive_cast_raw_as_integer(T14);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:70
  SLOT_VALUE_SETTER(T15, duration_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:71
  T7 = duration_;
  MV_SET_ELT(0, duration_);
  MV_SET_COUNT(1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:66
  return(T7);
}

dylan_value Kclone_durationYsystem_internalsVsystemMM0I (dylan_value duration_) {
  dylan_value T2_0;
  dylan_value T3;
  _KLsimple_object_vectorGVKd_2 T4 = {&KLsimple_object_vectorGVKdW, (dylan_value) 9};

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:90
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:92
  T3 = SLOT_VALUE_INITD(duration_, 0);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:92
  T4.vector_element_[0] = IKJmonths_;
  T4.vector_element_[1] = T3;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:92
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T2_0 = CONGRUENT_CALL2(&KLyearSmonth_durationGYdateVsystem, &T4);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:90
  MV_SET_COUNT(1);
  return(T2_0);
}

dylan_value Kclone_durationYsystem_internalsVsystemMM1I (dylan_value duration_) {
  dylan_value T2_0;
  dylan_value T3;
  dylan_value T4;
  dylan_value T5;
  _KLsimple_object_vectorGVKd_6 T6 = {&KLsimple_object_vectorGVKdW, (dylan_value) 25};

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:95
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:97
  T3 = SLOT_VALUE_INITD(duration_, 1);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:98
  T4 = SLOT_VALUE_INITD(duration_, 2);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:99
  T5 = SLOT_VALUE_INITD(duration_, 3);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:97
  T6.vector_element_[0] = IKJdays_;
  T6.vector_element_[1] = T3;
  T6.vector_element_[2] = IKJseconds_;
  T6.vector_element_[3] = T4;
  T6.vector_element_[4] = IKJmicroseconds_;
  T6.vector_element_[5] = T5;
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:97
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  T2_0 = CONGRUENT_CALL2(&KLdayStime_durationGYdateVsystem, &T6);
  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:95
  MV_SET_COUNT(1);
  return(T2_0);
}


/* SYSTEM INIT CODE */

void _Init_system__X_durations_for_system () {
  extern dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJyear_);
    if (T0 != &KJyear_) {
      IKJyear_ = T0;
      primitive_slot_value_setter(T0, &Kdae_yearYsystem_internalsVsystemHLdate_arithmetic_errorG, 3);
      primitive_repeated_slot_value_setter(T0, &K85, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K84, 1, 0);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJmonth_);
    if (T0 != &KJmonth_) {
      IKJmonth_ = T0;
      primitive_slot_value_setter(T0, &Kdae_monthYsystem_internalsVsystemHLdate_arithmetic_errorG, 3);
      primitive_repeated_slot_value_setter(T0, &K85, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K84, 1, 2);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJday_);
    if (T0 != &KJday_) {
      IKJday_ = T0;
      primitive_slot_value_setter(T0, &Kdae_dayYsystem_internalsVsystemHLdate_arithmetic_errorG, 3);
      primitive_repeated_slot_value_setter(T0, &K85, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K84, 1, 4);
      primitive_slot_value_setter(T0, &KdayHLdate_arithmetic_invalid_dayGYdateVsystem, 3);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJdays_);
    if (T0 != &KJdays_) {
      IKJdays_ = T0;
      primitive_repeated_slot_value_setter(T0, &K291, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K290, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 4);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJseconds_);
    if (T0 != &KJseconds_) {
      IKJseconds_ = T0;
      primitive_repeated_slot_value_setter(T0, &K291, 1, 3);
      primitive_repeated_slot_value_setter(T0, &K290, 1, 6);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 5);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 10);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJmicroseconds_);
    if (T0 != &KJmicroseconds_) {
      IKJmicroseconds_ = T0;
      primitive_repeated_slot_value_setter(T0, &K291, 1, 4);
      primitive_repeated_slot_value_setter(T0, &K290, 1, 8);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 6);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 12);
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJhours_);
    if (T0 != &KJhours_) {
      primitive_repeated_slot_value_setter(T0, &K291, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K290, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 3);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 6);
      IKJhours_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJminutes_);
    if (T0 != &KJminutes_) {
      primitive_repeated_slot_value_setter(T0, &K291, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K290, 1, 4);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 4);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 8);
      IKJminutes_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJyears_);
    if (T0 != &KJyears_) {
      primitive_repeated_slot_value_setter(T0, &K288, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K287, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 0);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 0);
      IKJyears_ = T0;
    }
  }
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJmonths_);
    if (T0 != &KJmonths_) {
      IKJmonths_ = T0;
      primitive_repeated_slot_value_setter(T0, &K288, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K287, 1, 2);
      primitive_repeated_slot_value_setter(T0, &K235, 1, 1);
      primitive_repeated_slot_value_setter(T0, &K233, 1, 2);
    }
  }
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:16
  T0 = KPadd_classVKeI(&KLdurationGYdateVsystem);
  goto I0;
}
I0:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:141
  T0 = KPadd_classVKeI(&KLdate_arithmetic_errorGYdateVsystem);
  goto I28;
}
I28:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:147
  T0 = KPadd_classVKeI(&KLdate_arithmetic_error_restartGYdateVsystem);
  goto I31;
}
I31:

  return;
}

/* USER INIT CODE */

void _Init_system__X_durations_for_user () {
{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:29
  T0 = KPadd_nonsiblinged_domainVKnI(&KEVKd, &KEVKdRD_systemRD_10);
  goto I4;
}
I4:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:30
  T0 = KPadd_nonsiblinged_domainVKnI(&KLVKd, &KLVKdRD_systemRD_2);
  goto I6;
}
I6:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:31
  T0 = KPadd_nonsiblinged_domainVKnI(&KAVKd, &KAVKdRD_systemRD_6);
  goto I8;
}
I8:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:32
  T0 = KPadd_nonsiblinged_domainVKnI(&KAVKd, &KAVKdRD_systemRD_5);
  goto I10;
}
I10:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:33
  T0 = KPadd_nonsiblinged_domainVKnI(&KAVKd, &KAVKdRD_systemRD_4);
  goto I12;
}
I12:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:34
  T0 = KPadd_nonsiblinged_domainVKnI(&K_VKd, &K_VKdRD_systemRD_6);
  goto I14;
}
I14:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:35
  T0 = KPadd_nonsiblinged_domainVKnI(&K_VKd, &K_VKdRD_systemRD_5);
  goto I16;
}
I16:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:36
  T0 = KPadd_nonsiblinged_domainVKnI(&K_VKd, &K_VKdRD_systemRD_4);
  goto I18;
}
I18:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:37
  T0 = KPadd_nonsiblinged_domainVKnI(&KTVKd, &KTVKdRD_systemRD_3);
  goto I20;
}
I20:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:38
  T0 = KPadd_nonsiblinged_domainVKnI(&KTVKd, &KTVKdRD_systemRD_2);
  goto I22;
}
I22:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:39
  T0 = KPadd_nonsiblinged_domainVKnI(&KSVKd, &KSVKdRD_systemRD_1);
  goto I24;
}
I24:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:41
  T0 = KPadd_a_methodVKnI(&KmakeVKd, &KmakeVKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I27;
}
I27:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:66
  T0 = KPadd_a_methodVKnI(&KinitializeVKd, &KinitializeVKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I277;
}
I277:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:74
  T0 = KPadd_a_methodVKnI(&KinitializeVKd, &KinitializeVKdMsystemM2, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPfalseVKi);
  goto I274;
}
I274:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:154
  T0 = KPadd_a_methodVKnI(&Kcondition_to_stringYcommon_extensionsVcommon_dylan, &Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I271;
}
I271:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:162
  T0 = KPadd_a_methodVKnI(&Kreturn_allowedQVKd, &Kreturn_allowedQVKdMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I268;
}
I268:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:170
  T0 = KPadd_a_methodVKnI(&Kcondition_to_stringYcommon_extensionsVcommon_dylan, &Kcondition_to_stringYcommon_extensionsVcommon_dylanMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I265;
}
I265:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:178
  T0 = KPadd_a_methodVKnI(&Kreturn_descriptionVKd, &Kreturn_descriptionVKdMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I262;
}
I262:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:216
  T0 = KPadd_a_methodVKnI(&KEVKd, &KEVKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I36;
}
I36:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:223
  T0 = KPadd_a_methodVKnI(&KLVKd, &KLVKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I259;
}
I259:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:228
  T0 = KPadd_a_methodVKnI(&KLVKd, &KLVKdMsystemM2, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I256;
}
I256:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:272
  T0 = KPadd_a_methodVKnI(&KAVKd, &KAVKdMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I39;
}
I39:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:276
  T0 = KPadd_a_methodVKnI(&KAVKd, &KAVKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I42;
}
I42:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:280
  T0 = KPadd_a_methodVKnI(&K_VKd, &K_VKdMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I45;
}
I45:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:286
  T0 = KPadd_a_methodVKnI(&K_VKd, &K_VKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I48;
}
I48:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:306
  T0 = KPadd_a_methodVKnI(&KAVKd, &KAVKdMsystemM2, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I253;
}
I253:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:311
  T0 = KPadd_a_methodVKnI(&KAVKd, &KAVKdMsystemM3, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I250;
}
I250:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:326
  T0 = KPadd_a_methodVKnI(&K_VKd, &K_VKdMsystemM2, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I247;
}
I247:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:331
  T0 = KPadd_a_methodVKnI(&K_VKd, &K_VKdMsystemM3, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I244;
}
I244:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:346
  T0 = KPadd_a_methodVKnI(&KTVKd, &KTVKdMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I51;
}
I51:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:350
  T0 = KPadd_a_methodVKnI(&KTVKd, &KTVKdMsystemM1, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I54;
}
I54:

{
  dylan_value T0;

  // /home/bruce/Development/dylan/opendylan/sources/system/durations.dylan:354
  T0 = KPadd_a_methodVKnI(&KSVKd, &KSVKdMsystemM0, &Ksystem_libraryYdylan_userVsystem, &KPfalseVKi, &KPfalseVKi, &KPtrueVKi);
  goto I57;
}
I57:

  return;
}


/* eof */
